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) entries:
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
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 % Article 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*}
67 % Redefine all the heading strings
70 \newcounter{contentsname}
71 \newcounter{listfigurename}
72 \newcounter{listtablename}
74 \newcounter{indexname}
75 \newcounter{figurename}
76 \newcounter{tablename}
77 \newcounter{chaptername}
78 \newcounter{appendixname}
81 \newcommand{\ChangeName}[2]{#2\typeout{#1 name changed to #2}}
82 \renewcommand{\contentsname}{\addtocounter{contentsname}{1}\ChangeName{Contents}{XContents}}
83 \renewcommand{\listfigurename}{\addtocounter{listfigurename}{1}\ChangeName{List of Figures}{XList of Figures}}
84 \renewcommand{\listtablename}{\addtocounter{listtablename}{1}\ChangeName{List of Tables}{XList of Tables}}
85 \renewcommand{\bibname}{\addtocounter{bibname}{1}\ChangeName{Bibliography}{XBibliography}}
86 \renewcommand{\indexname}{\addtocounter{indexname}{1}\ChangeName{Index}{XIndex}}
87 \renewcommand{\figurename}{\addtocounter{figurename}{1}\ChangeName{Figure}{XFigure}}
88 \renewcommand{\tablename}{\addtocounter{tablename}{1}\ChangeName{Table}{XTable}}
89 \renewcommand{\chaptername}{\addtocounter{chaptername}{1}\ChangeName{Chapter}{XChapter}}
90 \renewcommand{\appendixname}{\addtocounter{appendixname}{1}\ChangeName{Appendix}{XAppendix}}
91 \renewcommand{\partname}{\addtocounter{partname}{1}\ChangeName{Part}{XPart}}
94 % Make one example of each to check the name has been correctly changed.
99 \chapter{First chapter}
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 \chapter{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 bibname is \thebibname}
130 \typeout{Counter indexname is \theindexname}
131 \typeout{Counter figurename is \thefigurename}
132 \typeout{Counter tablename is \thetablename}
133 \typeout{Counter chaptername is \thechaptername}
134 \typeout{Counter appendixname is \theappendixname}
135 \typeout{Counter partname is \thepartname}
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.