[texhax] if condition: is macro body empty?

Lars Madsen daleif at imf.au.dk
Thu Feb 12 10:39:07 CET 2009


Susan Dittmar wrote:
> Thanks, Daleif, for your answer. I had a look at ifmtarg, but could not get
> it to work at all in the case I need. Perhaps because I do not really
> understand the \expandafter magic.
> My impression is that \@ifmtarg{\buffer}{YES}{NO} will always typeset NO
> no matter what the contents of \buffer is.
> 

\expandafter\@ifmtarg\expandafter{\buffer}{YES}{NO}

not sure if both \expandafter's are needed, but this is hos I use it.

-- 

/daleif


More information about the texhax mailing list