[NTG-context] Making all bold faced text colored?

Hans Hagen pragma at wxs.nl
Fri Mar 11 12:30:40 CET 2011


On 11-3-2011 12:03, Alasdair McAndrew wrote:
> In some overheads, I'd like all bold-faced font to appear in a given color,
> say red.  How do I set this up, so that {\bf some text} will display "some
> text" in red?

Fonts and colors are unrelated properties (and always will be in 
context). The way to go is abstraction:

\definestartstop[important][color=red,style=bold]

test {\important test} or \important{test} test ...


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list