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.

I'm using vim to write my latex and have a makefile that simply runs PDFLatex on the main TeX file. The output from this is often incredibly dense and difficult to parse with the human eye. What's more there is usually a great deal and useful information will have left the terminal window before I have seen it.

I am quite used to situations like in gcc where you can force it to halt on warnings, which would currently be my desired behaviour (but I can't find a way to do this). What's more, there are things that I would like to be warned about (for example overfull bounding boxes) that don't come with "LaTeX Warning" along side them. So I would be unsure of how to grep this to get all useful information.

Is there any standard command line method to achieve what I am looking for? Alternatively, a method of parsing the log file to easily list these typesetting errors would be useful.

share|improve this question
    
have you seen the answers to what-is-your-favorite-vi-or-vim-command-trick –  cmhughes May 3 '12 at 10:10
    
I've just read them and I don't see how any apply. The best I can find is a toggle between "verbose" and "silent" output mode, which isn't what I'm asking for. –  VolatileStorm May 3 '12 at 12:44
    
You might want to have a look at the script texloganalyser that's installed along with TeX Live. For example texloganalyser -h file.log will show "Overfull \hbox" warnings. –  egreg May 3 '12 at 14:31
    
Also there's pplatex ppdflatex, which can be obtained from stefant.org/web/projects/software/pplatex.html This program runs latex or pdflatex and nicely summarizes the errors and warnings. –  John Collins May 3 '12 at 15:36
    
I think \usepackage[l2tabu, abort]{nag} will get you at least part of the way there. –  jon May 7 '12 at 18:54
add comment

1 Answer

There's no way to make TeX stop at warnings.

You can go to Plan B: the script texloganalyser (included in TeX Live) has facilities for showing different bits of the log file.

As pointed to by John Collins, also pplatex and ppdflatex are meant to do this: https://github.com/stefanhepp/pplatex

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.