Am 29.04.2012 um 08:48 schrieb Vladimir Lomov:

> Hello,
> 
> I borrow this example from wiki:
> <example file="ex2.tex">
> %\setupbodyfont[computer-modern-unicode,12pt]
> 
> \definedescription
>  [Desc]
>  [location=top,hang=20,
>   headstyle={\bf\color[blue]},
>   command=\hskip-1cm,margin=1cm]
> 
> \starttext
> \startDesc{Tufte}
> \input tufte
> \stopDesc
> \stoptext
> </example>


The problem is \color which expects a argument for the text to be colored (e.g. 
\color[blue]{…}) which is never the case when you put it in a style key but you 
can use the color key to set the value.

\definedescription
 [description]
 [alternative=top,
  headstyle=bold,
  headcolor=blue,
  headcommand={\offset[x=-1cm]},
  margin=1cm]

\starttext

\input tufte

\startdescription{Tufte}
\input tufte
\stopdescription

\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