summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/nag/nag-abort.cfg8
-rw-r--r--Master/texmf-dist/tex/latex/nag/nag-experimental.cfg68
-rw-r--r--Master/texmf-dist/tex/latex/nag/nag-l2tabu.cfg34
-rw-r--r--Master/texmf-dist/tex/latex/nag/nag-orthodox.cfg2
-rw-r--r--Master/texmf-dist/tex/latex/nag/nag.sty34
5 files changed, 129 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/nag/nag-abort.cfg b/Master/texmf-dist/tex/latex/nag/nag-abort.cfg
index 247f1c7e91d..ea1d3c1557e 100644
--- a/Master/texmf-dist/tex/latex/nag/nag-abort.cfg
+++ b/Master/texmf-dist/tex/latex/nag/nag-abort.cfg
@@ -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,12 +20,12 @@
%% http://www.latex-project.org/lppl.txt
%%
\ProvidesFile{nag-abort.cfg}
- [2005/05/08 v0.1 treat complaints as errors (ulmi)]
-\renewcommand\nag@warn[1]{%
+ [2007/11/10 v0.2 treat complaints as errors (ulmi)]
+\DeclareRobustCommand\nag@warn[1]{%
\addtocounter{nag@sins}{1}%
\PackageError{nag}{#1}{#1}%
}
-\renewcommand\nag@warnNoLine[1]{%
+\DeclareRobustCommand\nag@warnNoLine[1]{%
\addtocounter{nag@sins}{1}%
\PackageError{nag}{#1}{#1}%
}
diff --git a/Master/texmf-dist/tex/latex/nag/nag-experimental.cfg b/Master/texmf-dist/tex/latex/nag/nag-experimental.cfg
index 67fcce045e7..d52da9f9571 100644
--- a/Master/texmf-dist/tex/latex/nag/nag-experimental.cfg
+++ b/Master/texmf-dist/tex/latex/nag/nag-experimental.cfg
@@ -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,7 +20,71 @@
%% http://www.latex-project.org/lppl.txt
%%
\ProvidesFile{nag-experimental.cfg}
- [2007/06/10 v0.1b experimental additions to nag (ulmi)]
+ [2008/02/02 v0.1d experimental additions to nag (ulmi)]
+\let\@xa\expandafter
+\newif\ifnag@dofloatsizecheck
+\newcommand\nag@allfloatsizechecks{}%
+\newcommand\nag@onefloatsizecheck[2]{%
+ % #1 is size fraction of textheight,
+ % #2 is position to say in warning.
+ \ifdim \ht\@currbox>#1\textheight
+ \@tempdima -#1\textheight
+ \advance \@tempdima \ht\@currbox
+ \PackageInfo{nag}{Float too large for #2 by \the\@tempdima}%
+ % note we do not truncate.
+ % also, it's too late to add "p" now.
+ \fi
+}
+\renewcommand\@largefloatcheck{%
+ \ifdim \ht\@currbox>\textheight
+ \@tempdima -\textheight
+ \advance \@tempdima \ht\@currbox
+ \@latex@warning {Float too large for page by \the\@tempdima}%
+ \ht\@currbox \textheight
+ \fi
+ %% the preceding is the original check.
+ \nag@dofloatsizechecktrue
+ \def\nag@allfloatsizechecks{}%
+ \@xa\@tfor\@xa\nag@fltsz@tmp\@xa:\@xa=\@fps\do{%
+ \if\nag@fltsz@tmp !
+ \nag@dofloatsizecheckfalse
+ \else
+ \if\nag@fltsz@tmp t
+ \g@addto@macro\nag@allfloatsizechecks
+ {\nag@onefloatsizecheck{\topfraction}{top of page}}%
+ \else
+ \if\nag@fltsz@tmp b
+ \g@addto@macro\nag@allfloatsizechecks
+ {\nag@onefloatsizecheck{\bottomfraction}{bottom of page}}%
+ \fi
+ \fi
+ \fi
+ }%
+ \ifnag@dofloatsizecheck\nag@allfloatsizechecks\fi
+}%
+\def\@input#1{%
+ \IfFileExists{#1}{\@@input\@filef@und}{%
+ \typeout{No file #1.}
+ \@latex@warning{File `#1' not found}
+ %{The file `#1' was requested but not found }
+ \protected@edef\nag@nofile{File `#1' requested, but not found}%
+ \@xa\AtEndDocument\@xa{%
+ \@xa\@latex@info@no@line\@xa{%
+ \nag@nofile
+ }%
+ }%
+}}%
+\def\@input@#1{\InputIfFileExists{#1}{}{%
+ \typeout{No file #1.}
+ \@latex@warning{File `#1' not found}
+ {The file `#1' was requested but not found }
+ \edef\nag@nofile{File `#1' requested, but not found}%
+ \@xa\AtEndDocument\@xa{%
+ \@xa\@latex@info@no@line\@xa{%
+ \nag@nofile
+ }%
+ }%
+}}%
%%X Local Variables:
%%X mode: latex
%%X End:
diff --git a/Master/texmf-dist/tex/latex/nag/nag-l2tabu.cfg b/Master/texmf-dist/tex/latex/nag/nag-l2tabu.cfg
index 3ca2e7a0878..7d1a632ce85 100644
--- a/Master/texmf-dist/tex/latex/nag/nag-l2tabu.cfg
+++ b/Master/texmf-dist/tex/latex/nag/nag-l2tabu.cfg
@@ -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,7 +20,7 @@
%% http://www.latex-project.org/lppl.txt
%%
\ProvidesFile{nag-l2tabu.cfg}
- [2007/06/10 v2.0 l2tabu rules for nag.sty (ulmi)]
+ [2008/01/27 v2.1alpha1 l2tabu rules for nag.sty (ulmi)]
%%
%% The sins.
%%
@@ -85,6 +85,36 @@
% \$ as well will silently disable us. This is a feature.
\global\let$\nag@maybedispmath%$
\egroup
+%% new in 2.1alpha1: more compat testing. Version control keywords are dollar-delimited.
+%% all five implementations get it wrong.
+\AtBeginDocument{%
+ \@ifpackageloaded{rcs}{%
+ % this redefinition is functionally equivalent,
+ % but does not share actual code.
+ \renewcommand\RCS{\bgroup%
+ \catcode`\_ =\active
+ \catcode`\$=3 % this line added for compatibility.
+ \csname RCS_get_argument\endcsname
+ }
+ \PackageInfo{nag}{rcs.sty hack applied}%
+ }{}%
+ \@ifpackageloaded{svninfo}{%
+ \g@addto@macro\@svnBeginRead{\catcode`\$ 3 }%
+ \PackageInfo{nag}{svninfo.sty hack applied}%
+ }{}%
+ \@ifpackageloaded{svn}{%
+ \PackageInfo{nag}{svn.sty is broken: disabling dollar check}%
+ \catcode`\$ 3
+ }{}%
+ \@ifpackageloaded{rcsinfo}{%
+ \PackageInfo{nag}{rcsinfo.sty is broken: disabling dollar check}%
+ \catcode`\$ 3
+ }{}%
+ \@ifpackageloaded{pgf}{%
+ \PackageInfo{nag}{pgf.sty is broken: disabling dollar check}%
+ \catcode`\$ 3
+ }{}%
+}
%% \S 1.7 cannot reasonably be checked programmatically
%% \S 1.8 \sloppy is called by parbox, among others, and would
diff --git a/Master/texmf-dist/tex/latex/nag/nag-orthodox.cfg b/Master/texmf-dist/tex/latex/nag/nag-orthodox.cfg
index 224543b8db8..850d1c9b46d 100644
--- a/Master/texmf-dist/tex/latex/nag/nag-orthodox.cfg
+++ b/Master/texmf-dist/tex/latex/nag/nag-orthodox.cfg
@@ -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
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}%
}