2 % Master File: tlatex5.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 % 73-99-102-115-116-126-128-131-132-133-135-156 from latex.bug
23 \ADDRESS{flipo@alea.citilille.fr}
25 \FORMAT{LaTeX2e<1993/12/24>}
32 \newcommand{\bugid}[1]{\typeout{}
33 \typeout{*** Bug #1 ***}
34 \typeout{}*** #1 ***\par}
36 \documentclass{article}
42 \nonstopmode\tracingonline1
46 %115. A figure or table environment appearing between paragraphs (in
47 %vertical mode) can produce extra vertical space in the document between
48 %those paragraphs. (Discovered by Arthur Ogawa. Corrected 26 May 87.)
50 %116. An obscure bug in the \caption command can cause it to leave
51 %extra vertical space above the caption if the command is not
52 %preceded by a blank line. This extra space does not appear
53 %when a \nofiles command is used. (Discovered by Peter Schilling.
54 %Corrected 12 Jun 87.)
56 %%%% Are the vertical spaces correct?
59 \noindent\rule{100mm}{1mm}
62 \framebox[100mm]{\rule{0mm}{10mm}}
66 \noindent\rule{100mm}{1mm}
68 %126. The leaders were not properly aligned in multiple-line
69 %table-of-contents entries. (Discovered by Gunther Hartmann, corrected
75 \section{First section}
77 \subsection{First subsection: its title is very long to produce a
78 multiple-line entry in the table of contents}
80 \subsubsection{First subsubsection: its title is very long to produce
81 another multiple-line entry in the table of contents}
83 See the table of contents on page~3.
85 %73. Multiple paragraph marginpar's don't work. (Corrected
88 %128. A marginal note is misplaced if there is a footnote preceding
89 %it on the same page. (Found by Chris Rowley. Corrected 26 Feb 88.)
95 This a footnote\footnote{First footnote} preceeding a marginpar.
97 And another one in the very paragraph where the
98 marginpar\footnote{Second footnote} is used,%
99 \marginpar{This is a multiple paragraph margin note.\par
100 Here is the second paragraph: A marginal note might be misplaced
101 if there is a footnote preceding it on the same page.
103 Last (dummy) paragraph of the margin note}
104 will any of them break marginpar?
106 %99. A page break can occur where a figure or table environment or a
107 %\marginpar command appear, even in the scope of a \samepage declaration.
108 %(Found by Oren Patashnik. Corrected 23 Oct 86)
110 %%%% It is NOT completly corrected is it?
115 This is still printed on the first page, the figure is on the second one.
118 \framebox[100mm]{\rule{0mm}{10mm}}
119 \caption{Another framebox}
122 This sentence should be printed on the first page.
125 %102. If no blank line follows a paragraph-making environment, then the
126 %following text is not indented. However, a \noindent command produced
127 %an outdent. (Correction, similar to #99, made on 23 Oct 86)
133 \noindent Check the indentation. Correct: not indented!
135 %131. If, for a counter foo, \thefoo is defined to contain mention of a
136 %non-preloaded font, then a \label{bar} command that involves counter
137 %foo will write some garbage on the .aux file causing an error on a
138 %\ref{foo} command. (Reported by Peter K. Schilling. Corrected 20 Jul 88.)
142 % Use a non preloaded font (preload.min is in use!)
143 \renewcommand{\theequation}{{\sf\Alph{equation}}}
144 %%%% Something strange: \ref causes a "missing control sequence" only when
145 %%%%this new definition of \theequation is in use...
149 \begin{equation} e^{i\pi} = -1 \label{euler} \end{equation}
150 Equation~(\ref{euler}) is called Euler equation.%
152 %133. If the output routine is called while in a tabbing environment,
153 %strange things can happen because \-, \', etc. have unusual
154 %definitions. (Reported by Detlev Droege and Friedrich Haubensak.
155 %Corrected 4 Aug 88.)
157 %134. Redefining something like \thefigure to include a size-changing
158 %command like \small causes an error when a \ref referes to a label that
159 %labels a figure environment. This problem can be solved by using
160 %\protect\noexpand\protect\small instead of \small. I'm not sure
161 %if this is a bug, and I doubt if I'll fix it. (Reported by Peter
164 %135. The \pagebreak and \nopagebreak commands have no effect
165 %inside a tabbing or eqnarray environment. (Reported by Mik Bickis.)
174 If \= it's raining \\
175 \> then \= put on boots \\
176 \> \> take hat; \\ \nopagebreak
181 The \verb|\pagebreak| (and \verb|\nopagebreak|) commands DO HAVE NO EFFECT
182 inside a tabbing or eqnarray environment. (Reported by Mik Bickis.)
184 %156. A \label command in math mode that follows a space command
185 %like \, causes an error. (Discovered by Charles Karney, corrected
192 % List of figures and table of contents
198 %132. If a \contentsline or \addtocontents command immediately precedes
199 %an \include, then the table of contents line it produces may appear
200 %later than the contents lines added by the included file. There does
201 %not appear to be an easy fix for this.
202 %(First reported by Rainer Schoepf and Frank Mittelbach)
204 %%%% I have not been able to reproduce this bug (described as not fixed)
206 %\bugid{132} %moved to file addcontents.tex
208 \addtocontents{toc}{{\bf This line shoud appear BEFORE the ``included''
210 %\addcontentsline{toc}{subsubsection}{To appear BEFORE the ``included''
212 \include{addcontents} % \include allways starts a newpage.