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 % 54. International language support. All fixed strings are removed and
17 % commands are inserted instead. The names are chosen according to the
18 % standard developed in Europe (ILaTeX, german.sty, babel.sty). The default
19 % for these commands is to produce the old string, so there is no change in
20 % behavior. (Changes made 30 Mar 91.)
21 % 73. Somehow Appendix was not replaced by \appendixname in the report
22 % and book documentclasss. (Found by Bernd Raichle. Corrected 12 Dec
26 \documentclass{report}
29 % Input the test macros for LaTeX2e
32 % Everything before this is ignored by the test system.
37 % Declare the format used on the original run, as printed by
40 \FORMAT{LaTeX2e<1993/12/24>}
42 % Report document style for this test. We need to have a
43 % minimal font setup, for the last few tests, otherwise we
44 % could have done this with no documentclass.
48 % Optionally declare commands which are (or might be)
49 % defined in this `module' of LaTeX. Each command declared
50 % will be recorded in the .tlg file as Defined, Undefined,
51 % or Relaxed (ie \let to \relax, which LaTeX treats for most
52 % purposes as being undefined)
53 %% * after names means that the message "X name changed" appears in the
54 %% log file for that entry (just checking)
56 \declare@command\partname % {Part*}
57 \declare@command\contentsname % {Contents*}
58 \declare@command\listfigurename % {List of Figures*}
59 \declare@command\listtablename % {List of Tables*}
60 \declare@command\bibname % {Bibliography*}
61 \declare@command\indexname % {Index*}
62 \declare@command\figurename % {Figure*}
63 \declare@command\tablename % {Table*}
64 \declare@command\chaptername % {Chapter*}
65 \declare@command\appendixname % {Appendix*}
66 \declare@command\abstractname % {Abstract*}
68 % Redefine all the heading strings
71 \newcounter{contentsname}
72 \newcounter{listfigurename}
73 \newcounter{listtablename}
75 \newcounter{indexname}
76 \newcounter{figurename}
77 \newcounter{tablename}
78 \newcounter{chaptername}
79 \newcounter{appendixname}
81 \newcounter{abstractname}
83 \newcommand{\ChangeName}[2]{#2\typeout{#1 name changed to #2}}
84 \renewcommand{\contentsname}{\addtocounter{contentsname}{1}\ChangeName{Contents}{XContents}}
85 \renewcommand{\listfigurename}{\addtocounter{listfigurename}{1}\ChangeName{List of Figures}{XList of Figures}}
86 \renewcommand{\listtablename}{\addtocounter{listtablename}{1}\ChangeName{List of Tables}{XList of Tables}}
87 \renewcommand{\bibname}{\addtocounter{bibname}{1}\ChangeName{Bibliography}{XBibliography}}
88 \renewcommand{\indexname}{\addtocounter{indexname}{1}\ChangeName{Index}{XIndex}}
89 \renewcommand{\figurename}{\addtocounter{figurename}{1}\ChangeName{Figure}{XFigure}}
90 \renewcommand{\tablename}{\addtocounter{tablename}{1}\ChangeName{Table}{XTable}}
91 \renewcommand{\chaptername}{\addtocounter{chaptername}{1}\ChangeName{Chapter}{XChapter}}
92 \renewcommand{\appendixname}{\addtocounter{appendixname}{1}\ChangeName{Appendix}{XAppendix}}
93 \renewcommand{\partname}{\addtocounter{partname}{1}\ChangeName{Part}{XPart}}
94 \renewcommand{\abstractname}{\addtocounter{abstractname}{1}\ChangeName{Abstract}{XAbstract}}
97 % Make one example of each to check the name has been correctly changed.
103 The behaviour of names in this \LaTeX\ is quite different to those in
104 the original \LaTeX\ 2.09.
106 \chapter{First chapter}
108 \fbox{There was not a breve or a minim in sight.}
109 \caption{Incidence of notes in Picadilly Square}
112 \fbox{{\large F}{\it g}{\large I}{\it r}{\large G}{\it o}{\large
113 U}{\it n}{\large R}{\it d}{\large E}}
114 \caption{Switched around Bach}
117 \chapter{First appendix}
118 A reference to the bibliography (\cite{bitmap}).
120 \begin{thebibliography}{9}
121 \bibitem{bitmap} Steve Rimmer {\bf Bit-Mapped Graphics}, Windcrest/McGraw-Hill,
124 \end{thebibliography}
128 \subsubitem Vaseline\copyright\ 3
132 \typeout{Each counter should have a non-zero value to show that the name has been changed}
133 \typeout{Counter contentsname is \thecontentsname}
134 \typeout{Counter listfigurename is \thelistfigurename}
135 \typeout{Counter listtablename is \thelisttablename}
136 \typeout{Counter bibname is \thebibname}
137 \typeout{Counter indexname is \theindexname}
138 \typeout{Counter figurename is \thefigurename}
139 \typeout{Counter tablename is \thetablename}
140 \typeout{Counter chaptername is \thechaptername}
141 \typeout{Counter appendixname is \theappendixname}
142 \typeout{Counter partname is \thepartname}
143 \typeout{Counter abstractname is \theabstractname}
145 % everything after this will be ignored by the test system.
146 % This line may be omitted, and replaced by \end{document}
147 % If it is necessary to run the \end{document} command, say
148 % to get the .aux files correct.