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.)
25 % Input the test macros for LaTeX2e
28 % Everything before this is ignored by the test system.
33 % Declare the format used on the original run, as printed by
36 \FORMAT{LaTeX2e<1993/12/24>}
38 % Article document style for this test. We need to have a
39 % minimal font setup, for the last few tests, otherwise we
40 % could have done this with no documentclass.
44 % Optionally declare commands which are (or might be)
45 % defined in this `module' of LaTeX. Each command declared
46 % will be recorded in the .tlg file as Defined, Undefined,
47 % or Relaxed (ie \let to \relax, which LaTeX treats for most
48 % purposes as being undefined)
50 \declare@command\partname % {Part}
51 \declare@command\contentsname % {Contents}
52 \declare@command\listfigurename % {List of Figures}
53 \declare@command\listtablename % {List of Tables}
54 \declare@command\refname % {References}
55 \declare@command\indexname % {Index}
56 \declare@command\figurename % {Figure}
57 \declare@command\tablename % {Table}
58 \declare@command\abstractname % {Abstract}
59 \declare@command\pagename % {"Page" in header}
61 % Redefine all the heading strings
64 \newcounter{contentsname}
65 \newcounter{listfigurename}
66 \newcounter{listtablename}
68 \newcounter{indexname}
69 \newcounter{figurename}
70 \newcounter{tablename}
71 \newcounter{chaptername}
73 \newcounter{abstractname}
76 \newcommand{\ChangeName}[2]{#2\typeout{#1 name changed to #2}}
77 \renewcommand{\contentsname}{\addtocounter{contentsname}{1}\ChangeName{Contents}{XContents}}
78 \renewcommand{\listfigurename}{\addtocounter{listfigurename}{1}\ChangeName{List of Figures}{XList of Figures}}
79 \renewcommand{\listtablename}{\addtocounter{listtablename}{1}\ChangeName{List of Tables}{XList of Tables}}
80 \renewcommand{\refname}{\addtocounter{refname}{1}\ChangeName{References}{XReferences}}
81 \renewcommand{\indexname}{\addtocounter{indexname}{1}\ChangeName{Index}{XIndex}}
82 \renewcommand{\figurename}{\addtocounter{figurename}{1}\ChangeName{Figure}{XFigure}}
83 \renewcommand{\tablename}{\addtocounter{tablename}{1}\ChangeName{Table}{XTable}}
84 \renewcommand{\partname}{\addtocounter{partname}{1}\ChangeName{Part}{XPart}}
85 \renewcommand{\abstractname}{\addtocounter{abstractname}{1}\ChangeName{Abstract}{XAbstract}}
86 \renewcommand{\pagename}{\addtocounter{pagename}{1}\ChangeName{Page}{XPage}}
89 % Make one example of each to check the name has been correctly changed.
95 The behaviour of names in this \LaTeX\ is quite different to those in
96 the original \LaTeX\ 2.09.
98 \section{First section}
100 \fbox{There was not a breve or a minim in sight.}
101 \caption{Incidence of notes in Picadilly Square}
104 \fbox{{\large F}{\it g}{\large I}{\it r}{\large G}{\it o}{\large
105 U}{\it n}{\large R}{\it d}{\large E}}
106 \caption{Switched around Bach}
109 \section{First appendix}
110 A reference to the bibliography (\cite{bitmap}).
112 \begin{thebibliography}{9}
113 \bibitem{bitmap} Steve Rimmer {\bf Bit-Mapped Graphics}, Windcrest/McGraw-Hill,
116 \end{thebibliography}
120 \subsubitem Vaseline\copyright\ 3
124 \typeout{Each counter should have a non-zero value to show that the name has been changed}
125 \typeout{Counter contentsname is \thecontentsname}
126 \typeout{Counter listfigurename is \thelistfigurename}
127 \typeout{Counter listtablename is \thelisttablename}
128 \typeout{Counter refname is \therefname}
129 \typeout{Counter indexname is \theindexname}
130 \typeout{Counter figurename is \thefigurename}
131 \typeout{Counter tablename is \thetablename}
132 \typeout{Counter partname is \thepartname}
133 \typeout{Counter abstractname is \theabstractname}
134 \typeout{Counter pagename is \thepagename}
136 % everything after this will be ignored by the test system.
137 % This line may be omitted, and replaced by \end{document}
138 % If it is necessary to run the \end{document} command, say
139 % to get the .aux files correct.