Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!unido!sbsvax!fb14vax!yxoc From: yxoc@fb14vax.cs.uni-sb.de (Ralf Treinen) Newsgroups: comp.text.tex Subject: Re: Redefining a macro in terms of itself Message-ID: <8695@sbsvax.cs.uni-sb.de> Date: 16 Jan 91 19:23:23 GMT References: <16221@chopin.udel.edu> Sender: news@sbsvax.cs.uni-sb.de Lines: 25 Originator: yxoc@fb14vax From article <16221@chopin.udel.edu>, by anita@chopin.udel.edu (Anita Marie Hoover): > In article <1991Jan15.061451@bcat1.prime.com> kjg@s49.prime.com writes: >> >> While trying to create a private LaTeX style file, I stumbled while attempting >>to redefine \tableofcontents and \marginpar in terms of themselves. This is what >>my intention is: >> >>PSEUDOCODE >> >>\renewcommand{\tableofcontents}{\parskip 0in \tableofcontents} You may also use the following TeXnical trick: \let\TMP\tableofcontents \renewcommand{\tableofcontents}{\parskip 0in \TMP} Take care, this will redefine \TMP without any warning. Ralf. -- Ralf Treinen | email: treinen@cs.uni-sb.de FB 14 - Informatik (Dept. of CS) | Universitaet des Saarlandes | phone: +49 681 302 2065 W-6600 Saarbruecken , Germany | fax: +49 681 302 4421