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 documentstyles. (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{LaTeX Version 2.09 <18 March 1992>}
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 documentstyle.
46 \STYLE{book <14 Jan 92>}
48 % no document style options for this test
52 % We are using a format based on basefont.tex possible values
53 % here are: original oldlfont newlfont basefont
55 \FONTSELECTION{basefont}
57 % Optionally declare commands which are (or might be)
58 % defined in this `module' of LaTeX. Each command declared
59 % will be recorded in the .tlg file as Defined, Undefined,
60 % or Relaxed (ie \let to \relax, which LaTeX treats for most
61 % purposes as being undefined)
62 %% * after names means that the message "X name changed" appears in the
63 %% log file for that entry (just checking)
65 \declare@command\partname % {Part*}
66 \declare@command\contentsname % {Contents*}
67 \declare@command\listfigurename % {List of Figures*}
68 \declare@command\listtablename % {List of Tables*}
69 \declare@command\bibname % {Bibliography*}
70 \declare@command\indexname % {Index*}
71 \declare@command\figurename % {Figure*}
72 \declare@command\tablename % {Table*}
73 \declare@command\chaptername % {Chapter*}
74 \declare@command\appendixname % {Appendix*}
76 % Redefine all the heading strings
78 \newcounter{contentsname}
79 \newcounter{listfigurename}
80 \newcounter{listtablename}
82 \newcounter{indexname}
83 \newcounter{figurename}
84 \newcounter{tablename}
85 \newcounter{chaptername}
86 \newcounter{appendixname}
88 \newcommand{\ChangeName}[2]{#2\typeout{#1 name changed to #2}}
89 \renewcommand{\contentsname}{\addtocounter{contentsname}{1}\ChangeName{Contents}{XContents}}
90 \renewcommand{\listfigurename}{\addtocounter{listfigurename}{1}\ChangeName{List of Figures}{XList of Figures}}
91 \renewcommand{\listtablename}{\addtocounter{listtablename}{1}\ChangeName{List of Tables}{XList of Tables}}
92 \renewcommand{\bibname}{\addtocounter{bibname}{1}\ChangeName{Bibliography}{XBibliography}}
93 \renewcommand{\indexname}{\addtocounter{indexname}{1}\ChangeName{Index}{XIndex}}
94 \renewcommand{\figurename}{\addtocounter{figurename}{1}\ChangeName{Figure}{XFigure}}
95 \renewcommand{\tablename}{\addtocounter{tablename}{1}\ChangeName{Table}{XTable}}
96 \renewcommand{\chaptername}{\addtocounter{chaptername}{1}\ChangeName{Chapter}{XChapter}}
97 \renewcommand{\appendixname}{\addtocounter{appendixname}{1}\ChangeName{Appendix}{XAppendix}}
98 \renewcommand{\partname}{\addtocounter{partname}{1}\ChangeName{Part}{XPart}}
101 % Make one example of each to check the name has been correctly changed.
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}
144 % everything after this will be ignored by the test system.
145 % This line may be omitted, and replaced by \end{document}
146 % If it is necessary to run the \end{document} command, say
147 % to get the .aux files correct.