File: warn.sty

package info (click to toggle)
texlive-doc 2009-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 192,004 kB
  • ctags: 4,774
  • sloc: perl: 12,760; xml: 11,870; makefile: 1,033; lisp: 394; sh: 229; awk: 205; java: 159; sed: 4
file content (19 lines) | stat: -rw-r--r-- 648 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%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
%
% \string: for french context
\def\@warning#1{\typeout{LaTeX Warning [l.\the\inputlineno]\string: #1.}}
% and the new name:
\def\@latex@warning#1{\typeout{LaTeX Warning [l.\the\inputlineno]\string: #1.}}
%----------------------------------------------------------------------