Am 12.02.10 18:59, schrieb Bernhard Rosensteiner:
maybe you mean something like that:
\define[1]\example{\tfx#1\tfa}
brr, when you want to define it in this way you should use grouping, e.g.
\define[1]\example{{\tfx#1}}
a better solution is
\define\example{\groupedcommand{\tfx}{}}
because you can now write
\example{...} and {\example ...}
The best way is to use \definealternativestyle, e.g.
\definealternativestyle [example] [\tfx] [\tfx]
the command takes three arguments because you can set with
the third argument a different behaviour in titles etc.
A third way is \definestartstop, e.g.
\definestartstop[example][style=\tfx]
this creates not only the command \example but also a example
environment where you get a smaller font.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________