Skip to content

Field "type" overwriting the entry type #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Djoop opened this issue Feb 23, 2022 · 0 comments
Open

Field "type" overwriting the entry type #13

Djoop opened this issue Feb 23, 2022 · 0 comments

Comments

@Djoop
Copy link

Djoop commented Feb 23, 2022

It is common in some bibtex entry types to use a "type" field (well actually I don't know… but it's listed as a possible biblatex type in the documentation so it's reasonable to use it, even if I don't know what is the recommended usage). When parsing a document with such fields, the entry type is overwritten. Is it a desired behavior? Wouldn't it be better to export the entry type to a specific key to prevent that, or at least to have some optional parameter to specify this?

Here is an example:

julia> BibTeX.parse_bibtex("@mytype{mycoolpaper, note={Submitted to AwesomeConference} }")
("", Dict("mycoolpaper" => Dict("note" => "Submitted to AwesomeConference", "type" => "mytype")))

julia> BibTeX.parse_bibtex("@mytype{mycoolpaper, type={Submitted to AwesomeConference} }")
("", Dict("mycoolpaper" => Dict("type" => "Submitted to AwesomeConference")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant