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 documentstyles. (Found by Bernd Raichle. Corrected 12 Dec
26 \documentstyle{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{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{report <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*}
75 \declare@command\abstractname % {Abstract*}
77 % Redefine all the heading strings
79 \newcounter{contentsname}
80 \newcounter{listfigurename}
81 \newcounter{listtablename}
83 \newcounter{indexname}
84 \newcounter{figurename}
85 \newcounter{tablename}
86 \newcounter{chaptername}
87 \newcounter{appendixname}
89 \newcounter{abstractname}
90 \newcommand{\ChangeName}[2]{#2\typeout{#1 name changed to #2}}
91 \renewcommand{\contentsname}{\addtocounter{contentsname}{1}\ChangeName{Contents}{XContents}}
92 \renewcommand{\listfigurename}{\addtocounter{listfigurename}{1}\ChangeName{List of Figures}{XList of Figures}}
93 \renewcommand{\listtablename}{\addtocounter{listtablename}{1}\ChangeName{List of Tables}{XList of Tables}}
94 \renewcommand{\bibname}{\addtocounter{bibname}{1}\ChangeName{Bibliography}{XBibliography}}
95 \renewcommand{\indexname}{\addtocounter{indexname}{1}\ChangeName{Index}{XIndex}}
96 \renewcommand{\figurename}{\addtocounter{figurename}{1}\ChangeName{Figure}{XFigure}}
97 \renewcommand{\tablename}{\addtocounter{tablename}{1}\ChangeName{Table}{XTable}}
98 \renewcommand{\chaptername}{\addtocounter{chaptername}{1}\ChangeName{Chapter}{XChapter}}
99 \renewcommand{\appendixname}{\addtocounter{appendixname}{1}\ChangeName{Appendix}{XAppendix}}
100 \renewcommand{\partname}{\addtocounter{partname}{1}\ChangeName{Part}{XPart}}
101 \renewcommand{\abstractname}{\addtocounter{abstractname}{1}\ChangeName{Abstract}{XAbstract}}
104 % Make one example of each to check the name has been correctly changed.
110 The behaviour of names in this \LaTeX\ is quite different to those in
111 the original \LaTeX\ 2.09.
113 \chapter{First chapter}
115 \fbox{There was not a breve or a minim in sight.}
116 \caption{Incidence of notes in Picadilly Square}
119 \fbox{{\large F}{\it g}{\large I}{\it r}{\large G}{\it o}{\large
120 U}{\it n}{\large R}{\it d}{\large E}}
121 \caption{Switched around Bach}
124 \chapter{First appendix}
125 A reference to the bibliography (\cite{bitmap}).
127 \begin{thebibliography}{9}
128 \bibitem{bitmap} Steve Rimmer {\bf Bit-Mapped Graphics}, Windcrest/McGraw-Hill,
131 \end{thebibliography}
135 \subsubitem Vaseline\copyright\ 3
139 \typeout{Each counter should have a non-zero value to show that the name has been changed}
140 \typeout{Counter contentsname is \thecontentsname}
141 \typeout{Counter listfigurename is \thelistfigurename}
142 \typeout{Counter listtablename is \thelisttablename}
143 \typeout{Counter bibname is \thebibname}
144 \typeout{Counter indexname is \theindexname}
145 \typeout{Counter figurename is \thefigurename}
146 \typeout{Counter tablename is \thetablename}
147 \typeout{Counter chaptername is \thechaptername}
148 \typeout{Counter appendixname is \theappendixname}
149 \typeout{Counter partname is \thepartname}
150 \typeout{Counter abstractname is \theabstractname}
152 % everything after this will be ignored by the test system.
153 % This line may be omitted, and replaced by \end{document}
154 % If it is necessary to run the \end{document} command, say
155 % to get the .aux files correct.