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.)
23 \documentstyle{article}
26 % Input the test macros for LaTeX2e
29 % Everything before this is ignored by the test system.
34 % Declare the format used on the original run, as printed by
37 \FORMAT{LaTeX2e<1994/01/26>}
39 % Article document style for this test. We need to have a
40 % minimal font setup, for the last few tests, otherwise we
41 % could have done this with no documentstyle.
45 % no document style options for this test
49 % Optionally declare commands which are (or might be)
50 % defined in this `module' of LaTeX. Each command declared
51 % will be recorded in the .tlg file as Defined, Undefined,
52 % or Relaxed (ie \let to \relax, which LaTeX treats for most
53 % purposes as being undefined)
55 \declare@command\partname % {Part}
56 \declare@command\contentsname % {Contents}
57 \declare@command\listfigurename % {List of Figures}
58 \declare@command\listtablename % {List of Tables}
59 \declare@command\refname % {References}
60 \declare@command\indexname % {Index}
61 \declare@command\figurename % {Figure}
62 \declare@command\tablename % {Table}
63 \declare@command\abstractname % {Abstract}
65 % Redefine all the heading strings
67 \newcounter{contentsname}
68 \newcounter{listfigurename}
69 \newcounter{listtablename}
71 \newcounter{indexname}
72 \newcounter{figurename}
73 \newcounter{tablename}
74 \newcounter{chaptername}
76 \newcounter{abstractname}
77 \newcommand{\ChangeName}[2]{#2\typeout{#1 name changed to #2}}
78 \renewcommand{\contentsname}{\addtocounter{contentsname}{1}\ChangeName{Contents}{XContents}}
79 \renewcommand{\listfigurename}{\addtocounter{listfigurename}{1}\ChangeName{List of Figures}{XList of Figures}}
80 \renewcommand{\listtablename}{\addtocounter{listtablename}{1}\ChangeName{List of Tables}{XList of Tables}}
81 \renewcommand{\refname}{\addtocounter{refname}{1}\ChangeName{References}{XReferences}}
82 \renewcommand{\indexname}{\addtocounter{indexname}{1}\ChangeName{Index}{XIndex}}
83 \renewcommand{\figurename}{\addtocounter{figurename}{1}\ChangeName{Figure}{XFigure}}
84 \renewcommand{\tablename}{\addtocounter{tablename}{1}\ChangeName{Table}{XTable}}
85 \renewcommand{\partname}{\addtocounter{partname}{1}\ChangeName{Part}{XPart}}
86 \renewcommand{\abstractname}{\addtocounter{abstractname}{1}\ChangeName{Abstract}{XAbstract}}
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}
135 % everything after this will be ignored by the test system.
136 % This line may be omitted, and replaced by \end{document}
137 % If it is necessary to run the \end{document} command, say
138 % to get the .aux files correct.