From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80194 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Metafun textext() Date: Thu, 10 Jan 2013 08:18:13 -0500 (EST) Message-ID: References: <20130110124830.7678f539@sole> <20130110140114.52c0a9be@sole> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1357823905 10664 80.91.229.3 (10 Jan 2013 13:18:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2013 13:18:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 10 14:18:43 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TtI1m-0005Gk-6q for gctc-ntg-context-518@m.gmane.org; Thu, 10 Jan 2013 14:18:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8D47D101EA; Thu, 10 Jan 2013 14:18:22 +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 emeOcaJloEU4; Thu, 10 Jan 2013 14:18:21 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 2E6B4101E6; Thu, 10 Jan 2013 14:18:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 201F7101E6 for ; Thu, 10 Jan 2013 14:18:20 +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 vxAN3qEYx1k5 for ; Thu, 10 Jan 2013 14:18:19 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 45873101E5 for ; Thu, 10 Jan 2013 14:18:19 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0ADIGVq031444 for ; Thu, 10 Jan 2013 14:18:17 +0100 Original-Received: FROM mint (bas3-montreal02-1096680382.dsl.bell.ca [65.94.3.190]) By hackers.mr.itd.umich.edu ID 50EEBF97.D36D.26275 ; Authuser adityam; 10 Jan 2013 08:18:15 EST In-Reply-To: <20130110140114.52c0a9be@sole> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VIKdihwp - b81550bb052b - 20130110 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80194 Archived-At: On Thu, 10 Jan 2013, Alan BRASLAU wrote: > On Thu, 10 Jan 2013 06:51:50 -0500 > Aditya Mahajan wrote: > >> Since the beginning of MkIV, colors in metapost labels need to be set at >> the ConTeXt end (Untested): >> >> T := thelabel(textext("\color[blue]{I'm seeing double}"), origin); >> >> Aditya > > I don't believe that this is true, but I am most likely wrong. Well, I think it was true in the beginning (as I remember a discussion from Mojca on how to handle labels differently in the gnuplot module), but clearly that is not the case now. > Indeed "\blue text" has worked, but 'draw T withcolor blue;' *should* work as well. > The processing of textext() has changed recently, it seems. > > \startMPcode > label(textext("I'm seeing double"),origin) withcolor green ; > label(textext("I'm seeing double"),(-1mm,1mm)) withcolor blue ; > \stopMPcode > > DOES work. > > Of course, these are much simplified minimal examples of what I would like to do. Minimal example to show what is happening: \startbuffer[initialize] picture T; T := textext("Hello"); picture Q; Q := T; \stopbuffer \startbuffer[T] draw T withcolor blue; \stopbuffer \startbuffer[Q] draw Q shifted (-1mm, 1mm) withcolor red; \stopbuffer \startlines Only draw T: \processMPbuffer[initialize,T] Only draw Q: \processMPbuffer[initialize,Q] Draw T & Q : \processMPbuffer[initialize,T,Q] Draw Q & T : \processMPbuffer[initialize,Q,T] \stoplines Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________