Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod!wuarchive!udel!brahms.udel.edu!anita From: anita@chopin.udel.edu (Anita Marie Hoover) Newsgroups: comp.text.tex Subject: Re: (LaTeX) Re: Help changing equation number brackets. Keywords: LaTeX Message-ID: <16222@chopin.udel.edu> Date: 15 Jan 91 18:33:03 GMT References: <1991Jan9.173130.3309@ecf.utoronto.ca> <11208@helios.TAMU.EDU> Distribution: na Organization: University of Delaware Lines: 32 In article <11208@helios.TAMU.EDU> jdm5548@diamond.tamu.edu (James Darrell McCauley) writes: >In article <1991Jan9.173130.3309@ecf.utoronto.ca>, aerostr@ecf.toronto.edu (W. Graham Elliott) writes: >|> How can the curved brackets around equation numbers (eg. (14) ) >|> be changed to square brackets (eg. [14] )? > >I thought that changing \def\@eqnnum{{\rm (\theequation)}} >to \def\@eqnnum{{\rm [\theequation]}} >or \def\@eqnnum{{\rm \left[\theequation\right]}} >would work, but it didn't. Could a someone explain? >--- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >James Darrell McCauley, jdm5548@diamond.tamu.edu, jdm5548@tamagen.bitnet >Dept of Ag Engineering, Texas A&M Univ, College Station, TX 77843-2117, USA >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Because of the @ in the name \@eqnnum, you have to LaTeX to treat this as a letter. So you must put \makeatletter and \makeatother around any definitions that have @ in them. SO in the preamble area, \documentstyle [12pt] {article} \makeatletter \def\@eqnnum{{\rm [\theequation]}} \makeatother \begin{document} ... \end{document} You will find this works correctly -- you were not too far off. Anita Hoover University of Delaware