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.

Fails
\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}
Fixed
\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

Every example on this page was compiled with pdfLaTeX to check that it fails and is fixed as described. All LaTeX errors