1 % \iffalse meta-comment
3 % Copyright (C) 1992 by David Carlisle, Frank Mittelbach.
6 % This file is part of the validate package.
10 % You are not allowed to change this file. In case of error
11 % write to the email address mentioned in the file readme.val.
15 % Test file for LaTeX2.09 testing latex.bug (style) entry
16 % 79. Added definition for \pagename and conditional around definition
17 % for \abstractname in the proc document style option. (Suggested by
18 % Friedrich Haubensak. Change made 26 Feb 92.)
21 \documentstyle[proc]{article}
24 % Input the test macros for LaTeX2e
27 % Everything before this is ignored by the test system.
32 % Declare the format used on the original run, as printed by
35 \FORMAT{LaTeX2e<1993/12/24>}
37 % Article document style for this test. We need to have a
38 % minimal font setup, for the last few tests, otherwise we
39 % could have done this with no documentstyle.
43 % no document style options for this test
47 % Optionally declare commands which are (or might be)
48 % defined in this `module' of LaTeX. Each command declared
49 % will be recorded in the .tlg file as Defined, Undefined,
50 % or Relaxed (ie \let to \relax, which LaTeX treats for most
51 % purposes as being undefined)
53 \declare@command\partname % {Part}
54 \declare@command\contentsname % {Contents}
55 \declare@command\listfigurename % {List of Figures}
56 \declare@command\listtablename % {List of Tables}
57 \declare@command\refname % {References}
58 \declare@command\indexname % {Index}
59 \declare@command\figurename % {Figure}
60 \declare@command\tablename % {Table}
61 \declare@command\abstractname % {Abstract}
62 \declare@command\pagename % {"Page" in header}
64 % Redefine all the heading strings
66 \newcounter{contentsname}
67 \newcounter{listfigurename}
68 \newcounter{listtablename}
70 \newcounter{indexname}
71 \newcounter{figurename}
72 \newcounter{tablename}
73 \newcounter{chaptername}
75 \newcounter{abstractname}
77 \newcommand{\ChangeName}[2]{#2\typeout{#1 name changed to #2}}
78 \renewcommand{\contentsname}{\addtocounter{contentsname}{1}\ChangeName{Contents}{XContents}}
79 \renewcommand{\listfigurename}{\addtocounter{listfigurename}{1}\ChangeName{List of Figures}{XList of Figures}}
80 \renewcommand{\listtablename}{\addtocounter{listtablename}{1}\ChangeName{List of Tables}{XList of Tables}}
81 \renewcommand{\refname}{\addtocounter{refname}{1}\ChangeName{References}{XReferences}}
82 \renewcommand{\indexname}{\addtocounter{indexname}{1}\ChangeName{Index}{XIndex}}
83 \renewcommand{\figurename}{\addtocounter{figurename}{1}\ChangeName{Figure}{XFigure}}
84 \renewcommand{\tablename}{\addtocounter{tablename}{1}\ChangeName{Table}{XTable}}
85 \renewcommand{\partname}{\addtocounter{partname}{1}\ChangeName{Part}{XPart}}
86 \renewcommand{\abstractname}{\addtocounter{abstractname}{1}\ChangeName{Abstract}{XAbstract}}
87 \renewcommand{\pagename}{\addtocounter{pagename}{1}\ChangeName{Page}{XPage}}
90 % Make one example of each to check the name has been correctly changed.
96 The behaviour of names in this \LaTeX\ is quite different to those in
97 the original \LaTeX\ 2.09.
99 \section{First section}
101 \fbox{There was not a breve or a minim in sight.}
102 \caption{Incidence of notes in Picadilly Square}
105 \fbox{{\large F}{\it g}{\large I}{\it r}{\large G}{\it o}{\large
106 U}{\it n}{\large R}{\it d}{\large E}}
107 \caption{Switched around Bach}
110 \section{First appendix}
111 A reference to the bibliography (\cite{bitmap}).
113 \begin{thebibliography}{9}
114 \bibitem{bitmap} Steve Rimmer {\bf Bit-Mapped Graphics}, Windcrest/McGraw-Hill,
117 \end{thebibliography}
121 \subsubitem Vaseline\copyright\ 3
125 \typeout{Each counter should have a non-zero value to show that the name has been changed}
126 \typeout{Counter contentsname is \thecontentsname}
127 \typeout{Counter listfigurename is \thelistfigurename}
128 \typeout{Counter listtablename is \thelisttablename}
129 \typeout{Counter refname is \therefname}
130 \typeout{Counter indexname is \theindexname}
131 \typeout{Counter figurename is \thefigurename}
132 \typeout{Counter tablename is \thetablename}
133 \typeout{Counter partname is \thepartname}
134 \typeout{Counter abstractname is \theabstractname}
135 \typeout{Counter pagename is \thepagename}
137 % everything after this will be ignored by the test system.
138 % This line may be omitted, and replaced by \end{document}
139 % If it is necessary to run the \end{document} command, say
140 % to get the .aux files correct.