Dnia 2012-06-26, o godz. 22:44:40
Wolfgang Schuster <schuster.wolfg...@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
___________________________________________________________________________________
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