Am 07.05.2011 um 12:44 schrieb Otared Kavian:

> Hi Wolfgang,
> 
> Following up one of the recent threads about your annotation module, I made 
> some experiments and found it a wonderful and extremely useful module.
> Out of curiosity, I wanted to know whether there is a key to set a background 
> color for an annotation (as it is possible to use headcolor=darkred, or 
> textcolor=darkgray, for instance).

No, you one of ConTeXt commands/environments which have a background, e.g. 
framed, background or textbaxkground.

\define[2]\MyQuotationCommand
        {\setupbackground[background=color,backgroundcolor=gray]
         \startbackground
         \textrule{#1}#2\textrule
         \stopbackground}

or

\define[2]\MyQuotationCommand
        {\setupbackground[background=color,backgroundcolor=gray]
         \textrule{#1}%
         \startbackground
         #2%
         \stopbackground
         \textrule}

> Also I didn't get the difference between textcolor=darkgray and 
> color=darkgray: are they the same?

The “color” affects the header *and* the text while “headcolor” and “textcolor” 
only affect one of them. You can test this when you comment headcolor/textcolor 
and use only color.

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