LaTeX warning "Empty bibliography": cause and fix

Warning Empty bibliography

\printbibliography had no entry to print, so the bibliography and its heading are missing from the PDF. With BibTeX, LaTeX warns about an empty thebibliography environment in the same situation.

Why it happens

How to fix it

A document that produces the message

\documentclass{article}
\usepackage{biblatex}
\addbibresource{refs.bib}
\begin{document}
Text without a citation.
\printbibliography
\end{document}

Open in the editor

File refs.bib:

@book{knuth1984,
  author = {Donald E. Knuth},
  title = {The TeXbook},
  publisher = {Addison-Wesley},
  year = {1984}
}

Tools run in this order: pdflatex → biber → pdflatex.

The corrected document

\documentclass{article}
\usepackage{biblatex}
\addbibresource{refs.bib}
\begin{document}
Text without a citation.
\nocite{*}
\printbibliography
\end{document}

Open in the editor

Both documents were compiled with pdfLaTeX from TeX Live 2023. The first produces the message, the second compiles without an error.

Finding the line in the editor

The editor lists every error and warning of a compile run with file and line. Select an entry and the cursor jumps to that line. See Error list with jump to the line.

Related pages