R: [texhax] \newcommand
Philip G. Ratcliffe
philip.ratcliffe at uninsubria.it
Fri Sep 26 13:32:51 CEST 2003
> There are two differences, not one. The first is that the above
> uses the TeX primitive \def rather than the LaTeX \newcommand.
> The second is that I use (#1,#2), not {#1}{#2}. The latter does
> not work with \def. I don't know why.
Aha! But you're not allowed to write
\def\csname{#1}{#2}{definition}
For rather obvioius reasons: TeX thinks {#1} is the definition and in any
case the {} is would be totally superfluous here.
Cheers, Phil
More information about the texhax
mailing list