Purplelink
← All posts

Where BibTeX errors actually come from

Most BibTeX errors don't come from researchers making mistakes. They come from the bibliography managers and export tools researchers trust to get it right.

When I built the BibTeX validator, I expected it to catch the kind of mistakes researchers make directly: a misspelled author name, a missing journal field, a stray character in a citekey. The mental model was proofreading. Someone writes their bibliography, the validator flags their typos, they fix it.

That is not what happens.

Most of the errors the validator flags come from software exports, not from researchers. Mendeley, Zotero, Google Scholar, Scopus, even publisher download pages: each one produces BibTeX that is subtly wrong in its own way. Google Scholar omits the month field and sometimes drops page numbers entirely. Mendeley serializes the author field correctly but writes DOIs into the url field, which breaks certain bibliography styles. Zotero handles most entry types well but produces nonstandard output for conference papers. Some export tools write month as a number. Others use the three-letter abbreviation LaTeX expects, and others use the full word, which requires extra package support to parse.

None of these are researcher errors. The researcher opened their bibliography manager, exported to BibTeX, and dropped the file into their project. The software they trusted to get it right did not.

That reframing changed how I built it. A compatibility layer between incompatible software is a different job than a proofreader, and it needs different checks.

It also meant rethinking what "valid" means. A BibTeX file that compiles without errors in one journal's template will sometimes fail in another. Some styles require number fields that others ignore. Some demand a publisher entry for book chapters, and others do not care. The BibTeX spec is loose enough that valid by the spec is not the same as valid in practice, and valid in practice depends on which packages you use.

The validator now checks against what commonly used packages expect, not just what the original 1985 spec requires. It also surfaces warnings that are not errors: fields that compile today but may cause problems if the researcher switches to a different bibliography style later. Whether to act on a warning is the researcher's call.

I did not see this coming: researchers find the warnings most useful. They already knew about the errors. They did not know about the subtle compatibility issues.

I started this with a proofreading metaphor. The more accurate one is translation. The validator reads what four different pieces of software produced and tells you what will and will not survive the trip to the journal template.

The free BibTeX Validator catches these in a .bib file. In a finished manuscript, Paper Review (from $14) checks every reference against CrossRef as part of the review. The mistakes above are all in the bibliography data itself; a later bug in how the validator displayed its results was mine, not the researcher's or their software's.

← Back to blog