0

I read here that sometimes we must compile twice in order for the .aux file to allow sectioning to function properly in the typesetting process.

My question is: if we manually delete the .aux file after a successful compilation, then edit the document, then compile again, will we have bypassed the need to compile twice?

Thanks in advance.

David Carlisle
  • 757,742
preritdas
  • 101
  • 9
    no \ref or longtable or \include or tables of contents etc will work – David Carlisle Sep 23 '21 at 05:03
  • Unless you write the entire document in one session and never need to run latex to preview the output until the document is complete, running latex more than once is not an issue. You almost always run latex more than once in any case while writing a document. – David Carlisle Sep 23 '21 at 06:10
  • You need to compile multiple times because the later runs need to read the .aux file. So if you delete the .aux file, you have to compile more often (since you first need to regenerate it). – Marcel Krüger Sep 23 '21 at 07:21
  • 2
    If you manually delete the .aux file, you'll need (at least) two runs of LaTeX, unless you have nothing that gets written in the .aux file. – egreg Sep 23 '21 at 07:57

0 Answers0