citation-js / citation-js

Core functionality of Citation.js, as well as the original plugins (CSL, BibTeX, RIS, DOI, Wikidata, and BibJSON)
https://citation.js.org
MIT License
149 stars 43 forks source link

bibtex-parsing edge cases #73

Open nichtich opened 5 years ago

nichtich commented 5 years ago

Some valid BibTeX entries (requires #43/#56):

larsgw commented 5 years ago

Interesting, both are fatal errors in BibLaTeX while natbib fails gracefully. Is the lack of key in the second example intended?

larsgw commented 4 years ago

@article(foo=bar) is actually interpreted with foo=bar as the key based on my tests. The new parser should cover that (as well as custom fields and parentheses). Missing keys as in the first example might be a bit more difficult.