0

If my LaTeX fails to compile because of any error (e.g. if I forget a dollar sign or something around my equations and try to compile) then it won't compile the next time unless I delete the .aux file it creates first. If I click 'go to error' button, it highlights my \begin{document}. Why is this happening and how can I fix it?

  • 1
    The aux file is read in early in the compile if it exists. Unfortunately a failed compile can leave the aux file in an bad state that causes an error upon reading. Therefore it must be deleted before recompiling. This doesn’t always happen but it’s good practice. – Herb Schulz Apr 22 at 19:27
  • 1
    If it does this on every error it suggests that you are quitting tex incorrectly (such as killing the process) rather than quitting cleanly with x at the error prompt. – David Carlisle Apr 22 at 22:22
  • I never had to do this before. It just started happening yesterday. – TuoTuo Apr 23 at 3:44
  • @DavidCarlisle, David, this works! I didn't know that was a thing.Thanks! – TuoTuo Apr 23 at 3:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.