summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/warn.sty
blob: 54be168431b013b0d088cb8dbdeefb62eb8a8f54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
% Written by Kresten Krab Thorup <krab@iesd.auc.dk>

%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.}}
%----------------------------------------------------------------------