Article View: comp.text
Article #6706controlling macro expansion
From: Silver
Date: Wed, 10 Jan 1990 07:29
Date: Wed, 10 Jan 1990 07:29
10 lines
876 bytes
876 bytes
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
Technical Details
Message-ID:
<Jan.10.02.29.09.1990.1907@busboys.rutgers.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!aramis.rutgers.edu!topaz.rutgers.edu!busboys.rutgers.edu!gaynorShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <Jan.10.02.29.09.1990.1907@busboys.rutgers.edu> Date: 10 Jan 90 07:29:12 GMT Reply-To: gaynor@topaz.rutgers.edu Organization: Rutgers Univ., New Brunswick, N.J. Lines: 10