[NTG-context] need help with macro

2012-09-23 Thread Philipp Gesang
Hi all, I have a macro “mogrify” that eats three tokens of a string and treats them differently from the rest of the string. I can’t however use it inside more complex macros. Is there a way out or an alternative using macros? (No Lua.) Other formatting macros work fine in the same place. Any hel

Re: [NTG-context] need help with macro

2012-09-23 Thread Wolfgang Schuster
Am 23.09.2012 um 15:33 schrieb Philipp Gesang : > Hi all, > > I have a macro “mogrify” that eats three tokens of a string and > treats them differently from the rest of the string. I can’t > however use it inside more complex macros. Is there a way out or > an alternative using macros? (No Lua.)

Re: [NTG-context] need help with macro

2012-09-23 Thread Philipp Gesang
· > It’s a expansion problem, you can either expand the content in the definition > of \mogrify (as seen below) > or you make the \mogrify command unexpanded and you expand the content of the > \wwparameter > (i.e. \doifsomething{…}{\normalexpanded{\mogrify{…}}}) Thanks a lot, I rewrote