[XeTeX] newcommand with optional arguments
Will Robertson
wspr81 at gmail.com
Tue Mar 4 01:39:20 CET 2008
On 04/03/2008, at 8:11 AM, Ross Moore wrote:
> Actually the \expandafter s are not needed here.
There's also the package ifmtarg that provides a couple of useful
(userlevel) commands for checking for empty arguments.
Generally in these sorts of cases I'll write something like
\def\@tempa{#1}
\ifx\@tempa\@empty ...
but if I recall correctly the ifmtarg package gives you an expandable
command :)
Will
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2415 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20080304/ed5a4337/attachment.bin
More information about the XeTeX
mailing list