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 % 109-161-162-163-164-165-168-170-174-176 from latex.bug
21 \ADDRESS{flipo@alea.citilille.fr}
23 \FORMAT{LaTeX2e<1993/12/24>}
27 \RequirePackage[2014/05/01]{latexrelease}
28 \documentstyle{article}
32 %176. \maketitle or other commands that internally invoke a list
33 %environment would not be detected before \begin{document}. (Corrected
34 %26 Aug 91.) NOTE: THIS CHANGE AFFECTS ALL STYLES AND STYLE OPTIONS
35 %THAT CHANGE THE \begin{document} COMMAND! IT IS NECESSARY TO ADD
38 \title{LaTeX Validation}
52 \nonstopmode\tracingonline1
55 %162. \paragraph{...} Plus... yields an error. (Reported by
56 %Victor Eijkhout. Corrected 14 Jan 91.)
59 \typeout{*** Bug 162 ***}
65 \paragraph{Test} Plus 1 inch
67 %163. When a double-column figure or table that is too large to fit on
68 %a page is encountered when producing two-column output, that figure and
69 %all subsequent ones are never printed. (Reported 13 Mar 91 by David
70 %Long. Corrected 15 Mar 91.)
73 \typeout{*** Bug 163 ***}
79 This is a wide figure labelled~\ref{Fig1}
81 \begin{figure}[hp]\label{Fig1}
83 \framebox[3in]{\rule{0pt}{0.5in}}
85 \caption{First wide figure}
88 Will it be printed? The following one is narrow
90 \begin{figure}[hp]\label{Fig2}
92 \framebox[1in]{\rule{0pt}{0.5in}}
94 \caption{Narrow figure}
97 and should be printed here. Another wide one:
99 \begin{figure}[hp]\label{Fig3}
101 \framebox[3in]{\rule{0pt}{0.5in}}
103 \caption{Second wide figure}
106 That's all for this column.
110 Second column, with another narrow figure
112 \begin{figure}[hp]\label{Fig4}
114 \framebox[1in]{\rule{0pt}{0.5in}}
116 \caption{Second narrow figure}
121 %163(bis). Removed some extra spaces in some macro definitions, and changed
122 %some occurences of pt to \p@, 0 to \z@, etc. (Changes made 21 Jun 91.)
124 %109. The \index command was changed to make \protect work in its
125 %argument, in case the \index command is used inside the argument of
126 %another command, such as \footnote. (Change made 3 Feb 87)
127 %164. Bug no. 109 was also present for \glossary. (Corrected 21 Jun 91.)
130 \typeout{*** Bug 109-164 ***}
138 Let gnu\index{gnu\protect\(^* \protect\)} appear in the index%
139 \footnote{Why not call\protect\index{call}
140 {\tt\char"5C{}index} and {\tt\char"5C{}glossary}
141 inside\protect\glossary{inside}
143 and gnat\glossary{gnat\protect\(\^{**} \protect\)} appear in the glossary.
145 \vspace{16cm}% for bug 165
147 %165. A marginal note that happened to appear on the last line of a page
148 %with footnotes could mess up the vertical spacing. (Corrected 21 Jun 91.)
151 \typeout{*** Bug 165 ***}
156 Make a marginal note\marginpar{This is a marginal note,
157 this is a marginal note, this is a marginal note, this is a marginal note,}
158 at the end of a page.
161 %166. Emptied \box0 at the end of lplain.tex to save memory. (Change made
164 %168. \@warning changed to print the input line number when using TeX
165 %3.x. Old version kept as \@@warning. (Change made 24 Jun 91.)
168 \typeout{*** Bug 168 ***}
173 Reference~\ref{XYZ} (never defined) should produce a warning mentionning
174 the line number it appears in.
176 %169. Corrected bug inherited from plain.tex: missing \relax in \multispan
177 %macro. (Corrected 1 Jul 91.)
179 %170. A \samepage declaration would not prevent a verbatim environment
180 %from being broken across pages. (Corrected 27 Jul 91.)
183 \typeout{*** Bug 170 ***}
188 \vspace{11.5cm}% on the previous page with 11cm
192 %A \samepage declaration would not prevent a verbatim environment
193 %from being broken across pages. (Corrected 27 Jul 91.)
195 %A \samepage declaration would not prevent a verbatim environment
196 %from being broken across pages. (Corrected 27 Jul 91.)
198 %A \samepage declaration would not prevent a verbatim environment
199 %from being broken across pages. (Corrected 27 Jul 91.)
201 %A \samepage declaration would not prevent a verbatim environment
202 %from being broken across pages. (Corrected 27 Jul 91.)
205 %171. Several changes to make LaTeX work with the New Font Selection
206 %Scheme without the need to redefine internal macros. (Changes made
209 %172. Extra boxing in picture environment introduced to guard against
210 %unboxing in math mode. (Reported by John Hobby. Corrected 26 Aug 91.)
212 %173. To allow full paragraphs in the \whiledo construct of the ifthen
213 %style option, the \@whilesw construct in latex.tex was made \long.
214 %(Reported by Konrad Blum. Change made 26 Aug 91.)
216 %174. Extra blank space between the second and third mandatory argument
217 %of \newenvironment and \renewenvironment would lead to an
218 %unintelligible error message. (Long known. Change made 26 Aug 91.)
221 \typeout{*** Bug 174 ***}
226 \newenvironment{emphit} {\begin{itemize}\em} {\end{itemize}}
233 %175. A verbatim environment in a list could produce a double indent.
234 %(Reported by Chris Rowley. Corrected 26 Aug 91.)
237 \typeout{*** Bug 175 ***}
243 \item One: A verbatim environment in a list could produce a double
244 indent. (Reported by Chris Rowley. Corrected 26 Aug 91.)
247 A verbatim environment in a list could produce a double
248 indent. (Reported by Chris Rowley. Corrected 26 Aug 91.)
253 %161. A \label at the very end of a document may not be processed.
254 %(Reported by Mike Piff but not checked, 12 Nov 90)
257 \typeout{*** Bug 161 ***}