From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27312 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: colored, marginal chapter numbers Date: Thu, 20 Apr 2006 15:26:12 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145561295 17293 80.91.229.2 (20 Apr 2006 19:28:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2006 19:28:15 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 20 21:28:09 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWeoz-0008Ej-Eo for gctc-ntg-context-518@m.gmane.org; Thu, 20 Apr 2006 21:28:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 398C31279A; Thu, 20 Apr 2006 21:28:09 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07788-03; Thu, 20 Apr 2006 21:28:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 89475127A3; Thu, 20 Apr 2006 21:26:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 20D0A127A3 for ; Thu, 20 Apr 2006 21:26:21 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07788-02 for ; Thu, 20 Apr 2006 21:26:20 +0200 (CEST) Original-Received: from smtpauth07.mail.atl.earthlink.net (smtpauth07.mail.atl.earthlink.net [209.86.89.67]) by ronja.ntg.nl (Postfix) with SMTP id C863E1279A for ; Thu, 20 Apr 2006 21:26:19 +0200 (CEST) Original-Received: from [24.41.6.91] (helo=approximate.corpus.cam.ac.uk) by smtpauth07.mail.atl.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1FWenC-00086l-G2; Thu, 20 Apr 2006 15:26:18 -0400 Original-Received: from sanjoy by approximate.corpus.cam.ac.uk with local (Exim 4.60) (envelope-from ) id 1FWen6-0007Ha-5m; Thu, 20 Apr 2006 15:26:12 -0400 Original-To: ntg-context@ntg.nl X-Mailer: MH-E 7.93; nmh 1.1; GNU Emacs 21.4.1 X-ELNK-Trace: dcd19350f30646cc26f3bd1b5f75c9f474bf435c0eb9d4789de090ecffd5a97540e90964720a9971fc4f4e41fbcf2465350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.41.6.91 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27312 Archived-At: 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