Am 14.12.2012 um 12:21 schrieb Andre Caldas
- maybe switch to mkvi as named parameters make rewriting macros a breeze
Would you elaborate a bit further?
You can use for the parameter in your macros names instead of number, as you can see below the first definition uses “#1” for the argument while the second uses “#text”. You can force MkIV mode when you add “% macros=mkvi” at the top of the file. When your code is a external file (e.g. a module) you can give it “mkvi” as file extension (instead of the normal “tex” or “mkiv”) and don’t need this line anymore. %%%% begin example % macros=mkvi \def\mkivhighlight#1{{\red #1}} \def\mkvihighlight#text{{\green #text}} \starttext \mkivhighlight{MkIV} \mkvihighlight{MkVI} \stoptext %%%% end example Wolfgang