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
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
pdflatexpass records the cited keys in the.auxor.bcffile for the bibliography tool to process. Run the full build sequence (pdflatex->biberorbibtex->pdflatex->pdflatex, orlatexmk -pdf). - Key mismatch. Confirm that
\cite{knuth1984}matches@book{knuth1984, ...}in your.bibfile 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 reportsCase mismatch error between cite keysif the document cites bothKnuth1984andknuth1984. - 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.blglog file for the failing line in your.bibfile.
Empty bibliography and Please (re)run Biber
main.log
- 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\printbibliographyto list every entry in the.bibfile. - Wrong backend tool. BibLaTeX defaults to
backend=biber. If your editor or script runsbibtexinstead ofbiber, the bibliography stays empty and BibTeX prints:
main.blg
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
- 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 opensreferences.bibwith 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.bibandreferences.bibare 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:
pdflatex biblatex-biberbiber biblatex-biberpdflatex biblatex-biberpdflatex biblatex-biber
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
bibtex-setup.tex and references.bib, run:
pdflatex bibtex-setupbibtex bibtex-setuppdflatex bibtex-setuppdflatex bibtex-setup
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 runslatexmk 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.
Related pages
- BibLaTeX guide
- Natbib guide
- Bibliography management with BibTeX
- Bibliography hub
- LaTeX warnings explained:
There were undefined referencesandLabel(s) may have changed
