Rules / Output

LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right — LaTeX needs another run

Labels changed during the run; references and page numbers may be wrong until LaTeX runs again.

Fix

Build with latexmk, which reruns LaTeX as needed.

Example

Reproduced on TeX Live 2026 by CI · pdflatex · corpus/labels-changed

Cross-references need another LaTeX run

Fails: main.tex
\documentclass{article}
\begin{document}
\section{Introduction}\label{sec:intro}
Section~\ref{sec:method} describes the method.
\section{Method}\label{sec:method}
Text.
\end{document}
What TeX prints in main.log
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.