Fixing common BibTeX and biblatex errors
Bibliography errors are confusing because they come from a separate program, run at a separate moment, and are reported in a separate log. Most of them become simple once you know which step produced them. This guide explains the steps, then goes through the messages people search for most often, quoted as BibTeX, biber and LaTeX print them, with the fix for each.
How a bibliography gets into the PDF
LaTeX does not read your .bib file. On the first pass it writes the keys you cite to an auxiliary file (.aux for BibTeX, .bcf for biblatex with biber). BibTeX or biber then reads those keys and the .bib file, and writes the formatted list to a .bbl file. The next LaTeX pass reads the .bbl, and a final pass puts the right numbers or names into the text:
pdflatex paper
bibtex paper # or: biber paper
pdflatex paper
pdflatex paperlatexmk -pdf paper.tex runs this sequence for you, as many times as needed, and chooses biber when the document uses biblatex. When something is wrong, the bibliography program’s own log, paper.blg, usually says what.
“Citation undefined” and [?] in the PDF
LaTeX Warning: Citation `smith2020' on page 1 undefined on input line 5.With natbib the same warning begins Package natbib Warning. Either BibTeX or biber has not run since you added the citation, or the key does not match an entry. Run the full sequence above. If the warning stays, look in the .blg, where BibTeX reports Warning--I didn't find a database entry for "smith2020". Check the key letter for letter against the .bib, and check that the entry itself was not skipped because of an error further up the file.
“I found no \citation commands”
BibTeX prints this when the .aux file holds no citations. There are two usual causes:
- There is no
\citein the document yet. Add one, or\nocite{*}to list every entry in the .bib. - The document uses biblatex, which writes its citations for biber. BibTeX then prints three errors together: no
\citationcommands, no\bibdatacommand and no\bibstylecommand. Run biber instead.
On their own, “I found no \bibstyle command” means \bibliographystyle is missing, and “I found no \bibdata command” means \bibliography is missing.
BibTeX or biber
A document with \usepackage{biblatex} uses biber by default, and until biber has run the log says:
Package biblatex Warning: Please (re)run Biber on the file:
(biblatex) paper
(biblatex) and rerun LaTeX afterwards.The opposite mistake, running biber on a document that uses BibTeX, gives ERROR - Cannot find 'paper.bcf'!, because only biblatex writes that file. natbib and biblatex cannot be loaded together: Package biblatex Error: Incompatible package 'natbib'. To keep natbib’s \citet and \citep with biblatex, use its natbib=true option instead of loading natbib.
A missing .bib, .bst or .bbl
I couldn't open database file refs.bib(BibTeX) orERROR - Cannot find 'refs.bib'!(biber): the name or path does not match.\bibliographytakes the name without “.bib”;\addbibresourcetakes it with. Paths are relative to the main file, and on most servers the case of a file name matters.I couldn't open style file foo.bst: the style named in\bibliographystyleis not installed. Put the journal’s .bst file next to the main file, and give its name without the extension.No file paper.bbl.in the LaTeX log is not an error: it is the first pass, before BibTeX or biber has run.
Duplicate keys
BibTeX reports Repeated entry---line 10 of file refs.bib; biber reports WARN - Duplicate entry key: 'smith2020' in file 'refs.bib', skipping .... Both keep the first entry with that key and ignore the later one, which may be the one you corrected. Merge the two, or give the second its own key.
Capitals, special characters and names
- Many styles set titles in sentence case and lowercase the rest of the title: “HAPS” becomes “haps”. Protect the words that must keep their capitals with braces, word by word:
title = {Laser links between {HAPS} and satellites in {Europe}}. Bracing the whole title stops the style from changing its case at all. - An ampersand in a title gives
! Misplaced alignment tab character &.Write\&; likewise\%,\#and\_outside URL fields. - Authors are separated by
and, not by commas. An organisation as author goes in double braces,{{World Health Organization}}, so it is not split into a first name and a surname. - Accented names in UTF-8 work with pdfLaTeX in current LaTeX. But BibTeX does not understand UTF-8, and a style that abbreviates first names to initials can cut a character in half:
! LaTeX Error: Invalid UTF-8 byte sequence. Write the accent the LaTeX way,{\"O}zg{\"u}r, or use biblatex with biber, which handles UTF-8 throughout.
URLs, DOIs and @misc
The classic BibTeX styles, such as plain, ignore the url and doi fields entirely. natbib’s plainnat prints both, as do most journal styles. With a style that ignores them, put the address in howpublished and load the url or hyperref package. With biblatex, use @online for web pages; a doi field is printed by default.
% BibTeX, with a classic style
@misc{who2024,
author = {{World Health Organization}},
title = {Global report on an example topic},
howpublished = {\url{https://example.org/report}},
note = {Accessed 1 October 2026},
year = {2024}
}
% biblatex
@online{who2024,
author = {{World Health Organization}},
title = {Global report on an example topic},
url = {https://example.org/report},
urldate = {2026-10-01},
year = {2024}
}Style mismatches
natbib’s author–year commands need a style that supplies author names. With plain, \citet prints “(author?) [1]” and the log says Author undefined for citation. Use plainnat or the journal’s own natbib-compatible style; with biblatex, choose the style with its style= option. If the bibliography still looks stale, delete the generated files (.aux, .bbl, .bcf, .blg) and compile again; latexmk -C removes them, the PDF included.
Doing it in Manulyx
Manulyx compiles with latexmk, so BibTeX or biber and the extra passes run as needed, and Recompile from scratch ignores the previous build. Errors and warnings appear in the Problems list; an error in a file BibTeX wrote opens that file, with a note to fix the entry in your .bib. Typing \cite{ lists the keys in your .bib files with their authors and year, so a misspelt key is less likely. The References panel finds a paper in your library or at Crossref by DOI, title or author, adds its entry to the .bib file your manuscript names and cites it, and your library keeps the same key for that paper in every project. Submission readiness checks that every citation resolves, that there are no unused or duplicate entries, and that journal articles carry a DOI. See Citations and cross-references, Your reference library, Compiling, errors and the PDF and Troubleshooting.
More articles
- After a rejection: moving a paper to another journal's template
- Checking your references for retracted papers before you submit
- How to convert a Word document to LaTeX (equations included)
- How to write a response letter to reviewers
- How to make a marked (tracked-changes) manuscript in LaTeX
- Choosing and setting up a thesis template in LaTeX
- How Manulyx keeps the version you submitted
- How the marked manuscript is built
- How co-editing keeps your work safe
- All articles