I often have this error when using AUCTeX:
TeX-error: Error occured after last TeX file closed
However, when running for instance pdflatex
on the command line, I have a proper error message. But the line number information is not always useful, especially if multiple files are included. I'd like to be able to see the error in Emacs.
Best Answer
AUCTeX 11.89
Starting from this version of AUCTeX, the option
TeX-file-line-error
enables by default thefile:line:error
messages that solve the problem. Thus, from this version you shouldn't run anymore into this kind of problems. I also suggest to revert any change toLaTeX-command-style
, in order to be sure to use the default value.See below for previous versions.
AUCTeX 11.88 or earlier
Instead of editing the
texmf.cnf
file you can just add-file-line-error
option to your TeX processor. To do this add the following code to your.emacs
:See also the AUCTeX FAQ:
Note: already answered here.