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 latex.tex containing checks for the bug fixes
16 % 138-158-184-190-191-195-197-198-205-206-208-209-217 from latex.bug
21 \ADDRESS{flipo@alea.citilille.fr}
23 \FORMAT{LaTeX Version 2.09- March 25, 1992}
28 \documentclass{article}
30 %\pagestyle{myheadings}% for bug 218
33 \nonstopmode\tracingonline1
36 %180. Fixed a number of smaller problems, including addition of
37 %\endinput at the end of the files. (Changes made 17 Oct 91.)
39 %182. Corrected bug in the \@tfor macro where an \xdef was used instead
40 %of a \def. (Change made 17 Oct 91.)
42 %183. A small internal optimization in \@makecol in the output routine:
43 %replaced \dimen128 by \dimen@. (Change made 22 Oct 91.)
45 %184. Added \reset@font in \ref, \pageref, and \@citex. (Suggested by
46 %Bernd Raichle. Change made 25 Oct 91.)
49 \typeout{*** Bug 184 ***}
54 %\label{XYZ} was never defined, the ?? should be in \rm.
55 \setbox0\hbox{\tt See equation~\ref{XYZ}}
57 %{\tracingall\nonstopmode\showbox0}
58 {\showboxdepth3\showboxbreadth999\showbox0}
62 %188. Corrected typo in latex.tex. (Found by Joachim Schrod. Corrected
65 %189. Removed \catcode and \mathcode definitions for non-printing ASCII
66 %characters, as nobody seems to use them. (Change made 30 Oct 91.)
68 %191. Added default definition of \makelabel, so that an \item command
69 %outside a list environment gives a sensible error message instead of
70 %messing up the whole job. (Change made 4 Nov 91.)
73 \typeout{*** Bug 191 ***}
78 \item \verb|\item| command outside a list
80 %192. Introduced file lhyphen.tex. (Change made 4 Nov 91.)
82 %193. Added a lot of missing \m@th (mathsurround=0pt) assignments.
83 %(Changes made 4 Nov 91.)
85 %194. Added warning message when height of single column float exceeds
86 %\textheight. (Change made 6 Nov 91.)
88 %195. \cite will now ignore leading blanks in a citation key. (Change
92 \typeout{*** Bug 195 ***}
97 \setbox0\vbox{See~\cite{kn:gnu} or see~\cite{ kn:gnu} for the hairy details}%
99 %{\tracingall\nonstopmode\showbox0}
100 {\showboxdepth3\showboxbreadth25\showbox0}
104 %196. Added code to make it work with MLTeX version 2. (Suggested by
105 %Bernard Gaulle. Change made 7 Nov 91.)
107 %197. Use of the enumerate environment in the thebibliography
108 %environment messes up the latter's item numbering. Corrected by
109 %changing the counter from enumi to enumiv as it was already
110 %documented. (Reported by Nelson Beebe. Corrected 13 Nov 91.)
113 \typeout{*** Bug 197 ***}
119 \begin{thebibliography}{99}
120 \bibitem{kn:gnu} D.~E.~Knudson.
121 {\em 1966 World Gnus Almanac.}
122 \bibitem{kn:tex} D.~E.~Knuth.
123 {\em The \TeX{}book}.
124 Addison-Wesley, 1984.
126 \item Computers and typesetting,
127 \item \TeX{} The program,
130 \bibitem{la:lat} Leslie Lamport.
131 {\em {\LaTeX \rm:} {A} Document Preparation System}.
132 Addison-Wesley, 1986.
133 \end{thebibliography}}%
135 %{\tracingall\nonstopmode\showbox0}
136 {\showboxdepth5\showboxbreadth999\showbox0}
140 %190. Fragile commands in the definition of \thefootnote led to an
141 %error, even with the use of \protect. (Found by Chris Hamlin.
142 %Corrected 1 Nov 91.)
143 %198. Fix 190 did not go far enough. (Found by Chris Rowley. Corrected
147 \typeout{*** Bugs 190-198 ***}
152 {*** Bugs 190-198 ***
154 Let's make a footnote\footnote{This footnote includes fragile commands:\\
156 \item[\protect\( * \protect\)] First,
157 \item[\protect\( ** \protect\)] second,
158 \item[\protect\( *** \protect\)] third.
164 \newpage}\nonstopmode
166 %199. Changed definition of \item to call \makelabel only once instead
167 %of twice. This solves a number of problems with side effects in
168 %\makelabel, and is even more efficient. (Change made 22 Nov 91.)
170 %200. Corrected an obscure bug in the output routine that could cause a
171 %division by zero when \twocolumn[] was used. (Suggested by Chris
172 %Rowley. Corrected 22 Nov 91.)
174 %201. Added a few forgotten \relax in front of conditionals in
175 %lfonts.tex and sfonts.tex. (Suggested by Bernd Raichle. Change made 25
178 %202. Some minor changes for efficiency. (Suggested by Bernd Raichle.
179 %Changes made 27 Nov 91.)
181 %203. Version frozen. (1 Dec 91.)
183 %204. Fix 197 led to incompatibilities with styles derived from
184 %article, like amsart. (Changed 10 Jan 92 as suggested by Bernd
187 %205. Use of a nonexisting theorem environment in the first optional
188 %argument to \newtheorem led to an incomprehensible error message.
189 %(Reported by Luzia Dietsche. Fixed 10 Jan 92.)
192 \typeout{*** Bug 205 ***}
197 \newtheorem{Theo}[toto]{Theorem}
199 %\setbox0\vbox{\begin{Theo}
200 %If $0=1$ then $2=3$.
203 %{\showboxdepth5\showboxbreadth999\showbox0}
207 %206. As a consequence of change 66 in the styles (see below) labels in
208 %the bibliography environment would now come out left aligned.
209 %(Reported by Andy Fyfe. Corrected 14 Jan 92.)
212 \typeout{*** Bug 206 ***, see above bug 197}
215 *** Bug 206 ***, see above bug 197
217 %208. Fix no. 206 caused bibliography labels in the alpha bibliography
218 %style to come out right aligned. (Reported by Andy Fyfe. Corrected 26
222 \typeout{*** Bug 208 ***}
227 \nocite{latex,texbook}
229 \bibliographystyle{alpha}
231 \setbox0\vbox{\bibliography{btxdoc}}%
233 %{\tracingall\nonstopmode\showbox0}
234 {\showboxdepth3\showboxbreadth999\showbox0}
238 %209. When used in math mode, \verb doesn't print all characters in \tt
239 %font. Some characters such as "&" are printed in \rm font and some
240 %such as "\" are in the symbol font.
242 % Not corrected yet!!!
245 \typeout{*** Bug 209 ***}
250 \setbox0\hbox{$aaa\quad \verb|aaa&bbb, \ &|\quad bbb$}%
252 %{\tracingall\nonstopmode\showbox0}
253 {\showboxdepth3\showboxbreadth999\showbox0}
257 %211. Changed lplain.tex and splain.tex to match the changes introduced
258 %by plain.tex version 3.14 on March 16. (Changes made 17 Mar 92.)
260 %212. Changed Metafont warning messages to error messages when cmbase
261 %is used to generate the line and circle fonts. (Suggested by Chris
262 %Thompson. Changed 18 Mar 92.)
264 %214. Allocate input stream for \typein and for \@input with \newread
265 %to avoid conflicts with other allocated streams. (Suggested by Michael
266 %Downes and Bernd Raichle. Change made 18 Mar 92.)
268 %138. A command like \index or \label could incorrectly suppress a
269 %space after the next \end command. (Reported by Johannes Braams.
270 %Partially fixed on 30 Nov 88. Problem can still occur if \index or
271 %\label command comes inside the \end's environment.)
272 %158. The fix mentioned in 138 was added to the comments, but not to
273 %the code. (Reported by Piet van Oostrum in TeXhax V90 #42,
274 %corrected 2 May 90.)
275 %217. The fix mentioned in 138 and 158 was done wrong in the code. Also
276 %the problem was now corrected completely by introducing a new control
277 %sequence. (Suggested by Piet van Oostrum. Corrected 18 Mar 92.)
280 \typeout{*** Bugs 138-158-217 ***}
283 *** Bug 138-158-217 ***
286 This is a tabular environment\label{tab1}\\
288 aaa &bbb &ccc\label{tab2}\\
289 \end{tabular} followed by a space.
290 Compare with the same\\
292 aaa &bbb &ccc\label{tab3}\\
293 \end{tabular}NOT followed by a space.}
295 %{\tracingall\nonstopmode\showbox0}
296 {\showboxdepth3\showboxbreadth999\showbox0}