[NTG-context] A problem with modes
Marcin Borkowski
mbork at wmi.amu.edu.pl
Tue Jun 26 23:25:37 CEST 2012
Dnia 2012-06-26, o godz. 22:44:40
Wolfgang Schuster <schuster.wolfgang at googlemail.com> napisał(a):
>
> 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.
I was afraid of this...
> > 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
Thanks, it worked. One question: is there any difference between
\def\starta{...}
\def\stopa{...}
and
\definestartstop[a][before={...},after={...}]
?
> Wolfgang
Best,
--
Marcin Borkowski
http://mbork.pl
More information about the ntg-context
mailing list