Search found 2 matches
- Wed Aug 05, 2009 4:08 pm
- Forum: General
- Topic: recursive use of \newcommand?
- Replies: 2
- Views: 5684
Re: recursive use of \newcommand?
Thanks, that did the job. I didn't know about \csname, I'll have to go read up on it.
- Tue Aug 04, 2009 2:36 am
- Forum: General
- Topic: recursive use of \newcommand?
- Replies: 2
- Views: 5684
recursive use of \newcommand?
I have a slightly advanced, and mostly pedagogical, question about using variables to define new commands in Latex.
Suppose I define a new command
\newcommand{\abbreviate}[2]{ #2 (#1)}
In the text, \abbreviate{USSR}{Union of Soviet Socialist Republics} will appear as "Union of Soviet Socialist ...
Suppose I define a new command
\newcommand{\abbreviate}[2]{ #2 (#1)}
In the text, \abbreviate{USSR}{Union of Soviet Socialist Republics} will appear as "Union of Soviet Socialist ...