diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/nag/nagdemo.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/nag/nagdemo.tex | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/nag/nagdemo.tex b/Master/texmf-dist/doc/latex/nag/nagdemo.tex new file mode 100644 index 00000000000..ce616dc58b0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/nag/nagdemo.tex @@ -0,0 +1,73 @@ +%% +%% This is file `nagdemo.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% nag.dtx (with options: `nagdemo') +%% This is a generated file. +%% +%% 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 +%% +%% Copyright (C) 2005 by Ulrich M. Schwarz. +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3a of this license or (at your option) any later +%% version. The latest version of this license is in: +%% http://www.latex-project.org/lppl.txt +%% +%% Test document: finding and complaining about obsolete macros. +%% +\RequirePackage[l2tabu]{nag} +\documentclass{article} +%% some usual culprits +\usepackage{times, a4wide, epsfig, palatino} +\begin{document} +\typeout{Next: it and bf complaints} +{\it f{\bf oo}f}highter + +\typeout{Next: center in float complaint} +\begin{figure} + \begin{center} + Foo. + \end{center} + \caption{\label{fig}Higher!} +\end{figure} + +\typeout{Next: no complaints: manually fake caption} +\begin{figure} + Foo. +\makeatletter\nag@hascaptiontrue\makeatother + \label{date} +\end{figure} + +\typeout{Next: put-label-after-caption complaint} +\begin{figure} + Foo. + \label{coconut}\caption{Bar.} +\end{figure} + +\typeout{Next: no-caption complaint} +\begin{figure} + Foo. +\end{figure} + +\begin{appendix} + \begin{center} + Foo. + \end{center} +\typeout{Next: over complaint, centerline complaint} + \centerline{Ferner gilt $4\over 2=2$.} +\typeout{Next: appendix complaints} +\end{appendix} +\typeout{You should get 13 warnings.} +\end{document} +%%X Local Variables: +%%X mode: latex +%%X End: +\endinput +%% +%% End of file `nagdemo.tex'. |