Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When working with AUCTeX, I experience an unexpected behavior regarding error catching. In particular, when I hit C-c C-c, and there are errors, then C-c ` does two things:

  1. Splits the window and opens a new tab.
  2. In the lower (new) part an error message is displayed and in the new tab's title is TeX Live 2011 and it is empty.

If I close the empty tab, and switch back to the .tex file, the cursor doesn't jump to the (vicinity) of the error. I find it hard to believe that this is the expected behavior. Is there a way to customize this?

share|improve this question
add comment

3 Answers 3

up vote 3 down vote accepted

AFAIK, it sometimes happen when the error is actually located in another file.

And this is an excerpt from the "Bugs" section of the AUCTeX manual, which might be relevant to your question:

  • C-c ` should always stay in the current window, also when it finds a new file.
share|improve this answer
add comment

To add to mbork's answer. Compare the following two small examples:

\documentclass{article}
\usepackage{amsmatg}
\begin{document}
 stuff
\end{document}

This gives the "blank C-c ` error"

\documentclass{article}
\usepackage{amsmath}
\begin{document}
 stuff
 \begin{aligm}
   xyz
 \end{aligm}
\end{document}

This doesn't.

If the problem can be traced to a line in the file, then it works, if it can't it doesn't. Why it can't trace where a missing package is loaded, I don't know. But the line number doesn't appear in the log file either...

In cases where C-c ` fails, you have to go look at the log file itself (C-c C-l).

share|improve this answer
    
As a matter of fact, in both examples, the C-c` worked nicely... (PS, how do you typeset "C-c `" ?) –  Dror Aug 3 '11 at 6:26
    
@Dror <code> tags. html works as well as markdown. Sometimes, you need it... I don't know why <code>C-c `</code> didn't work for me in the package example then... weird. –  Seamus Aug 3 '11 at 10:08
    
<code> tags don't work in comments, however. Well, now you know how I wrote it in the post! –  Seamus Aug 3 '11 at 10:09
    
@Seamus: maybe this has something to do with the AUCTeX version? Anyway, I often prefer doing C-c C-l and then M-PgUp / M-PgDn. –  mbork Aug 3 '11 at 12:59
    
@mbork Me too. I hardly ever use C-c ` –  Seamus Aug 3 '11 at 13:21
add comment

It seems it happens when the parser reads a closing bracket when he's not expecting it (it doesn't matter if the bracket is balanced or not). For example, if you get a warning about an overful box containing a ) (see the link below)

You can try the quickfix given in the link also : compile using

latex -file-line-error foo.tex

http://old.nabble.com/11.86--TeX-next-error-opens-a-blank-buffer-when-)-appears-in-a-overful-hbox.-td28079618.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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