Im having this weird error that says:

Underfined Control Sequence. 1.60 \@writefi

I can press [s] on the command line and the message is ignored, and the code still runs ...

What can be causing this error?

  • You stopped compilation and a write was not completed. Clear auxiliaries. – Yiannis Lazarides Apr 12 '13 at 19:54
  • @YiannisLazarides But I didn't force compilation to stop. Why would this happen ? – Razor Apr 12 '13 at 19:57
  • 1
    @NLed the aux file should have the command \@writefile but it has become corrupt so you need to delete it. – David Carlisle Apr 12 '13 at 20:11
  • @DavidCarlisle can you add that as an answer so that I can mark it as correct ? – Razor Apr 12 '13 at 20:27
  • 1
    additional useful commentary is present in answers to the (closed) question Debugging LaTeX Errors: how to isolate the problem – barbara beeton Jul 12 '14 at 14:14

The aux file should have the command \@writefile but it has become corrupt so you need to delete it.

| improve this answer | |
  • Wow thanks this really saved me! – Ovi Jul 6 '19 at 14:15

I had the same issue and the deletion of aux file did not help.

After some time, I found out that it was caused by full memory - after freeing about 2 GB, the compilation succeeded.

| improve this answer | |

As an additional answer, as deleting .aux files and restarting to clear ram did not help as other answers suggested:

My problem was that some of the images I use in my report are automatically generated by a Python script, and that I halted execution midway causing one of the images to be incorrectly formatted. Re-generating the image and allowing it to save properly, then deleting the .aux file and recompiling fixed my issues.

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.