LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
Some label's number or page changed during this run, so references printed from the old .aux may be wrong. Compile again; if it never settles, look for a loop.
Help centre › LaTeX errors › References and bibliography · Warning: the document still compiles
What the log says
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
)
Output written on main.pdf (3 pages, 41250 bytes).What it means
At the end of each run LaTeX compares the labels it just wrote with the ones it read from the .aux file at the start. If any number or page differs, the \ref and \pageref values printed in this run may be stale, and another run will use the new ones. One more compile almost always clears it.
Causes and fixes
Most common first. Each example is a complete document; the first fails with this message, the second is the same document fixed.
1. Something earlier in the document grew and moved later material to another page
A table of contents, list of figures or bibliography is empty on the first run and fills in on the second, pushing everything after it down and changing page numbers. Compile once more; or start the body on a fresh page after the contents (as long as the contents fit on their page), so their length no longer moves later pages.
\documentclass{article}
\newcommand\chunk[1]{\section{Part #1}\label{s#1}Details of part #1.\par}
\begin{document}
\tableofcontents
\chunk{1}\chunk{2}\chunk{3}\chunk{4}\chunk{5}\chunk{6}\chunk{7}\chunk{8}\chunk{9}\chunk{10}
\chunk{11}\chunk{12}\chunk{13}\chunk{14}\chunk{15}
\end{document}\documentclass{article}
\newcommand\chunk[1]{\section{Part #1}\label{s#1}Details of part #1.\par}
\begin{document}
\tableofcontents
\clearpage
\chunk{1}\chunk{2}\chunk{3}\chunk{4}\chunk{5}\chunk{6}\chunk{7}\chunk{8}\chunk{9}\chunk{10}
\chunk{11}\chunk{12}\chunk{13}\chunk{14}\chunk{15}
\end{document}2. You added, removed or moved a \label since the last compile
Any edit that renumbers a section, figure or equation changes its label. This is expected: compile again and the warning goes.
3. A reference's own length moves its label back and forth
Occasionally a \pageref or a "see page …" phrase near a page break pushes the label to the next page, which shortens the text, which pulls it back. The warning then never goes away. Reword the sentence near the page break, or tie it with ~ so the break falls elsewhere.
In Manulyx
Manulyx repeats the LaTeX passes itself until the references settle, so this warning normally clears by itself. If it is still listed after a compile, the document has one of the loops described here.
Write in Manulyx for free · Journal templates
More in references and bibliography
- LaTeX Warning: Citation `<key>' on page <n> undefinedA \cite key has no entry in the built bibliography: a key typo, a missing \bibliography line, a broken .bib entry, or BibTeX has not run yet.
- LaTeX Warning: Label `<label>' multiply defined.Two \label commands use the same name, so every \ref to it shows whichever came last. Rename one, and update the \ref commands that meant it.
- I couldn't open database file <name>.bibBibTeX cannot find the .bib file named in \bibliography. Check the spelling and folder, and write the name without the .bib extension.
- I found no \bibdata commandBibTeX read the .aux file and found no \bibliography, no \cite or no \bibliographystyle. Add the missing command, or run biber for biblatex.
- Repeated entry---line <n> of file <name>.bibTwo .bib entries share one citation key. BibTeX keeps the first and skips the other. Delete the duplicate or give it its own key.
- I was expecting a `,' or a `}'---line <n> of file <name>.bibA .bib entry is malformed, most often a missing comma between fields or a space in the key. BibTeX skips the rest of the entry.
Every example on this page was compiled with pdfLaTeX to check that it fails and is fixed as described. All LaTeX errors