Editorial question68.6K views3,971 votes0 answers3,195 following
AI-generatedWhen has a LaTeX document compiled enough times for cross-references to be final?
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