| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If you want to change the order of control sequences to be expanded, you
can use \'. \' delays expansion of the following macro:
\set{foo}{0}
=>1
\'\incr\get{foo}
(=>\incr{0})
=>1
|
In this example, \get{foo} is expanded first. Next, the result
("0") is incremented by \incr.
Here is another example. Even though you have seen the first argument
of \ifelse is treated as literal, you can force expand it by
using \'.
\'\'\'\ifelse\'\incr\get{foo}{1}{bar}{baz}
(=>\'\ifelse\incr{0}{1}{bar}{baz})
(=>\ifelse{1}{1}{bar}{baz})
=>bar
|