[NTG-context] \groupedcommand missing bracket

2010-02-19 Thread Steffen Wolfrum
Hi,

does someone know what's going wrong here?


\definestartstop[Literature] [before={\startcolumns[n=1]},after={\stopcolumns}]

\define\Colorit%
{\groupedcommand{\color[blue]\em}\/}

\starttext

This works:

test \Colorit{color} text.

This dont't:

\startLiterature
test \Colorit{color} text.
\stopLiterature

Why?

\stoptext



This gives:

! Missing } inserted.
inserted text 
}
to be read again 
   \endgroup 
\stopLiterature -\dostopattributes 
\egroup \getvalue {\??be Literature\c!af...
l.18 \stopLiterature

? 


Steffen
___
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
___


Re: [NTG-context] \groupedcommand missing bracket

2010-02-19 Thread Aditya Mahajan

On Fri, 19 Feb 2010, Steffen Wolfrum wrote:


Hi,

does someone know what's going wrong here?


\definestartstop[Literature] [before={\startcolumns[n=1]},after={\stopcolumns}]

\define\Colorit%
{\groupedcommand{\color[blue]\em}\/}

\starttext

This works:

test \Colorit{color} text.

This dont't:

\startLiterature
test \Colorit{color} text.
\stopLiterature

Why?


Not sure, but why not use the more canonical

\definestartstop[Colorit]
[color=blue,
 style=em]

(I believe it also does italic correction).

Aditya
___
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
___