summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/nag/nagdemo.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-07-08 22:44:22 +0000
committerKarl Berry <karl@freefriends.org>2006-07-08 22:44:22 +0000
commitc59e8e72c1dd6b8a00e742faa6f752cbc03feebc (patch)
treedddd51491e30f2d8da50ac1efbb7af2fbee7568e /Master/texmf-dist/doc/latex/nag/nagdemo.tex
parent13e3bf66eaa5551c7d9839efad868587e36dc584 (diff)
nag 0.5
git-svn-id: svn://tug.org/texlive/trunk@1785 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/nag/nagdemo.tex')
-rw-r--r--Master/texmf-dist/doc/latex/nag/nagdemo.tex25
1 files changed, 20 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/nag/nagdemo.tex b/Master/texmf-dist/doc/latex/nag/nagdemo.tex
index ce616dc58b0..afb54fca744 100644
--- a/Master/texmf-dist/doc/latex/nag/nagdemo.tex
+++ b/Master/texmf-dist/doc/latex/nag/nagdemo.tex
@@ -11,7 +11,7 @@
%% The `nag' package has the LPPL maintenance status: maintained.
%% Current Maintainer is Ulrich M. Schwarz, ulmi@users.sarovar.org
%%
-%% Copyright (C) 2005 by Ulrich M. Schwarz.
+%% Copyright (C) 2005, 2006 by Ulrich M. Schwarz.
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -21,7 +21,7 @@
%%
%% Test document: finding and complaining about obsolete macros.
%%
-\RequirePackage[l2tabu]{nag}
+\RequirePackage[l2tabu, orthodox]{nag}
\documentclass{article}
%% some usual culprits
\usepackage{times, a4wide, epsfig, palatino}
@@ -29,6 +29,13 @@
\typeout{Next: it and bf complaints}
{\it f{\bf oo}f}highter
+\typeout{Next: not-an-env complaints}
+\begin{Large}
+ \begin{sffamily}
+ Foo!
+ \end{sffamily}
+\end{Large}
+
\typeout{Next: center in float complaint}
\begin{figure}
\begin{center}
@@ -55,15 +62,23 @@
Foo.
\end{figure}
+\typeout{Next: appendix complaints}
\begin{appendix}
\begin{center}
Foo.
\end{center}
-\typeout{Next: over complaint, centerline complaint}
+\typeout{Next: no over complaint, centerline complaint, no frac complaint}
\centerline{Ferner gilt $4\over 2=2$.}
-\typeout{Next: appendix complaints}
+ $\frac 42$
\end{appendix}
-\typeout{You should get 13 warnings.}
+\typeout{Next: unmatched endflushright}
+\endflushright
+\typeout{Next: unclosed center}
+{\center Smack in the middle!}
+\typeout{Next: mismatched endflushright}
+\endflushright
+
+\typeout{You should get 17 warnings.}
\end{document}
%%X Local Variables:
%%X mode: latex