I want to change the catcode in a macro, but it seems it doesn't work. Can anyone help me?
\def\A{\catcode`\|=0 |bf{test}}
|bf{test} would not work as expect.
|
I want to change the catcode in a macro, but it seems it doesn't work. Can anyone help me?
|
||||
|
|
This doesn't work because the You need to move the catcode change out of the macro:
There are also other ways to do it: eTeX privides Note that in this example makes actually no difference if Also note that your code example would make the catcode change active for the rest of the group |
|||||||
|