diff options
author | Karl Berry <karl@freefriends.org> | 2008-02-12 18:34:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-02-12 18:34:45 +0000 |
commit | 87f5bf9bf0a3ad0306a912db16a32beec711e94a (patch) | |
tree | dd6e5abcbf02cab2b779e3aa698d7f84dc9745a3 /Master/texmf-dist/tex/latex/nag/nag.sty | |
parent | ec84cebdc3cbd045b86606318c88d58b99daee7e (diff) |
nag 0.61 (11feb08)
git-svn-id: svn://tug.org/texlive/trunk@6612 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nag/nag.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/nag/nag.sty | 34 |
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}% } |