Is there any way I can build a latex document and show only errors?
I'm currently getting a lot of warnings, and these are obscuring the errors themselves.
On Dec 12, 2006, at 11:45 AM, Nicholas Cole wrote:
Is there any way I can build a latex document and show only errors?
That's a good question. You might want to try the MacTeX mailing list as well, or a more general TeX list, since this is really a LaTeX question. TM just processes the LaTeX output, so I suppose the simplest way would be to somehow tell LaTeX to only report errors.
I'm currently getting a lot of warnings, and these are obscuring the errors themselves.
Usually a lot of warnings is a definite indication that you've done something wrong. Are you sure the warnings are things you shouldn't worry about?
Haris
On 12/12/06, Charilaos Skiadas skiadas@hanover.edu wrote:
Usually a lot of warnings is a definite indication that you've done something wrong. Are you sure the warnings are things you shouldn't worry about?
Yes, I'm sure. The jurabib package (whose author cannot be praised enough!) tends to spit out large numbers of warnings - often about things that may need fixing eventually, but sometimes not even then. At any rate, when a long document fails to build, they tend to obscure what is really going on, and I have to go into the log file myself.
As a compromise, is there a 'halt on first error' option in the Textmate package?
PS. I suppose what I might /really/ be asking for is for errors and warnings to be highlighted differently by TextMate, which is a matter of parsing each line of output.
On Dec 14, 2006, at 9:08 AM, Nicholas Cole wrote:
PS. I suppose what I might /really/ be asking for is for errors and warnings to be highlighted differently by TextMate, which is a matter of parsing each line of output.
Ah, that's a different question altogether! You can look at the source that handles this part of the story, it is in python. I don't really have the knowledge and time to look into it atm. It is the file latexErrWarnHtml.py inside the LaTeX bundle's Support/bin directory. Or maybe someone else with more py-foo can do something about this. (AlexRoss? Jacob?).
Alternatively, you can temporarily comment out the jurabib package ;). Or perhaps there is an option to the package to tell it not to spew out so many warnings?
Haris
On Dec 15, 2006, at 1:06 AM, Nicholas Cole wrote:
As a compromise, is there a 'halt on first error' option in the Textmate package?
If you look at the 'Typeset and view...' command in the LaTeX bundle then you can see that the following option is given to latex to make it show all errors: "-interaction=nonstopmode". You can change this to "-interaction=errorstopmode" to make it stop at the first error (I guess you can also just remove it).
Alternatively, you can just put in the command '\errorstopmode' in the preamble of your .tex file and it should overwrite the option given to the latex command.
But I agree that it would better to improve the output such that it was easier to spot the errors.
Kind regards, Benny