summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nag/nag.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/nag/nag.sty')
-rw-r--r--Master/texmf-dist/tex/latex/nag/nag.sty34
1 files changed, 26 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/nag/nag.sty b/Master/texmf-dist/tex/latex/nag/nag.sty
index 732a1784518..224d86ffc0a 100644
--- a/Master/texmf-dist/tex/latex/nag/nag.sty
+++ b/Master/texmf-dist/tex/latex/nag/nag.sty
@@ -11,7 +11,7 @@
%% The `nag' package has the LPPL maintenance status: maintained.
%% Current Maintainer is Ulrich M. Schwarz, ulmi@absatzen.de
%%
-%% Copyright (C) 2005-7 by Ulrich M. Schwarz.
+%% Copyright (C) 2005-8 by Ulrich M. Schwarz.
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -20,11 +20,16 @@
%% http://www.latex-project.org/lppl.txt
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{nag}[2007/06/10 0.60 warning about old commands (ulmi)]
+\ProvidesPackage{nag}[2008/02/10 0.61 warning about old commands (ulmi)]
\let\@xa\expandafter
\let\@nx\noexpand
\newcounter{nag@c}
-\newcounter{nag@sins}
+\renewcommand\thenag@c{\roman{nag@c}}%
+\setcounter{nag@c}{1}%
+\begingroup
+ \let\@addtoreset\@gobbletwo
+ \newcounter{nag@sins}%
+\endgroup
\newcommand\nag@ifundefined[1]{%
\begingroup
\@ifundefined{#1}{\endgroup\@firstoftwo}{\endgroup\@secondoftwo}%
@@ -36,22 +41,35 @@
Command \@backslashchar#1\space not defined, skipping amendment%
}%
}{%
+ \nag@ifundefined{#1 }{%
+ \let\nag@maybespace\@empty
+ }{%
+ \let\nag@maybespace\space
+ %\PackageInfo{nag}{%
+ % Command \@backslashchar#1\space appears robust\MessageBreak
+ % Modifying `\@backslashchar#1\space' instead.
+ %}%
+ }%
\@xa\let
\csname nag@@#1@\thenag@c\@xa\endcsname
- \csname #1\endcsname
- \@xa\nag@pr@p@nd\csname #1\@xa\endcsname
- \csname nag@@#1@\thenag@c\endcsname{#2}%
+ \csname #1\nag@maybespace\endcsname
+ \@xa\DeclareRobustCommand\csname nag@@warning@\thenag@c\@xa\endcsname{%
+ #2%
+ }%
+ \@xa\nag@pr@p@nd\csname #1\nag@maybespace\@xa\endcsname
+ \csname nag@@#1@\thenag@c\@xa\endcsname
+ \csname nag@@warning@\thenag@c\@xa\endcsname
\stepcounter{nag@c}%
}%
}
\newcommand\nag@pr@p@nd[3]{%
\def#1{#3#2}%
}
-\newcommand\nag@warn{%
+\DeclareRobustCommand\nag@warn{%
\addtocounter{nag@sins}{1}%
\PackageWarning{nag}%
}
-\newcommand\nag@warnNoLine{%
+\DeclareRobustCommand\nag@warnNoLine{%
\addtocounter{nag@sins}{1}%
\PackageWarningNoLine{nag}%
}