ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: colored, marginal chapter numbers
Date: Thu, 20 Apr 2006 15:26:12 -0400	[thread overview]
Message-ID: <E1FWen6-0007Ha-5m@approximate.corpus.cam.ac.uk> (raw)

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

Is there a recommended way of doing this?  I could put blue into the
\sectionnumber command, but I'd prefer to specify the color only once
(the numbercolor and color specifications were an attempt at overkill).
Plus I'd like to understand what's going on.

[ConTeXt  ver: 2006.04.17 23:14  fmt: 2006.4.19]

-Sanjoy

             reply	other threads:[~2006-04-20 19:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-20 19:26 Sanjoy Mahajan [this message]
2006-04-20 19:43 ` Miguel Queiros
2006-04-20 20:37   ` Sanjoy Mahajan
2006-04-20 19:54 ` nico
2006-04-20 20:38   ` Sanjoy Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1FWen6-0007Ha-5m@approximate.corpus.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).