From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54845 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: Metapost and mkiv Date: Sat, 28 Nov 2009 19:28:35 +0100 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <200911281928.35333.alan.braslau@cea.fr> References: <86d68cc30911250727xcbb007elc822b887a3d54c30@mail.gmail.com> <200911271031.49277.alan.braslau@cea.fr> <3A9B12AC-0F94-4CDC-88B1-5AE7DE38F91B@boede.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1259432918 20601 80.91.229.12 (28 Nov 2009 18:28:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Nov 2009 18:28:38 +0000 (UTC) Cc: Willi Egger To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 28 19:28:31 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NES21-0001EK-On for gctc-ntg-context-518@m.gmane.org; Sat, 28 Nov 2009 19:28:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 99524C9C68; Sat, 28 Nov 2009 19:25:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cifYmRLOTrTQ; Sat, 28 Nov 2009 19:25:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D3C68C9CD8; Sat, 28 Nov 2009 19:25:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1726FC9CD8 for ; Sat, 28 Nov 2009 19:25:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WvFkIvg9-ll1 for ; Sat, 28 Nov 2009 19:25:21 +0100 (CET) Original-Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [212.27.42.4]) by balder.ntg.nl (Postfix) with ESMTP id 806D3C9C68 for ; Sat, 28 Nov 2009 19:25:20 +0100 (CET) Original-Received: from smtp4-g21.free.fr (localhost [127.0.0.1]) by smtp4-g21.free.fr (Postfix) with ESMTP id C52F74C8042; Sat, 28 Nov 2009 19:28:15 +0100 (CET) Original-Received: from iram-hb-003386.localnet (cev75-1-81-57-248-225.fbx.proxad.net [81.57.248.225]) by smtp4-g21.free.fr (Postfix) with ESMTP id DE1024C813D; Sat, 28 Nov 2009 19:28:12 +0100 (CET) User-Agent: KMail/1.12.2 (Linux/2.6.31; KDE/4.3.2; x86_64; ; ) In-Reply-To: <3A9B12AC-0F94-4CDC-88B1-5AE7DE38F91B@boede.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:54845 Archived-At: On Friday 27 November 2009 14:54:53 Willi Egger wrote: > Hi Alan, > > I run in this myself. A possible solution is: > > \startuniqueMPgraphic{test} > for i = 0 upto 10 : > draw thelabel(textext("\color[red]" & decimal i &""), (i, -1) > scaled 1cm); > endfor ; > \stopuniqueMPgraphic > > \setupcolors[state=start] > > \starttext > \uniqueMPgraphic{test} > \stoptext > > KR > Willi Yes, Thanks. I thought of this as a work-around, but the first is clearly a bug. What actually works is: \setupcolors [state=start] \starttext \startuniqueMPgraphic{test} for i = 0 upto 10 : %draw thelabel(decimal i, (i, 0) scaled 1cm) withcolor red ; draw thelabel(textext("\red"& decimal i &""), (i, 0) scaled 1cm) ; endfor ; \stopuniqueMPgraphic \uniqueMPgraphic{test} \stoptext Now it is up to the experts to fix the bug in mkiv. Alan ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________