Skip to content
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

Parsing silently fails in case text between entries in bibfile #24

Open
stmichaelis opened this issue Apr 11, 2024 · 0 comments
Open

Parsing silently fails in case text between entries in bibfile #24

stmichaelis opened this issue Apr 11, 2024 · 0 comments

Comments

@stmichaelis
Copy link

In case where there is text outside of entries, parsing silently fails and no entries are parsed. Example, which delivers 0 entries after parsing:

% Encoding: UTF-8
@article{CitekeyArticle,
  author   = "John Doe",
  title    = "The independence of the continuum hypothesis",
  journal  = "Proceedings of the National Academy of Sciences",
  year     = 1963,
  volume   = "50",
  number   = "6",
  pages    = "1143--1148",
}

While I do not see any reason for text outside of entries, it appears some bibliography tools are adding other forms of comments nevertheless. While this is considered garbage from a BibTeX/BibLaTeX point of view, they are still able to process the entries anyway.

Specifications seem to allow text between entries as well, e.g. see: https://tex.stackexchange.com/questions/21709/comments-in-bibtex
and section 4.7: https://texdoc.org/serve/btxdoc/0

This parser should either throw an error on parsing or discard any text between entries.

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