summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/nag
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-06-17 23:24:00 +0000
committerKarl Berry <karl@freefriends.org>2007-06-17 23:24:00 +0000
commit01d27f3a5e3fe5d21a3d5aec43fd2a489783f881 (patch)
treecb04764928bc1bc0a11db25df7703bfeab137ac5 /Master/texmf-dist/doc/latex/nag
parent045e51509de20880ce1c34a4db5a0c07e55472d0 (diff)
nag update (11jun07)
git-svn-id: svn://tug.org/texlive/trunk@4461 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/nag')
-rw-r--r--Master/texmf-dist/doc/latex/nag/nag.pdfbin170338 -> 193564 bytes
-rw-r--r--Master/texmf-dist/doc/latex/nag/nagdemo.tex88
2 files changed, 70 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/latex/nag/nag.pdf b/Master/texmf-dist/doc/latex/nag/nag.pdf
index 6fb94df3b65..efc1ce598a5 100644
--- a/Master/texmf-dist/doc/latex/nag/nag.pdf
+++ b/Master/texmf-dist/doc/latex/nag/nag.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/nag/nagdemo.tex b/Master/texmf-dist/doc/latex/nag/nagdemo.tex
index bd17016207c..6506eb5c933 100644
--- a/Master/texmf-dist/doc/latex/nag/nagdemo.tex
+++ b/Master/texmf-dist/doc/latex/nag/nagdemo.tex
@@ -9,9 +9,9 @@
%%
%% This file is part of the `nag' package.
%% The `nag' package has the LPPL maintenance status: maintained.
-%% Current Maintainer is Ulrich M. Schwarz, ulmi@users.sarovar.org
+%% Current Maintainer is Ulrich M. Schwarz, ulmi@absatzen.de
%%
-%% Copyright (C) 2005, 2006 by Ulrich M. Schwarz.
+%% Copyright (C) 2005-7 by Ulrich M. Schwarz.
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -21,56 +21,68 @@
%%
%% Test document: finding and complaining about obsolete macros.
%%
-\RequirePackage[l2tabu, orthodox]{nag}
+\RequirePackage[l2tabu, orthodox, experimental]{nag}[2007/04/23]
\documentclass{article}
%% some usual culprits
\usepackage{times, a4wide, epsfig, palatino}
+%% some fancy packages
+\usepackage{subfig, topcapt, caption, hyperref}
\begin{document}
+\typeout{Next: no complaint because frontmatter is not defined}
+\ifx\frontmatter\undefined
+\else
+ \typeout{FAILURE! I shouldn't know frontmatter!}
+\fi
+\typeout{Next: no complaing about label outside float not preceded by caption}
+\section{Tests}\label{sec:tests}
\typeout{Next: it and bf complaints}
-{\it f{\bf oo}f}highter
+{\it italics {\bf not bold italics}}
\typeout{Next: not-an-env complaints}
\begin{Large}
\begin{sffamily}
- Foo!
+ Large and sans.
\end{sffamily}
\end{Large}
\typeout{Next: center in float complaint}
\begin{figure}
\begin{center}
- Foo.
+ Center in float.
\end{center}
- \caption{\label{fig}Higher!}
+ \caption{\label{fig}Figs and dates.}
\end{figure}
\typeout{Next: no complaints: manually fake caption}
\begin{figure}
- Foo.
+ I have a caption, you just can't see it.
\makeatletter\nag@hascaptiontrue\makeatother
\label{date}
\end{figure}
+\typeout{Next: no complaing about label outside float not preceded by caption}
+\section{More Tests}\label{sec:tests2}
+
\typeout{Next: put-label-after-caption complaint}
\begin{figure}
- Foo.
- \label{coconut}\caption{Bar.}
+ \label{coconut}\caption{Preceded, not followed, by label.}
\end{figure}
\typeout{Next: no-caption complaint}
\begin{figure}
- Foo.
+ No caption, even a fake one.
\end{figure}
\typeout{Next: no complaint about subfloat and topcapt}
\begin{figure}
- \subfloat{\label{sf:1}Subfig with label.}
+ \subfloat{\label{sf:1}Subfig number~\ref{sf:1} with label.}
+ \subfloat[\label{sf:17}Strange subfig]{Subfig~\ref{sf:17} with label elsewhere.}
\caption{Figure}
\end{figure}
\begin{figure}
- \topcaption{Figure}
- \subfloat{\label{sf:2}Subfig with label.}
+ \topcaption{A topcaption.}
+ \subfloat{\label{sf:2}Subfig~\ref{sf:2} with label, but no caption.}
\end{figure}
\typeout{Next: no robustness issues}
@@ -78,23 +90,63 @@
foo\footnote{bar}
\end{minipage}
+\typeout{Shouldn't cause trouble to have dollars in headings.}
+\section{Maths tests, like if $1+1=2$}
+
+\typeout{Next: three complaints in total concerning $$ end eqnarray}
+
+A \TeX-style displayed equation:
+$$ 1+1=2 $$
+
+Not an equation at all:
+$ $ 1+1=2 $ $
+
+An in line equation:
+$1+1=2$
+
+Two inline equations, double dollar is dollar dollar in resticted
+horizontal mode (onlyamsmath gets this wrong):
+$a+b=c$$1+1=2$
+
+An eqnarray:
+\begin{eqnarray}
+1+1 &=& 2
+\end{eqnarray}
+
+A bracket-style equation:
+\[1+1=2\]
+
+A starred eqnarray:
+\begin{eqnarray*}
+1+1 &=& 2
+\end{eqnarray*}
+
+A double-dollar in a hbox:
+\hbox{$$}
+
\typeout{Next: appendix complaints}
\begin{appendix}
\begin{center}
- Foo.
+ It's a center environment.
\end{center}
\typeout{Next: no over complaint, centerline complaint, no frac complaint}
- \centerline{Ferner gilt $4\over 2=2$.}
+ Over etc. warning removed for compatibility with \LaTeX\ without amsmath.
+
+ \centerline{Furthermore, $4\over 2=2$.}
$\frac 42$
\end{appendix}
\typeout{Next: unmatched endflushright}
+This is not flushright, in spite of a endflushright coming up.
\endflushright
\typeout{Next: unclosed center}
-{\center Smack in the middle!}
+{\center Smack in the middle, but center used as a switch\par}
\typeout{Next: mismatched endflushright}
+
+Another endflushright, this is brace-mismatched and otherwise totally
+unsuited for closing the center command above.
\endflushright
-\typeout{You should get 17 warnings.}
+\AtEndDocument{\typeout{You should get 20 warnings.}}
\end{document}
%%X Local Variables:
%%X mode: latex