Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!ubc-cs!uw-beaver!mit-eddie!bloom-beacon!eru!hagbard!sunic!dkuug!iesd!iesd.auc.dk!krab From: krab@iesd.auc.dk (Kresten Krab Thorup) Newsgroups: comp.text.tex Subject: Re: Latex bug??? Message-ID: Date: 21 Feb 91 16:05:30 GMT References: <1991Feb20.145148.13403@polaris.utu.fi> Sender: news@iesd.auc.dk Organization: Mathematics and Computer Science, University of Aalborg Lines: 67 In-reply-to: knuutila@tucos.utu.fi's message of 20 Feb 91 14:51:48 GMT >>>>> On 20 Feb 91 14:51:48 GMT, knuutila@tucos.utu.fi (Timo Knuutila) said: Timo> Just encountered the following. Can someone please explain why the text Timo> produces `weird errors' with LaTeX. Timo> === EXAMPLE TEXT === Timo> \documentstyle{report} Timo> \begin{document} Timo> $$\begin{array}{l} Timo> [b_1]\\ Timo> \ldots\\ Timo> [b_m] Timo> \end{array}$$ Timo> \end{document} Timo> === LOG FILE === Timo> ! Missing number, treated as zero. Timo> Timo> b Timo> ... Timo> l.8 [b_m] Timo> Timo> ? Timo> ! Illegal unit of measure (pt inserted). Timo> Timo> b Timo> ... Timo> l.8 [b_m] Timo> ... ... ... Timo> === END OF LOG FILE === This is NOT a bug in LaTeX - It's a bug in your input file! When LaTeX reads the `\\' it can optionally read a dimen in square braces specifying the interline skip. E.g. you could say: bloops & bloops \\[1in] Which would produce one inch of space after this line. Timo> The following works just fine ({} inserted before [b_m]): Timo> \documentstyle{report} Timo> \begin{document} Timo> $$\begin{array}{l} Timo> [b_1]\\ Timo> \ldots\\ Timo> {}[b_m] Timo> \end{array}$$ Timo> \end{document} That's true - The scan for the [??] stops when LaTeX reads the {}. /Kresten -- / |__ __/ | / /_/_| / ___/ | _____/ __/ __/__/__| ____/ LaTeX's not crap --- that's me