Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!brunix!rph From: rph@cs.brown.edu (Richard Hughey) Newsgroups: comp.text.tex Subject: Re: Redefining a macro in terms of itself Message-ID: <61587@brunix.UUCP> Date: 15 Jan 91 19:17:01 GMT References: <1991Jan15.061451@bcat1.prime.com> <16221@chopin.udel.edu> Sender: news@brunix.UUCP Reply-To: rph@cs.brown.edu (Richard Hughey) Organization: Brown University Department of Computer Science Lines: 35 In article <16221@chopin.udel.edu> anita@chopin.udel.edu (Anita Marie Hoover) writes: >In article <1991Jan15.061451@bcat1.prime.com> kjg@s49.prime.com writes: >>I stumbled while attempting >>to redefine \tableofcontents and \marginpar in terms of themselves. >>This is what my intention is: >> >>\renewcommand{\tableofcontents}{\parskip 0in \tableofcontents} > >The way to redefine such macros is to go to the style file and get the >definition and make it part of your private LaTeX style file. So To make it less style file dependent (in case the style file is updated), a better command would be \let\original@tableofcontents=\tableofcontents \renewcommand{\tableofcontents}{\parskip 0pt \original@tableofcontents} This won't work for changes which cannot be placed at the start or end of a command, in which case defining the whole macro will be required. - Richard --------------------------------------- Richard Hughey INTERNET: rph@cs.brown.edu Brown University BITNET: rph@browncs Box 1910 (decvax, allegra, ...)!brunix!rph Providence, RI 02912