[texhax] recursive \defs
Philip TAYLOR
P.Taylor at rhul.ac.uk
Thu Aug 16 13:18:43 CEST 2012
Neal H. Walfield wrote:
> How do I escape the #1 in bar's definition? What are good approaches to do this type of thing?
In reverse order :
> What are good approaches to do this type of thing?
Read the TeXbook : you will really enjoy it, and learn a great deal !
> How do I escape the #1 in bar's definition ?
Use ##1, ##2, etc., within \bar if they are local to \bar;
if you want to refer to \foo's parameters, just use #1, #2, etc.
If you nest three levels deep, use ####1, ####2, etc.
Philip Taylor
More information about the texhax
mailing list