ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \groupedcommand missing bracket
@ 2010-02-19 17:14 Steffen Wolfrum
  2010-02-19 19:35 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: Steffen Wolfrum @ 2010-02-19 17:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: \groupedcommand missing bracket
  2010-02-19 17:14 \groupedcommand missing bracket Steffen Wolfrum
@ 2010-02-19 19:35 ` Aditya Mahajan
  0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2010-02-19 19:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-19 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-19 17:14 \groupedcommand missing bracket Steffen Wolfrum
2010-02-19 19:35 ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).