Am 14.12.2012 um 12:21 schrieb Andre Caldas <[email protected]>:
>> - 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________