From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47694 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: sections & incompatible colors in mkii/mkiv Date: Tue, 24 Feb 2009 00:48:15 +0100 Message-ID: <49A335BF.9040608@wxs.nl> References: <6faad9f00902230928i193f2404vecbe7dc3e6a79ad8@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235433120 32101 80.91.229.12 (23 Feb 2009 23:52:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2009 23:52:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 24 00:53:16 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1Lbkbr-0008Nd-Dj for gctc-ntg-context-518@m.gmane.org; Tue, 24 Feb 2009 00:53:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B02CB1FD8D; Tue, 24 Feb 2009 00:51:37 +0100 (CET) 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 31103-04-2; Tue, 24 Feb 2009 00:50:22 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0EFF51FC66; Tue, 24 Feb 2009 00:50:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6BA321FA41 for ; Tue, 24 Feb 2009 00:49:42 +0100 (CET) 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 31784-02 for ; Tue, 24 Feb 2009 00:49:00 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id E8CE61FC82 for ; Tue, 24 Feb 2009 00:48:22 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1NNmG7T007167 for ; Tue, 24 Feb 2009 00:48:17 +0100 Original-Received: from [10.100.1.107] (unverified [10.100.1.107]) by controller-1 (SurgeMail 3.9e) with ESMTP id 13828-1840426 for ; Tue, 24 Feb 2009 00:48:16 +0100 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <6faad9f00902230928i193f2404vecbe7dc3e6a79ad8@mail.gmail.com> X-Originating-IP: 10.100.1.107 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=16; city=Dronten; latitude=52.5333; longitude=5.7167; http://maps.google.com/maps?q=52.5333,5.7167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 184192449 - 5474c3dc5f11 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47694 Archived-At: Mojca Miklavec wrote: > Hello, > > Maybe this is just one incompatibility I need to live with, but maybe > it could be fixed. You can try to compare results in mkii and mkiv. > The text "Section is called" is desplayed in black in mkii and in red > in mkiv. (It made some of my documents look funny. I can fix it > myself, but maybe there are other consequences as well.) > > \setupcolors[state=start] > \def\mycommand#1#2{Section (#1) in called: #2} > \setuphead > [section] > [color=red, > numbercolor=black, > command=\mycommand] > \starttext > \section{First Section} > \stoptext mkiv is probably ok (we can program more robusy there due to attribute usage), just play a bit with color, textcolor, numbercolor Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________