Skip to main content
Most LaTeX bibliography errors happen because the bibliography tool (biber or bibtex) did not run between LaTeX passes, the wrong backend ran for your package, or a .bib path or citation key does not match. Match your compile sequence to BibLaTeX (biber) or BibTeX (bibtex), then check the exact warning or error below.

Undefined citations ([?] or bold keys)

main.log
Plain LaTeX prints the same warning with a backtick before the key (Citation `knuth1984' on page 1 undefined). In the PDF, the citation appears as [?] or as the raw key in bold. Causes and fixes:
  • The bibliography tool has not run yet. On a clean build, the first pdflatex pass records the cited keys in the .aux or .bcf file for the bibliography tool to process. Run the full build sequence (pdflatex -> biber or bibtex -> pdflatex -> pdflatex, or latexmk -pdf).
  • Key mismatch. Confirm that \cite{knuth1984} matches @book{knuth1984, ...} in your .bib file character for character. Biber matches citation keys case-sensitively and warns about a case mismatch, while classic BibTeX matches a single spelling against the database case-insensitively and reports Case mismatch error between cite keys if the document cites both Knuth1984 and knuth1984.
  • Entry syntax error in .bib. With a missing comma after the key or an unclosed brace, the bibliography tool reports an error and can stop or leave an incomplete entry. Check the .blg log file for the failing line in your .bib file.

Empty bibliography and Please (re)run Biber

main.log
Causes and fixes:
  • No citations in the text. Neither BibLaTeX nor BibTeX prints uncited entries by default. Add at least one \cite{...} (or \textcite{...}), or add \nocite{*} before \printbibliography to list every entry in the .bib file.
  • Wrong backend tool. BibLaTeX defaults to backend=biber. If your editor or script runs bibtex instead of biber, the bibliography stays empty and BibTeX prints:
main.blg
Run biber main (without the .tex extension), then run LaTeX twice.

Missing .bib database file

BibTeX writes missing-database errors to .blg, while Biber prints these lines in terminal output (and records them in .blg with timestamp and module prefixes such as Biber.pm:...>):
bibtex.blg
biber terminal
Causes and fixes:
  • Wrong extension syntax. For a local file named references.bib, write \addbibresource{references.bib} with the full filename. Classic BibTeX conventionally omits the extension in \bibliography{references}, though BibTeX also opens references.bib with either spelling.
  • Wrong relative path or case. TeX, BibTeX, and Biber resolve relative paths from the working directory where you run the build (and their search paths). Run commands from the main file’s folder — LaTeX Cloud Studio runs latexmk -cd, which changes to that folder automatically — and match exact letter case on Linux (References.bib and references.bib are different files). For a subfolder, write \addbibresource{bib/references.bib} or \bibliography{bib/references}.

Working configurations

Each configuration below consists of a .tex file and a references.bib file saved in the same folder.

BibLaTeX with Biber

biblatex-biber.tex
references.bib
Ready to use this syntax? Continue in the browser editor when you want to adapt the example in a real project.Open LaTeX Cloud Studio
From the folder containing biblatex-biber.tex and references.bib, run:
  1. pdflatex biblatex-biber
  2. biber biblatex-biber
  3. pdflatex biblatex-biber
  4. pdflatex biblatex-biber
Alternatively, run latexmk -pdf biblatex-biber.tex. A resolved PDF renders Knuth (1984) in the text and a References entry for Knuth, Donald E. (1984). The TeXbook. Addison-Wesley., with no [?] or undefined-citation warnings.

BibTeX with natbib

bibtex-setup.tex
references.bib
From the folder containing bibtex-setup.tex and references.bib, run:
  1. pdflatex bibtex-setup
  2. bibtex bibtex-setup
  3. pdflatex bibtex-setup
  4. pdflatex bibtex-setup
Alternatively, run latexmk -pdf bibtex-setup.tex. A resolved PDF renders Knuth [1984] in the text and a References entry for Donald E. Knuth. The TeXbook. Addison-Wesley, 1984., with no undefined-citation warnings.

In LaTeX Cloud Studio

In a full editor compile, LaTeX Cloud Studio runs latexmk in multi-pass mode and invokes biber or bibtex8 when the document needs a bibliography pass, so you do not run those tools manually. Lightweight checks and dedicated preview compiles can skip bibliography passes. The Problems panel cross-checks citation keys against your project’s .bib files and surfaces missing .bib files, BibTeX entry syntax errors, and undefined citations. If a .bib file is missing from the project, upload it or fix the path — the editor cannot recreate missing bibliography entries for you. Want a clean starting project to test your citations? Start from the Basic Article template in LaTeX Cloud Studio and add your .bib file alongside main.tex.