What happens between a cite command and the page
A citation is a request for information the current run does not have yet. When LaTeX reads \autocite{einstein1916} it writes the key into the .aux file and, with biblatex, records the citation in the .bcf — the biblatex control file, an XML description of every option you set, every entry you cited, every field your style needs and the version of the data model. The .bcf is what makes the whole thing work as one system instead of a negotiation between three programs.
biber is then run over the .bcf. It reads your .bib files, applies the data model, splits and sorts name lists, resolves crossref parents, allocates label names, applies disambiguation (uniquename, uniquelist), sorts the entries with the template your sorting= option selected, and writes a .bbl. In the biblatex world the .bbl is not a fragment of bibliography text — it is machine-generated LaTeX containing one \bibitem per entry plus a \refsection skeleton and the sorted/labelled field data.
LaTeX then reads that .bbl. The first pass after biber establishes the numbers, labels and page positions; a second is needed because the bibliography itself changes pagination, and every \ref to an entry is resolved against what was written on the previous run. So a plain command line for a document with citations is four runs: pdflatex, biber thesis, pdflatex, pdflatex. latexmk works that out from the dependency files and does it in the minimum number of steps.
Two practical consequences, and they explain most panicked questions. First, editing a .bib file changes nothing visible until biber has run again — LaTeX does not read .bib files at all in this scheme. Second, if biber fails, the stale .bbl from the previous run is still there and still produces an apparently correct, quietly wrong bibliography: when the output looks impossible, delete .bbl and rebuild.
biblatex or bibtex: the backend decision
The two systems look similar from the source and are unrelated underneath. Classic bibtex is a separate program with its own 1985-era language (.bst style files, written in PostScript-flavoured stack code), an 8-bit input assumption, and a data model of a fixed set of entry types and fields. You use it with \bibliographystyle{plainnat} plus \bibliography{refs} and, for author-date commands, the natbib package.
biblatex plus biber replaces all of it: a documented data model with per-type required and optional fields, Unicode-native input, more entry types (@online, @report, @dataset, @software, @unpublished), name lists that can be sorted and disambiguated properly, sorting templates, filters, sections and segments, cross-references with field inheritance, and styles written in LaTeX rather than in a stack language. Adding a field to the output is a dozen readable lines rather than an afternoon inside a .bst.
biblatex does accept backend=bibtex, which is a compatibility mode for style packages that have not been ported; it silently disables the features that need biber (sorting, filters, the extended data model, name disambiguation) and is not a way to avoid learning biber. The reverse case is legitimate, though: many journals still supply a .bst and require it, and then you use bibtex or a conversion, not a style you wrote.
Choose on facts, not fashion: if you or your coauthors control the style, use biblatex with backend=biber. If the venue ships a .bst, obey it — and keep a biblatex-based version of the same .bib for your thesis, because the entry types and the extra fields you need for biblatex are a superset of what bibtex reads, and a plain .bib file works in both worlds.
The minimal setup that works on the first try
Five lines are the working core. \usepackage[backend=biber,style=numeric]{biblatex} in the preamble; \addbibresource{refs.bib} to declare the database; \autocite{key} in the text; \printbibliography where the list goes; and a build command that runs biber. Everything else in the listing below is taste, robustness or house style.
Three details in that core are where first attempts fail. \addbibresource takes the file name including the extension — \addbibresource{refs} is not "the same thing", and in older versions it silently found nothing. \addbibresource is also the biblatex command: \bibliography{refs} is the bibtex one, and mixing them gives you the classic half-worked document. And csquotes is a hard dependency of biblatex: without it you get an error at load time telling you to install it, which is the one message in this whole area that is honest about the cause.
Then the build. With latexmk, one command: latexmk -pdf thesis.tex. Modern latexmk reads the backend from your \usepackage[backend=...]{biblatex} line and runs biber or bibtex accordingly, and reruns the engine until the .aux stops changing; with $bibtex_use = 2 in .latexmkrc it will even clean up stale files. With a hand-run sequence, remember that biber is invoked on the job name, not the database: biber thesis, not biber refs. If you run biber before the first LaTeX pass, it complains that it cannot find thesis.bcf, which is literally true and confusing the first time.
On Overleaf and in most editors the engine and bibliography processor are a menu setting; if the menu says bibtex while your source says biber, the log message is "Cannot find control file" or a bibliography that shows every entry as [??]. Set it once in the project and record it in the README you pretend you will not need.
P = p_{\mathrm{latex}} + b_{\mathrm{biber}} + p_{\mathrm{latex}} + p_{\mathrm{latex}} \qquad (\text{four runs, or one of latexmk})
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes} % required by biblatex for quoted strings
\usepackage[backend=biber,style=authoryear,
giveninits=true,maxcitenames=2,maxbibnames=99,
uniquename=init,doi=false,url=false,
sorting=nyt]{biblatex}
\begin{filecontents*}{refs.bib}
@article{einstein1916,
author = {Einstein, Albert},
title = {Die Grundlage der allgemeinen Relativit{\"a}tstheorie},
journal = {Annalen der Physik},
volume = {354},
number = {7},
pages = {769--822},
date = {1916},
doi = {10.1002/andp.19163540702},
}
@inproceedings{lambda2020,
author = {van der Waals, Johannes D. and Oseen, Carl W.},
title = {On the continuity of the gaseous state},
booktitle = {Proceedings of the Section of Sciences},
publisher = {KNAW},
volume = {23},
pages = {1--15},
date = {1920},
options = {useprefix=false},
}
@report{thesis2023,
author = {Doe, A. N.},
title = {A thesis with a very long subtitle},
type = {mastersthesis},
institution = {University of Somewhere},
date = {2023},
url = {https://example.org/thesis},
}
\end{filecontents*}
\addbibresource{refs.bib} % the extension is part of the name
\begin{document}
As shown by \textcite{einstein1916}, the field equations follow from a
variational principle \autocite[see][§~4]{lambda2020}. Later treatments
\autocite{thesis2023,einstein1916} simplified the derivation.
\printbibliography[heading=bibintoc]
\end{document}
Style options: which one changes what
style= selects the whole appearance; the four in the distribution are numeric (numbered, IEEE-like output), alphabetic (label from names plus year digits), authoryear (author-date in text and a hanging-indent list) and authortitle/verbose variants for humanities citation practice. A style package on CTAN adds more: style=apa from biblatex-apa, style=ieee, style=nature, chem-angew from biblatex-chem, Chicago styles from biblatex-chicago. Installing the package is not optional — the style name is a file lookup.
citestyle= and bibstyle= split that choice: the first governs how a citation in the text looks, the second how the list looks. citestyle=authoryear,bibstyle=numeric is a real and occasionally required combination, and it is a smaller change than writing your own citation macros.
Name shortening is a family of options worth learning once: maxcitenames/mincitenames decide when "and others" (rendered as et~al.) appears in a citation, maxbibnames/minbibnames do the same in the list, giveninits=true abbreviates given names (the older firstinits/giveninits pair is deprecated in favour of the giveninits spelling), and uniquename plus uniquelist re-expand names that would otherwise make two different works look identical. The last pair is the reason a bibliography sometimes prints "J. Smith" for one entry and "John Smith" for another, and it is a feature, not a bug — set uniquelist=false if you want list names stable.
Then the switches that make a document printable: doi=false,url=false,eprint=false to drop link clutter, urldate=comp for access dates, date=short or date=comp for date styles, defernumbers=true so that a numbered list filters without renumbering, backref=true for page-back references (do not also ask hyperref for its own backref), sortcites=true to sort multiple keys inside one citation, and sorting=nty (the default order: name, title, year) versus ynt (year first, for a chronological list) versus none (order of citation, the usual choice with style=numeric). Note that sorting belongs to a reference context: a document with several lists sets it per context rather than relying on the package option alone.
\documentclass[a4paper]{book}
\usepackage{babel,csquotes}
\usepackage[backend=biber,style=numeric,
sorting=none, % order of appearance, not alphabetical
defernumbers=true, % numbers assigned when the bib is printed
maxbibnames=4,uniquelist=false,
pagetitle=false]{biblatex}
\usepackage{hyperref} % biblatex first, hyperref after it
\addbibresource{sources.bib}
\addbibresource{more-sources.bib} % several files are fine, order matters
\DefineBibliographyStrings{english}{%
bibliography = {Sources and further reading},
andothers = {et al\adddot},
}
\begin{document}
\chapter{Introduction}
Text \cite{a1} then \cite{b7} then \cite{c3}.
% Two lists, filtered by keyword, each with its own heading.
\printbibliography[heading=subbibliography,title={Primary sources},
keyword=primary]
\printbibliography[heading=subbibliography,title={Methods},
keyword=method,notkeyword=primary]
% One list for the whole book, put it at the end instead of per chapter:
% \backmatter \printbibliography[heading=bibintoc]
\end{document}
The citation commands, and what each one prints
\textcite{einstein1916} puts the author in the grammar of the sentence — "Einstein (1916) showed..." — while \parencite{...} produces the parenthesised form, \footcite{...} the footnote form, and \supercite{...} the raised numeric form common in physics. The generic command is \autocite{...}, whose behaviour the autocite= option maps: autocite=inline makes it a parenthetical citation, autocite=footnote makes it a footnote, autocite=superscript makes it a raised number. Writing \autocite everywhere and remapping it once is the difference between a two-minute style change and a global search and replace.
Both optional arguments are supported by every citation command and their order surprises people: \autocite[see also][§~4]{lambda2020} prints the first bracket before the citation and the second after it. That is a prenote and a postnote, and it is why the common error is writing the page number in the wrong slot.
A citation may name several keys at once — \autocite{a1,b7,c3} — and the result depends on sortcites and nameyeardelim; with style=numeric you get a compressed list of numbers. To put an entry in the list without citing it, use \nocite{key}, or \nocite{*} for the whole database, which is the fastest way to review a bibliography file and the fastest way to produce a 14-page reference list by accident.
There are also the "same author" behaviours people notice but cannot name: dashed=true replaces a repeated author with a dash in the list (and it interacts with uniquelist), and ibidtracker, pagetracker and labeldate control the humanities convention of repeating a citation compactly. In verbose styles these are load-bearing; in authoryear you mostly want them off, which is what the style already does for you.
\mathrm{authors}(e) > m_{\mathrm{cite}} \;\Longleftrightarrow\; \text{et al.}, \qquad m_{\mathrm{cite}} = 3
The .bib file, names, and how sorting keys are built
The data model is the real difference from bibtex: each entry type has required, optional and forbidden fields, and biber validates against it. Dates are one date={1916-07} field rather than year plus month, and can be ranges (date={2019-03/2019-05}) or partial. @online wants url and urldate; @report, @thesis and @dataset exist and are what a thesis bibliography should use instead of abusing @misc. Field langid per entry makes a mixed-language bibliography sort and hyphenate correctly.
Names are split on the word and, and each name is Last, First, Junior, von in the two-comma form or First Last in the direct form. A lowercase particle is treated as part of the surname and, by default, ignored for sorting: "van der Waals" sorts under W. Two controls exist: the global option useprefix and the per-entry options = {useprefix}, which sorts it under "van"; and braces pin the parsing, so {van der Waals}, J. keeps the whole string as a single surname token, while J. {van der Waals} keeps the particle in the given-name part. Write the braces once and biber stops guessing.
For sorting, biber builds name lists that are separate from the printed ones: sortname, sortkey, sortyear, sorttitle can all be supplied in the entry to override what the printed fields imply — which is how a work under a pseudonym sorts under its real author — and the templates that build them are redefinable with \DeclareSortingTemplate and \DeclareSortingNamekeyTemplate. The presort field is a cheap trick worth knowing: it sorts before everything else, so a leading value of zz pushes an entry to the end of its group.
One thing people search for under the wrong name: there is no dataauthor-raw switch in biblatex. Name data is normalised into list components, and the raw-versus-displayed distinction that does exist is per field — urlraw holds the unencoded URL for the case where the printed text and the clickable target must differ, and fullhash together with fullhashraw (and their <namelist>fullhashraw per-list variants) are the hashes the uniquelist and uniquename algorithms compare. If your problem is "the author list prints differently from the file", the knobs are uniquelist, uniquename, dashed and the name-format declarations, not a raw-data option.
\mathrm{sortkey}(e) = \bigl(\rho_{\mathrm{sort}}(e),\; y(e),\; \tau(e)\bigr) \quad \mathrm{nty} \ne \mathrm{ynt}
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes} % required by biblatex for quoted strings
\usepackage[backend=biber,style=authoryear,
giveninits=true,maxcitenames=2,maxbibnames=99,
uniquename=init,doi=false,url=false,
sorting=nyt]{biblatex}
\begin{filecontents*}{refs.bib}
@article{einstein1916,
author = {Einstein, Albert},
title = {Die Grundlage der allgemeinen Relativit{\"a}tstheorie},
journal = {Annalen der Physik},
volume = {354},
number = {7},
pages = {769--822},
date = {1916},
doi = {10.1002/andp.19163540702},
}
@inproceedings{lambda2020,
author = {van der Waals, Johannes D. and Oseen, Carl W.},
title = {On the continuity of the gaseous state},
booktitle = {Proceedings of the Section of Sciences},
publisher = {KNAW},
volume = {23},
pages = {1--15},
date = {1920},
options = {useprefix=false},
}
@report{thesis2023,
author = {Doe, A. N.},
title = {A thesis with a very long subtitle},
type = {mastersthesis},
institution = {University of Somewhere},
date = {2023},
url = {https://example.org/thesis},
}
\end{filecontents*}
\addbibresource{refs.bib} % the extension is part of the name
\begin{document}
As shown by \textcite{einstein1916}, the field equations follow from a
variational principle \autocite[see][§~4]{lambda2020}. Later treatments
\autocite{thesis2023,einstein1916} simplified the derivation.
\printbibliography[heading=bibintoc]
\end{document}
Several lists, filters and per-section bibliographies
A thesis often needs more than one list: sources and further reading, cited and uncited, publications by chapter. biblatex gives three mechanisms. A reference segment (refsection=section package option, or \newrefsegment) splits the document while sharing one database, so each part gets its own subset list. A reference section (\newrefsection, or the env/type machinery) is a genuinely separate scope with its own .bbl chunk and its own sorting and numbering context — that is what an appendix bibliography with different rules needs.
Filtering is done with options on \printbibliography: keyword=primary, notkeyword=..., category=..., type=book, or a hand-curated list with \defbibcheck{mine}{...} plus a check=mine option. Keywords come from the entry (keywords = {primary, method}) and categories are declared with \DeclareBibliographyCategory and assigned in the text with \addbibcategory, which is how you keep a "software cited in this chapter" list accurate without editing the database.
Each printed list can also carry its own options through \printbibheading plus repeated \printbibliography[segment=...,heading=subbibliography,title=...] calls, and its own heading treatment: heading=none, heading=bibintoc (put it in the table of contents), heading=bibnumbered, or a title of your own. Notes above and below a list come from \defbibnote{⟨name⟩}{⟨text⟩} with prenote= and postnote=, which is the correct place for "the following list omits patents" — not a stray paragraph that gets orphaned when the list moves.
If a numbered style looks wrong across two lists, that is defernumbers: with false, numbers are assigned in citation order globally; with true, they are assigned when the list is printed, which is what you want when entries are filtered into several lists. Combined with per-section numbering and labelprefix, it is the difference between "1–47 then 48–52" and two lists that each start at 1.
\rho_{i} \equiv \rho_{j} \;\Longleftrightarrow\; \text{uniquename widens one of the two labels}
When the bibliography is empty, stale or wrong
"There were undefined references" plus [??] in the text: biber did not run, did not succeed, or ran before the .bcf existed. Build in the order above, then delete .bbl and .bcf and rebuild once so you are not reasoning about a stale artefact. "Citation 'key' on page 1 undefined": the key is misspelled, or the .bib file is not the one you added — check that \addbibresource names a file that exists relative to the main document, which is the difference between a local build and an Overleaf one when the database sits in a subdirectory.
"XML schema validation failed: found biblatex 3.19, this provides no support for biber with version 3.18" is a version mismatch, and it is almost always a partial update: biblatex (a LaTeX package) and biber (a program) are released in step, and updating one without the other breaks the pair. With TeX Live update the collection, with MiKTeX update both halves of the installation, and on a shared server check which one your PATH is finding with which biber and kpsewhich biblatex.sty.
Warnings from biber about a field — "Cannot use style...", "labelname missing", "Duplicate keys", "Bad year" — are the useful ones, and they point at the database rather than at the source. A duplicate key is silently resolved by last-wins, so two entries with the same key produce one bibliography entry and a citation that resolves to something you did not expect. Run biber --tool once on a suspect file: in tool mode it re-emits the database with sorting, deduplication and name normalisation applied, which turns an hour of guessing into a diff.
The entry prints but a field is missing means the data model, not your syntax: a field is only printed if the style's driver asks for it and the type is allowed to have it. Check whether the style prints that field for that type (many styles ignore note in articles), then add a driver or a field format of your own rather than switching the entry to @misc to force it. The last option in this area that bites people is a stale .run.xml plus latexmk: after changing the backend option, delete the auxiliary files once, because latexmk remembers the previous build graph.
Lesson cheat sheet
One key line of code from each section — jump to it or copy it straight from here.
\documentclass[a4paper]{article}
\documentclass[a4paper]{book}
\mathrm{authors}(e) > m_{\mathrm{cite}} \;\Longleftrightarrow\; \text{et al.}, \qquad m_{\mathrm{cite}} = 3
\rho_{i} \equiv \rho_{j} \;\Longleftrightarrow\; \text{uniquename widens one of the two labels}
Common mistakes
- Running
biber refs.bib. The argument is the job name (biber thesis), because biber readsthesis.bcf, not the database directly. - Writing
\addbibresource{refs}without the extension, or mixing\bibliography{...}from bibtex into a biblatex document and then wondering why half the entries appear. - Editing the
.biband recompiling once: LaTeX never reads.bibfiles, so nothing changes until biber has run and the engine has read the new.bbltwice. - Assuming a
[??]in the output is a style problem when it is a build-order problem, or a version mismatch between biber and biblatex after a partial TeX update. - Letting the author of "van der Waals" sort under "W" and then "fixing" it by writing the name as
Waals, J. van der: the real controls areuseprefixand braces, and the hack breaks the printed form. - Leaving
defernumbers=falsewhile filtering several numbered lists, so the second list starts at 48. - Shipping a document without its
.bblto a journal that does not run biber, then arguing with the typesetter about a bibliography that "works on my machine".
Questions about this lesson
Do I need biber or is bibtex enough?
Why is my LaTeX bibliography empty even though I cite things?
What is the difference between addbibresource and bibliography?
\bibliography{refs} is the classic bibtex command and takes a name without extension; \addbibresource{refs.bib} is the biblatex command, needs the extension, can be repeated, and takes options such as location=remote. Using the wrong one produces a document that compiles but prints the wrong list or none at all.How do I change from numeric to author-year in biblatex?
Why does biber complain about a version mismatch?
Should I submit the .bbl file with my paper?
Live playground: edit the LaTeX, see it render
The preview updates as you type — break it on purpose to see how errors look.
Keep reading
Three ways into the same idea: the notation itself, the lesson that teaches it, and an article that applies it.