2 % Master File: tlatex4.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 % 117-118-124-125-127-136-156-157-159-160 from latex.bug
23 \ADDRESS{flipo@alea.citilille.fr}
25 \FORMAT{LaTeX2e<1993/12/24>}
31 \newcommand{\bugid}[1]{\typeout{}
32 \typeout{*** Bug #1 ***}
35 \documentstyle{article}
41 \nonstopmode\tracingonline1
44 %117. A \put or \multiput with an argument beginning "plus" or "minus"
45 %causes an error. (Discovered by Don Knuth. Corrected 20 Jul 87.)
50 \setlength{\unitlength}{1mm}
51 \begin{picture}(100,30)
53 \multiput(10,10)(6,6){3}{minus 2cm}
57 {\showboxdepth5\showboxbreadth999\showbox\test}
61 %118. \dotfill and \hrulefill don't work right in `tabular' and
62 %`array' environments. (Discovered by Rainer Schoepf. Corrected
63 %[in LPLAIN.TEX] 24 Jul 87.)
68 \begin{tabular}{|lcr|} \hline
69 Currency &Amount &Value in \$ \\ \hline
70 Pounds &10\dotfill &18\\ \hline
71 DM &3\dotfill &2\\ \hline
72 Total &\hrulefill &20\\ \hline
75 $\begin{array}{|ccc|} \hline
76 Degrees &Grad &Radians \\ \hline
77 90 &100 &\frac{\pi}{2} \\ \hline
78 \hrulefill?\hrulefill &84 &\dotfill??\dotfill\\ \hline
82 {\showboxdepth7\showboxbreadth999\showbox\test}
86 %120. The default \cite command was changed to put a space between
87 %multiple citations--for example, to produce `[1, 5, 17]' instead
88 %of `[1,5,17]'. (Suggested by John Ellis. Changed 21 Nov 87.)
90 %121. The \newcommand and \renewcommand commands left the LaTeX
91 %internal control sequence \@tempb \let to `#'. While not causing
92 %any problem in LaTeX, it caused bugs in other people's document
93 %styles. Fixed by replacing \@tempb in those commands with
94 %something more untypeable. (Change made 23 Nov 87.)
96 %122. Figures were typeset with \boxmaxdepth = 0pt, which could screw
97 %up some macros--in particular, plain TeX's \overrightarrow.
98 %(Bug found by Thomas H. Cormen. Corrected 15 Dec 87.)
100 %123. The fix for 122 broke \marginpar, so it did not work at all.
101 %(Corrected 3 Jan 88.)
103 %124. The \frame command put an extra space after the box.
104 %(Discovered by John Hershberger, corrected 14 Jan 88.)
108 \setbox\test\hbox{Here is a frame with\frame{NO SPACE}around it!}
110 {\showboxdepth5\showboxbreadth999\showbox\test}
114 %125. \parskip wasn't restored in parboxes and footnotes, so it would
115 %have the wrong value when a parbox or footnote appeared in a list
116 %environment. (Discovered by Dominik Wujastyk, corrected 20 Jan 88.)
120 parskip = \showthe\parskip
123 \item parskip = \showthe\parskip
124 \item inside a footnote\footnote{parskip = \showthe\parskip}
125 \item parskip = \showthe\parskip
126 \item inside a parbox \parbox{2in}{parskip = \showthe\parskip}
129 parskip = \showthe\parskip
131 %127. Strange things can happen if a command like \footnotemark that
132 %doesn't generate in-line text appears between a \paragraph or
133 %\subparagraph command (or any sectioning command that produces a
134 %heading that's part of the following paragraph) and the following text.
135 %What happens is that TeX sees the \footnotemark command before it sees
136 %the argument to the \{sub}paragraph command, which can lead to
137 %incorrect numbering and who knows what else. Any attempted fix is
138 %likely to break other things, so I will not try to fix this.
139 %(Discovered by Ed Zalta and Emma Pease.)
145 %%%% Footnotes are numbered a,b,c,d and footnotemarks are numbered 1,2
146 %%%% Is it normal? This doesn't occur if the same text is typeset without
147 %%%% the vbox and the minipage (i.e. with comments in front of the lines
148 %%%% terminated by a %%%).
149 \setcounter{secnumdepth}{4}
150 \setbox\test\vbox{% %%%
151 \begin{minipage}{4in} %%%
152 \section{Section One}
153 \subsection{Subsection One}
154 \subsubsection{Subsubsection One}
155 \paragraph{Paragraph One} Just\footnote{First footnote} to
156 check\footnote{Second footnote} its
157 number\footnote{Third footnote}.
159 This paragraph (\theparagraph) should be numbered (1.1.1.1).
161 \paragraph{Paragraph Two}\footnotemark{}
163 paragraph messy? or misnumbered?
164 \subparagraph{Subparagraph One}\footnotemark{}
166 subparagraph messy? or misnumbered?
168 This paragraph (\theparagraph) should be numbered (1.1.1.2).
170 \paragraph{Paragraph Three} Another footnote\footnote{Fourth footnote}
174 {\showboxdepth7\showboxbreadth999\showbox\test}
178 %136. Typing "\hspace*{...} plus ..." causes an error. (Reported by
179 %Emma Pease. Corrected 13 Oct 1988.)
185 \setbox\test\hbox{text\hspace*{1cm} plus 1cm}
187 {\showboxdepth3\showboxbreadth999\showbox\test}
191 %137. The size of the circle printed by \circle{L} not a monotonic
192 %function of L. (Reported by Nick North, diagnosed by Ian Young.
193 %Corrected 1 Nov 1988.)
195 %150. In the minipage environment, spacing between footnotes is too small
196 %(Found by Don Hosek. Corrected 27 Mar 89.)
198 %151. \pounds didn't work in math mode. (Discovered by Don Hosek.
199 %Corrected 10 Apr 89.)
201 %152. \indexentry commands instead of \glossaryentry commands are
202 %written on the .glo file. (Discovered by William D. Partain.
203 %Corrected 14 Apr 89.)
205 %153. Following minor changes made
206 % \include: prevent space in \include{foo } from wiping out input file.
207 % \begin-\end: detects unmatched \begin ended with \end{document}
208 % \verb: the leading spaces in \verb+ foo+ will not be dropped at the
209 % beginning of a line.
210 %Also, minor changes to \newline (\\ in paragraph mode), minipage
211 %environment, \tableofcontents, \listoffigures, and \listoftables
212 %that should produce no noticable effects. (Changes made 24 May 89,
213 %mostly based on suggestions by by Frank Mittelbach and Rainer Sch\"opf.
215 %154. A bug in the picture environment caused an extra space to appear
216 %in a picture if an offset is specified and the environment begins with
217 %a declaration that generates a \special or some such TeX "other".
218 %(Corrected 13 Jun 89.)
220 %155. Change 137 introduced a problem with the \oval command.
221 %(Reported by David Long and several other users, corrected 7 Dec 89.)
223 %157. A \newcommand declaration in horizontal mode added an extra
224 %space. (Discovered by Jim Curry, corrected 9 Jan 90.)
228 Current text-\newcommand{\be}{\begin{enumerate}}-end of text
231 {\showboxdepth3\showboxbreadth999\showbox\test}
235 %159. A missing \relax caused an error if some sectioning-commands
236 %had an argument with "plus" or "minus". (Reported by Nathan Maman,
237 %corrected 2 May 90.)
242 This is section One plus 1.
245 {\showboxdepth3\showboxbreadth999\showbox\test}
249 %160. A verbatim environment that begins with a left quote seems to
250 %cause incorrect vertical spacing when it begins a minipage environment.
251 %(Reported by Michinori Kawaki, 30 Sep 90. Corrected 21 Jun 91.)
257 \begin{minipage}[t]{3cm}
258 \begin{verbatim}`This is a
259 quotation'\end{verbatim}
261 %to be compared with:
262 \begin{minipage}[t]{3cm}
263 \begin{verbatim}Not quoted
268 {\showboxdepth5\showboxbreadth999\showbox\test}
272 % Final check: \tableofcontents
274 %\setbox\test\vbox{\tableofcontents}
276 %{\showboxdepth5\showboxbreadth999\showbox\test}