From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47696 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: sections & incompatible colors in mkii/mkiv Date: Tue, 24 Feb 2009 00:56:49 +0100 Message-ID: <2ED9AABA-F1BD-407D-9E2B-E8DEF6B53B48@gmail.com> References: <6faad9f00902230928i193f2404vecbe7dc3e6a79ad8@mail.gmail.com> <49A335BF.9040608@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235433679 1241 80.91.229.12 (24 Feb 2009 00:01:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2009 00:01:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 24 01:02:34 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 1Lbkkh-0002Xc-IR for gctc-ntg-context-518@m.gmane.org; Tue, 24 Feb 2009 01:02:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E4C41FD1B; Tue, 24 Feb 2009 01:00:43 +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 32029-02-5; Tue, 24 Feb 2009 00:58:56 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 81E1D1FCF4; Tue, 24 Feb 2009 00:58:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 331DC1FC77 for ; Tue, 24 Feb 2009 00:58:18 +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 00239-01-2 for ; Tue, 24 Feb 2009 00:57:41 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id BF65F1FC84 for ; Tue, 24 Feb 2009 00:57:33 +0100 (CET) Original-Received: from mail-fx0-f167.google.com (mail-fx0-f167.google.com [209.85.220.167]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1NNvVQW026834 for ; Tue, 24 Feb 2009 00:57:33 +0100 Original-Received: by fxm11 with SMTP id 11so2516163fxm.2 for ; Mon, 23 Feb 2009 15:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=4BBenvVG8b6sQS1pWqDfPSfjZDSh5CIhlDmXrcWf4aw=; b=dkSDAF7Kp2zabLNIO6+6dyjGCPGZG/hDG6IAg7tRE0YvfglUitNjt+9IdygSMkyNjU RCqqUwSWbYaV6Uz9raa3QjI20NgF2BuA59/MGYsv/UaAwCNPODV/ouxCPHe6dtnQHmWM egj/PW2TnG0V+sKGiwSu+LRJE13wiQp8GDajQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=ETlb4gQm5RG7+AqbZ4G3dF533y5GhfPgPKTETIKgOM1mxej7SMeEpYGKufUHbhdmJu 2AnY7b6dP0NJcS4rVKhbG08Q10pzZJK5JRuzR55DuKeuTV+FkmNOiFhgz96LAbreUdNs +QAEonA5p0+Bw7n2xSiUyptOYuw9fTE+4x9co= Original-Received: by 10.86.94.11 with SMTP id r11mr3274337fgb.11.1235433451248; Mon, 23 Feb 2009 15:57:31 -0800 (PST) Original-Received: from ?10.70.170.125? (8.106.113.82.net.de.o2.com [82.113.106.8]) by mx.google.com with ESMTPS id l19sm532916fgb.57.2009.02.23.15.57.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Feb 2009 15:57:30 -0800 (PST) In-Reply-To: <49A335BF.9040608@wxs.nl> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.167; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 184193899 - b095320e4fde X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:47696 Archived-At: Am 24.02.2009 um 00:48 schrieb Hans Hagen: > 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 The macros in core-sec.mkii and core-sec.mkiv are slightly different and you moved in the MkIV the color setting before the command key and affects therefore the complete text while in the MkII part the color value is only used inside of the number/textcommand. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________