[Tex/LaTex] How to increase (relevant) verbosity of compilation errors with Emacs+AucTeX

auctexemacserrorstexmaker

I often debug LaTeX files and Emacs+AUCTeX does not show many informations about errors.

I always have the following message in the minibuffer:

LaTeX errors in `*~/my/file output*'. Use C-c ` to display.

and if I press C-c `

TeX-error: Error occured after last TeX file closed

which is completely useless.

If I want to track errors, I have to change buffer (go to output buffer) and looking by myself where is the problematic part inside a big file where 99% of informations are not errors.

At the opposite, Texmaker shows precisely the error message as you can see:

enter image description here

Therefore sometimes I use Texmaker to debug LaTeX file instead of Emacs.

I'm looking any solution to improve the way Emacs notify errors. How can have a concise view of errors which is really useful to debug with Emacs?

Best Answer

Since version 11.88, AUCTeX comes with an error overview, accessible via TeX-error-overview.

There are two possible setups: overview in the same frame of the TeX buffer and in a separate dedicated frame. This is how it looks like:

Same frame setup AUCTeX error overview, same frame


Separate frame setup AUCTeX error overview, separate frame

You can visit an error by clicking on its message or pressing RET. n and p can also be used to go to the next or previous error. Other suggestions welcome :-)

The message

TeX-error: Error occured after last TeX file closed

refers to a difficulty for AUCTeX to correctly parse the output log. This issue should have been already fixed in version 11.90.