Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!brunix!gvr From: gvr@cs.brown.edu (George V. Reilly) Newsgroups: comp.text.tex Subject: Re: Problem with LaTeX eqnarray... Message-ID: <63713@brunix.UUCP> Date: 5 Feb 91 06:58:59 GMT References: Sender: news@brunix.UUCP Reply-To: gvr@cs.brown.edu (George V. Reilly) Organization: Brown University Department of Computer Science Lines: 26 In article sullivan@msor.exeter.ac.uk (Rob Sullivan) writes: % I would be most grateful if someone could point out what is wrong with % the following LaTeX file. It appears to produce a TeX 'weird' error. % What should I do if I want aligned commutator brackets. % % \documentstyle{article} % \begin{document} % text text text text % \begin{eqnarray} % [a,b]&=&0 \\ % [c,d]&=&0 % \end{eqnarray} % text text text % \end{document} If you look at p. 151 of the LaTeX book, you'll see that \\ can take an optional argument enclosed in [square brackets]. Either enclose the [c,d] in braces [a,b]&=&0 \\ {[c,d]}&=&0 or put an empty pair of braces after the \\ [a,b]&=&0 \\{} [c,d]&=&0 ________________ George V. Reilly `InvisibleManiac' gvr@cs.brown.edu +1 (401) 863-7684 uunet!brunix!gvr gvr@browncs.bitnet Box 1910, Brown U, Prov, RI 02912