[OS X TeX] Format of the LaTeX log files?
skiadas at hanover.edu
Wed Feb 28 14:05:25 EST 2007
Thank you both for your responses. We already are doing some sort of
scanning in TextMate, and the script that does that is here:
I am trying to improve on that. I'll look into what the other editors
are doing, and see what I come up with and let you know. Though it
will likely take quite some time.
On Feb 26, 2007, at 2:37 PM, Jerome Laurens wrote:
> Selon Maarten Sneep <maarten.sneep at xs4all.nl>:
>> On Feb 26, 2007, at 07:14, Charilaos Skiadas wrote:
>>> I am in the process of rewriting the information that TextMate
>>> presents when doing a LaTeX compile, and I was wondering if there
>>> was some documentation anywhere on the format of the log files, and
>>> extracting information from that file. Anyone have any info/links
>>> on this?
>> As far as I know there is no official format for the log files. There
>> are a few practical rules, but there are no guarantees.
>> 1) log generated by file 'file' is contained in parentheses:
>> (file.tex ....)
>> 2) not all parentheses indicate a file.
>> 3) You can turn on "file:line:error style messages", which may help
>> in parsing:
>> ./parent.tex:24: Undefined control sequence.
>> l.24 \blub
>> The control sequence at the end of the top line
>> of your error message was never \def'ed. If you have
>> misspelled it (e.g., `\hobx'), type `I' and the correct
>> spelling (e.g., `I\hbox'). Otherwise just continue,
>> and I'll forget about whatever was undefined.
>> Since packages can and will write anything they please to the log,
>> you should expect everything.
>> LuaTeX is attempting to improve upon this, trying to turn the log
>> into something resembling xml. Just a few more years.
> Some more info:
> The LaTeX .log contains both tex messages, latex messages and
> package messages.
> The tex messages come from pool.tex, AFAIK, this will change with
> new versions
> of pdftex. I don't know if the new design will be more efficient.
> The error is ^! (regex) unless...
> AucTeX, TeXnicenter and various ITE's have their own parser for the
> You should be able to pick up the interesting part from their source.
> I did not find time to do this myself, I would be grateful if you
> share your
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the MacOSX-TeX