2 % Master File: tlatex6.tex
3 % \iffalse meta-comment
5 % Copyright (C) 1992 by David Carlisle, Frank Mittelbach.
8 % This file is part of the validate package.
12 % You are not allowed to change this file. In case of error
13 % write to the email address mentioned in the file readme.val.
17 % Test file for latex.tex containing checks for the bug fixes
18 % 71-72-74-78-81-82-85-86-87-88-90-91-93-98-101-103-105-107-108-110-112
24 \ADDRESS{flipo@alea.citilille.fr}
26 \FORMAT{LaTeX2e<1993/12/24>}
33 \newcommand{\bugid}[1]{\typeout{}
34 \typeout{*** Bug #1 ***}
35 \typeout{}*** #1 ***\par}
40 \nonstopmode\tracingonline1
44 %71. A sectioning command (like \paragraph) that produces an in-line
45 %heading (not on a separate line) doesn't work properly when it is
46 %immediately followed by a list or trivlist environment, or one that
47 %uses those environments (like verbatim or quote). (Corrected in Version
53 \chapter{First chapter}
57 \section{First section}
59 \paragraph{First paragragh}%
61 \item What's wrong with paragraphs and lists?
62 \item apparently nothing!
65 %74. \longrightarrow and \longleftarrow need \protect'ing in a moving
66 %argument. (Corrected 4 September 85)
71 \section{Do $\longrightarrow$ and $\longleftarrow$ or $\longleftrightarrow$
75 %75. In certain instances, the not enough vertical space appears
76 %above a list environment. (Corrected 4 September 85)
78 %76. The \textfraction parameter was being ignored, and a random
79 %value used. (Corrected 27 September 85)
81 %77. The \item command was changed to allow a line break between
82 %the label and the following text. This makes it easier to define
83 %a list environment in which the item occurs on a line by itself.
84 %(Change made 3 October 85).
86 %78. No warning was generated by the eqnarray and eqnarray* environments
87 %when a formula extended into the margin. (Corrected 4 November 85.
88 %However, warning is not generated if formula extends only into the
96 % warning is NOT generated if formula extends only into the
99 U_n &= &a_0 b_n + a_1 b_{n-1} + \cdots + a_{n-1} b_1 + a_n b_0
100 + c_0 d_n + \cdots + c_0 d_n + V_{n-1} \\
101 V_n &= &a_0 c_n + a_1 c_{n-1} + \cdots + a_{n-1} c_1 + a_n c_0
104 % warning IS generated!
106 U_n &= &a_0 b_n + a_1 b_{n-1} + \cdots + a_{n-1} b_1 + a_n b_0
107 + c_0 d_n + \cdots + c_0 d_n + \int_0^\infty \frac{R_n(t)}{1+t^2}\, dt \\
108 V_n &= &a_0 c_n + a_1 c_{n-1} + \cdots + a_{n-1} c_1 + a_n c_0
112 %72. Full page figures or tables that immediately follow the first
113 %page of a chapter appear on pages with no page headings. More
114 %generally, full page floats that immediately follow a page
115 %with a \thispagestyle{foo} command are formatted according to
116 %page style foo. (Corrected in Version 2.09.)
122 \framebox[100mm]{\rule{0mm}{150mm}}
123 \caption{*** Bug 72 ***}
126 \clearpage %%%% whithout this clearpage the figure is moved to page 3, why?
128 %81. Space produced by \hspace* can be gobbled inside an array or
129 %tabular environment. (Observed by Sam Whidden.) (Corrected 17 December 85)
134 \begin{tabular}{|lcr|} \hline
135 Currency &Amount &Value in \$ \\ \hline
136 Pounds &10 &18\\ \hline
138 Total &\hspace*{6cm} &20\\ \hline
141 %82. \skewchar commands were omitted for the math italic and and math
142 %symbol fonts, causing improper placement of math accents. (Observed
143 %by Howard Trickey) (Corrected 17 December 85)
148 Math accents: $\widehat{xyz} \neq \widetilde{abc}$
149 $$\ddot x + \dot x + \bar a x^3 = \tilde f(t)$$
151 %83. The preloaded typewriter fonts have had \hyphenchar redefined to
152 %-1 to prevent hyphenation with these fonts. (Change made 17 December 85)
154 %84. In rare circumstances, a bug in \@dottedtocline resulted in a page
155 %number appearing at the left of the line following the section
156 %heading in a table of contents entry. (Corrected 7 January 86)
158 %85. As a result of change 83, the \- command doesn't work properly
159 %with the typewriter fonts. (Reported by John DeTreville.
160 %Corrected 19 April 86.)
165 \newlength{\hyphenbox}
166 \settowidth{\hyphenbox}{\tt gnomon-}
167 \parbox{\hyphenbox}{\tt gnomon\-ly\dots}
169 %86. In verbatim mode, the sequences ?` and !` produce ligatures
170 %instead of the correct characters. (Found by Gerard Huet.
171 %Corrected 19 April 86.)
177 ?`What about the spanish signs? !`Correct indeed!
180 %87. The \vector and \line commands (through the \@svector and \@sline
181 %macros) only check if the vertical component of the slope exceeds the
182 %limit (4 or 6) for the command; the horizontal component is not
183 %checked. Thus, \vector(2,5){5} gives an error message while
184 %\vector(5,2){5} produces incorrect results without any message. Some
185 %arguments will reference a non-existent character in the line font.
186 %(Found by Joseph I. Pallas. Corrected 19 April 86.)
193 \begin{picture}(100,50)
194 \setlength{\unitlength}{1mm}
195 \put(0,15){\vector(2,-5){5}}
196 \put(10,15){\vector(5,-2){5}}
197 \put(20,10){\line(7,-1){5}}
200 %%%% Have a look at what happens in the following example:
201 %\begin{picture}(100,50)
202 %\setlength{\unitlength}{1mm}
203 %\put(20,10){\line(3,7){5}}
205 % Here is the corresponding log-file:
206 %! Bad \line or \vector argument. %%%% quite normal
207 %\@latexerr ...for immediate help.}\errmessage {#1}
209 %l.201 \put(20,10){\line(3,7){5}}
211 %Missing character: There is no ^^V in font line10! %%%% OK, this is
212 %%%% mentionned in the bug report, BUT:
213 %! TeX capacity exceeded, sorry [main memory size=262141]. %%%% <==== ???
214 %<argument> ...\@upordown \@clnht \copy \@linechar
215 % \@tempa \advance \@clnht \..
216 %l.201 \put(20,10){\line(3,7){5}}
218 %88. \newenvironment doesn't work if there's a \par command in
219 %an argument. (Corrected 19 April 86.)
224 \newenvironment{descit}[1]%
226 {\em #1:\par}}{\end{quote}}
228 \begin{descit}{{\bf Important}\par Armadillos}
229 This is a witty description of the armadillo.
232 %89. An obscure bug in \settowidth caused by a missing \relax.
233 %(Discovered by Oren Patashnik, corrected 24 March 86.)
235 %90. A \markright or \markboth immediately after a sectioning command
236 %could allow a page break right after the section heading.
237 %(Discovered by Oren Patashnik, corrected 15 April 86.)
240 %%%% With \vspace{42mm} the section title is moved to next page
245 \pagestyle{myheadings}
246 \section{Third section}
247 \markboth{{\bf section\ \thesection}\hfil MY HEADINGS}{{\bf Section\ \thesection}\hfil MY HEADINGS}
249 Let's see if a page break occurs just before this line.
251 %91. The \arabic command (actually \@arabic) was changed so it
252 %will print nonpositive numbers. (Suggested by Charles Kearney.
253 %Change made 29 April 86.)
259 \setcounter{mycount}{-2}
263 %92. An implementation error causes LaTeX to run out of room on very
264 %long tabbing environments. (Discovered by Kent McPherson. Corrected
267 %94. Unnecessary overfull boxes caused by descenders on last line of
268 %page. Fixed by modifying the output routine \@makecol. A temporary
269 %dimen is used to hold the depth of the output box, then it is unboxed,
270 %then we vskip minus the depth. (2 Sep 86)
272 %95. Grouping was taken out of \@latexerr. (Suggested by John Hobby.)
275 %96. \makethmlabel was deleted. Never used anyway.
276 %(Found by Mark Kent, 2 Sep 86).
278 %97. \footheight may soon be deleted. Never used. Taken out of style
279 %files too. (Found by Mark Kent, 2 Sep 86).
281 %98. When a section heading does not indent the following paragraph, a
282 %\noindent caused a negative indentation--i.e., an outdent. (Change,
283 %suggested by suggestion by Mario Wolczko, made 2 Sep 86)
288 \section {Fourth section}
290 \noindent Is th beginning of this section indented correctly?
292 %100. In rare instances, a figure can appear on the page preceding
293 %its environment, and a marginal note may appear on the wrong side.
294 %(Found by Oren Patashnik)
296 %101. The \verb command produces an error if it appears in math
297 %mode with a `_' in its argument. (This is a bug in PLAIN.TEX
298 %corrected in LPLAIN.TEX on 13 Oct 86 and SPLAIN.TEX on 28 Oct 86.)
303 $$\mbox{The command\ }\verb|x_n|\mbox{\ should produce:\ } x_n$$
305 %103. The mechanism to suppress the paragraph indentation of text
306 %immediately following a paragarph-making environment does not work if
307 %that environment is enclosed in braces or another environment. In
308 %particular, it wouldn't work for environments like the ones defined
309 %in the examples on page 57 of the manual--e.g., when called
310 %by the `emphit' environment, the `itemize' environment is
311 %inside another environment. (Corrected 27 Oct 86)
316 %%%% BUG NOT CORRECTED in case of braces (without braces: no indentation)
318 This a dummy quotation.
320 Is the indentation suppressed? Unfortunately it is NOT!
322 \newenvironment{emphit}{\begin{itemize}\em}{\end{itemize}}
325 \item This environment produces emphasized items.
326 \item It is defined in terms of \LaTeX{}'s {\tt itemize} environment.
328 Is the indentation suppressed? YES it is!
330 %93. In rare instances, a footnote is placed on the page following the
331 %one in belongs on. This happens only when a figure or table
332 %environment appears in the text immediately after the place where the
333 %page that should contain the footnote ends. Until this is fixed, the
334 %problem can be made to go away by moving the figure or table
335 %environment a little further back or forward in the text.
338 %%%% With \vspace{78mm} the footnote and the calling line are moved to the
343 Let's try a footnote\footnote{Will this footnote be moved to the next page?}
344 on a page's last line with a figure just after it.
346 \framebox[100mm]{\rule{0mm}{50mm}}
347 \caption{*** Bug 93 ***}
350 %106. An apparent typo put two copies of \@texttop at the top of a page
351 %instead of just one. This did not seem to affect any of the standard
352 %styles, but would have created problems in special styles that used
353 %\@texttop. (Reported by Michael Harrison, corrected 1 Dec 86.)
355 %107. An array environment in the third argument to a \multicolumn
356 %command did not work. (Reported by Ferdinand Hommes, corrected 6 Dec 86.)
364 column 1 &column 2 & column 3\\
365 array: &\multicolumn{2}{c}{%
373 %110. A \label or \index command in a section heading caused a bug
374 %if that heading was used as a page heading. (Discovered by
375 %Tim Hopkins. Corrected 22 Feb 87)
377 %112. \{ and \} are fragile commands, contrary to the manual.
378 %(Discovered by Piet van Oostrum <mcvax!ruuinfvax!piet@seismo.CSS.GOV>.
379 %Corrected 21 Apr 87.)
385 \section{Are `\{' and `\}' fragile?\label{last:section}}
387 Is the use of a \verb|\label| command safe in a section title?
389 %108. A long descender (such as is normally produced only by math
390 %formulas) on the bottom line of a page could extend lower than
391 %it should. (Corrected 21 Jan 86)
394 %%%% With \vspace{26mm} the fraction is moved to next page
399 $$x=x_0 + {1 \over\displaystyle x_1 + {\strut 1 \over\displaystyle x_2 +
400 {\strut 1 \over\displaystyle x_3}}}$$
402 %111. Setting \topskip to 0pt does weird things. I haven't figured out
403 %why, but there's no reason to set \topskip to 0pt, so this is not
404 %considered a bug. (Discovered by Mabry Tyson.)
407 % One more test to check the headings
409 %%%% Why has page 6 a header made according to MYHEADINGS?
410 %Previous page set the header back to HEADINGS!
412 %105. A line break can occur at a space in a `verbatim' environment.
413 %(Reported by Nelson Beebe, corrected 19 Nov 86.)
416 %\settowidth{\hyphenbox}{\tt Can a line break occur at a space}
418 %\parbox{\hyphenbox}{%
419 %\verb|Can a line break occur at a space in a `verbatim' environment? In a|
420 %\verb|\parbox don't think the bug is corrected!|%
422 % \verb is not supposed to work in the argument of any other command,
423 % so this is not a good test, let's rather switch to twocolumn.
429 \verb|Can a line break occur at a space|
431 \verb| in a `verbatim' environment?|
433 {\tt Can a line break occur at a s p a c e in a `verbatim' environment?}