Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!dkuug!iesd!iesd.auc.dk!krab From: krab@iesd.auc.dk (Kresten Krab Thorup) Newsgroups: comp.text.tex Subject: Linenumbers in LaTeX warnings Message-ID: Date: 23 May 91 03:42:51 GMT Sender: news@iesd.auc.dk Distribution: comp Organization: Mathematics and Computer Science, University of Aalborg Lines: 39 Here's a little hack, that allow you to get the linenumbers of LaTeX's warning messages. The output is like: LaTeX Warning [l.86]: Citation `diggle' on page 91 undefined. where [l.86] refers to line 86 in the current file. You should put the following in a style file: %---------------------------------------------------------------------- % warn.sty % \def\@warning#1{\typeout{LaTeX Warning [l.\the\inputlineno]: #1.}} %---------------------------------------------------------------------- - This should really be part of LaTeX. By the way - I'm working on a LaTeX output filter, giving messages like cc, which may easily be parsed by e.g. emacs' compile-mode. If you're interested you may have a copy of the source to test it out for me... This is how an error comes out: ---------------------------------------------------------------------- prompt% latex \\nonstopmode \\input file.tex | texlog "Appendix/App3/minkonf.tex", line 172: error: Extra }, or forgotten \endgroup. >l.172 \qed } ---------------------------------------------------------------------- Using the above style, also warnings may be parsed using this `texlog' filter. Well... have fun! /Kresten