summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/nag
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-03-25 21:27:48 +0000
committerKarl Berry <karl@freefriends.org>2007-03-25 21:27:48 +0000
commit8fe42a1ed6634a816e74e6ad05b4c891fcc28b1d (patch)
treeea8b289f8f7f095d07aead274aa4b486002c5c4d /Master/texmf-dist/source/latex/nag
parent9750f56e87a034309cf698fd9daf2fc1432a7449 (diff)
nag update, including nag.sty in runtime (dak mail 23mar07)
git-svn-id: svn://tug.org/texlive/trunk@4083 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/nag')
-rw-r--r--Master/texmf-dist/source/latex/nag/nag.dtx34
1 files changed, 27 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/nag/nag.dtx b/Master/texmf-dist/source/latex/nag/nag.dtx
index c24f400190e..c55efeaa860 100644
--- a/Master/texmf-dist/source/latex/nag/nag.dtx
+++ b/Master/texmf-dist/source/latex/nag/nag.dtx
@@ -71,6 +71,23 @@
Foo.
\end{figure}
+\typeout{Next: no complaint about subfloat and topcapt}
+\begin{figure}
+ \subfloat{\label{sf:1}Subfig with label.}
+ \caption{Figure}
+\end{figure}
+
+\begin{figure}
+ \topcaption{Figure}
+ \subfloat{\label{sf:2}Subfig with label.}
+\end{figure}
+
+\typeout{Next: no robustness issues}
+\begin{minipage}{5cm}
+ foo\footnote{bar}
+\end{minipage}
+
+
\typeout{Next: appendix complaints}
\begin{appendix}
\begin{center}
@@ -209,7 +226,7 @@
% \begin{macrocode}
%<*l2tabunag>
\ProvidesFile{nag-l2tabu.cfg}
- [2006/04/19 v1.8 l2tabu rules for nag.sty (ulmi)]
+ [2007/03/21 v1.8b l2tabu rules for nag.sty (ulmi)]
%%
%% The sins.
%%
@@ -284,8 +301,10 @@
%% \S 3.1
\NagDeclareFloat{figure}\NagDeclareFloat{table}%
\g@addto@macro\nag@labels{,label}%
-%% The latter two are used by KOMA-Script.
-\g@addto@macro\nag@captions{,caption,captionabove,captionbelow}%
+%% The latter two are used by KOMA-Script, the last by hypcap.
+% \changes{0.53}{2007/03/21}{hypcap support. (H.G.Krauth\"auser)}
+% \changes{0.53}{2007/03/21}{topcapt support.}
+\g@addto@macro\nag@captions{,caption,captionabove,captionbelow,hc@caption,topcaption}%
%% \S 3.2
\NotAnEnvironment{appendix}%
@@ -362,7 +381,7 @@
% Identify ourselves.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{nag}[2007/02/25 0.52 warning about old commands (ulmi)]
+\ProvidesPackage{nag}[2007/03/20 0.53 warning about old commands (ulmi)]
\let\@xa\expandafter
\let\@nx\noexpand
% \end{macrocode}
@@ -681,8 +700,9 @@
% nag-orthodox, where it checks for the justification environments.
%
% First of all, a helper macro we hinge upon:
+% \changes{0.53}{2007/03/20}{bugfix: more Robustness. (J\"org Sommer)}
% \begin{macrocode}
-\newcommand\nag@ifCurrentEnvironment[3]{%
+\DeclareRobustCommand\nag@ifCurrentEnvironment[3]{%
\bgroup
\def\tmp@a{#1}%
\ifx\@currenvir\tmp@a
@@ -725,7 +745,7 @@
% \foo...\endfoo way.
\newcommand\nag@envstack{\relax}
-\newcommand\nag@beginenv[1]{%
+\DeclareRobustCommand\nag@beginenv[1]{%
% push a begin-entry onto the stack. Form is
% |{\foo{lineno}}| for environment foo.
\xdef\nag@envstack{%
@@ -736,7 +756,7 @@
\@xa\@nx\nag@envstack
}%
}
-\newcommand\nag@endenv[1]{%
+\DeclareRobustCommand\nag@endenv[1]{%
% extract the first entry.
\@xa\nag@end@nv\nag@envstack\@nil #1\@nil
}