[NTG-context] colored, marginal chapter numbers

nico nicolas.marsgui at libertysurf.fr
Thu Apr 20 21:54:12 CEST 2006


On Thu, 20 Apr 2006 15:26:12 -0400, Sanjoy Mahajan <sanjoy at mrao.cam.ac.uk>  
wrote:

> I get colored chapter text and numbers with:
>
> \setupcolors[state=start]
> \setuphead[chapter][color=blue]
> \starttext
> \chapter{One}
> \stoptext
>
> But if I drive the numbers into the left margin, they escape the blue
> paintbrush (but the text is still blue):
>
> \def\sectionnumber#1{\inleft{#1}}
> \setupcolors[state=start]
> \setuphead[chapter][numbercolor=blue,color=blue,
> deepnumbercommand=\sectionnumber]
> \starttext
> \chapter{One}
> \stoptext

What about this?
\setuphead[chapter][numbercolor=blue,color=blue,alternative=inmargin]

Regards,
BG


More information about the ntg-context mailing list