Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!aramis.rutgers.edu!topaz.rutgers.edu!busboys.rutgers.edu!gaynor From: gaynor@busboys.rutgers.edu (Silver) Newsgroups: comp.text Subject: controlling macro expansion Message-ID: Date: 10 Jan 90 07:29:12 GMT Reply-To: gaynor@topaz.rutgers.edu Organization: Rutgers Univ., New Brunswick, N.J. Lines: 10 How do I control the expansion of macros? F'rinstance, suppose I wanted to define the macro \foo to expand to exactly what it did before but also with a bar on the end? In pseudolatex, this is what I'd like to say: \newcommand{\foo}{foo} % \foo --> foo \renewcommand{\foo}{\expand{\foo}bar} % \foo --> foobar Several examples and references along these lines would be really appreciated! Thanks muchly, [Ag] gaynor@topaz.rutgers.edu