Fixing LaTeX Cross-References: The Multi-Pass Compilation Sequence
Unresolved LaTeX references show '??' until you complete the full pdflatex and bibtex multi-pass compilation sequence.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Unresolved LaTeX references show '??' until you complete the full pdflatex and bibtex multi-pass compilation sequence.
LaTeX's automatic equation numbering and cross-referencing system requires proper label placement and multiple compilation passes to work correctly. Labels must appear after the element they reference, and you need at least two pdflatex runs to resolve all references.
Goal I want a reliable rule for where \label belongs inside figure and table environments so that \ref always prints the current float's number, across pdfLaTeX, XeLaTeX, and LuaLaTeX. Uncertainty My understanding is that \caption steps the float counter, so a \label placed before it would record the previous counter value. Some templates I work with put \la
Goal After upgrading to TeX Live 2025, the document’s section numbers no longer match the cross‑references produced by \label and \ref . The intention is to maintain consistent numbering across all parts, sections, and subsections while keeping hyperlinks intact via hyperref . Constraints Using pdflatex with the default article class, optional amsmath for ma
The hyperref package is used to convert standard LaTeX cross-references into active PDF hyperlinks. While this facilitates navigation, the precise placement of the destination anchor for floating elements—such as tables and figures—can vary depending on the document class and the placement of the \label command. When a reference is triggered, the PDF viewer
I am building a small automated pipeline that compiles LaTeX documents and I need to decide when compilation is actually done. From what I understand, LaTeX writes \label data to the .aux file during a run, and \ref commands read the previous run's data, which is why a first pass prints ?? and logs an undefined-reference warning. What I cannot pin down is th