[XeTeX] command argument as macro
Vafa Khalighi
vafa at users.berlios.de
Thu Oct 8 14:13:43 CEST 2009
>
> is it possible to use a command argument as macro itself? The idea is
> something like this:
>
> \document{article}
> \newcommand{\coma}{1}
> \newcommand{\comb}{2}
> \newcommand{\comc}{3}
> \newcommand{\getnumber}[1]{ \#1 }
> \begin{document}
> \getnumber{coma}
> \end{document}
>
>
\def\getnumber#1{\aftergroup\#1}
--
Vafa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20091008/0df25486/attachment.html>
More information about the XeTeX
mailing list