Am 26.06.2012 um 22:12 schrieb Marcin Borkowski:

> Hello,
> 
> this doesn't work for me:
> 
> \definestartstop[amode][before={\startmode[a]},
>                        after={\stopmode}]
> 
> \starttext
> 
> All modes.
> \startamode
>  ``A'' mode.
> \stopamode
> 
> \stoptext
> 
> Can I use \startmode with \definestartstop?

No you can’t.

> Or is there a better way to do something like this?

It depends on what you want to do. You can create a buffer command:

\def\startamode{\grabbufferdata[amode][startamode][stopamode]}
%\def\stopamode {\getbuffer[amode]}

\starttext

All modes.
\startamode
“A” mode.
\stopamode

\stoptext

or you use my annotation module:

\usemodule[annotation]

\defineannotation[amode][alternative=text]
%\defineannotation[amode][alternative=none]

\starttext

All modes.
\startamode
“A” mode.
\stopamode

\stoptext

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
___________________________________________________________________________________

Reply via email to