From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80193 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Metafun textext() Date: Thu, 10 Jan 2013 14:17:53 +0100 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" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1357823876 10204 80.91.229.3 (10 Jan 2013 13:17:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2013 13:17:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 10 14:18:13 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 1TtI1N-0004td-MT for gctc-ntg-context-518@m.gmane.org; Thu, 10 Jan 2013 14:18:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0850101E5; Thu, 10 Jan 2013 14:17:57 +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 DoNOXq5h7la6; Thu, 10 Jan 2013 14:17:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5BC4F101E6; Thu, 10 Jan 2013 14:17:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D41FF101E6 for ; Thu, 10 Jan 2013 14:17:54 +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 8jjitJUcTvLj for ; Thu, 10 Jan 2013 14:17:54 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 276A0101E5 for ; Thu, 10 Jan 2013 14:17:54 +0100 (CET) Original-Received: from mail-wg0-x22a.google.com (wg-in-x022a.1e100.net [IPv6:2a00:1450:400c:c00::22a]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0AD7nKk023636 for ; Thu, 10 Jan 2013 14:07:50 +0100 Original-Received: by mail-wg0-f42.google.com with SMTP id dr1so1740856wgb.1 for ; Thu, 10 Jan 2013 05:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=tEJMrMFSNbsqPzx3T6IkF7X/AHrJu/aJuU8cMa/WIdo=; b=XfGFZR3CfhpaIKyNTr0WNdbYwaLV7TkM4oJ7TgcfJtRP8Q9C6+Qxh1DfRFgR9+tXuS N0J4vJOr7JLBaT4d8wGpvnpHMycz+ZpTBqiCjkvr6C0+9wmpM64KF0LVjAS5eOXpmRxR 0BOmYs5NypGm2YmEJq/8I0eYoMSTkohPM7ABFYV3TMLp+IMIW2KEiVFSjwiGQdNJqggP PBbejqHeNPv5ll36SFCgRcslLAuzVaPECNQlird/nO/7HwPe6Cx6b1fGUCy0TjYHHrzw 8hkls9FqEa/RKobJcMGbkkIKTwpqiEkQlI2LGc6t9+SFbzQXHOPEOcX7qcMiQg+bma9H RG1A== Original-Received: by 10.194.108.101 with SMTP id hj5mr16977915wjb.6.1357823873321; Thu, 10 Jan 2013 05:17:53 -0800 (PST) Original-Received: by 10.216.98.67 with HTTP; Thu, 10 Jan 2013 05:17:53 -0800 (PST) In-Reply-To: <20130110140114.52c0a9be@sole> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::22a; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WIKd7Opn - 5c3a7bde6a4d - 20130110 X-Scanned-By: CanIt (www . roaringpenguin . com) 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:80193 Archived-At: On Thu, Jan 10, 2013 at 2:01 PM, 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. Based on a snippet from mp-gnuplot (and agreeing with your point of view that it would be nice if it worked without the extra hassle) I tend to agree with Aditya (and I seem to remember that Hans implemented \colored[r=...,g=...,b=...] command exactly when this became a problem): % Returns an image with colored text according to current color % This only makes sense for mkiv text. Mkii is handled with \sometxt % and colors are working properly there. /.../ vardef gp_colored_mkiv_text(expr str) = % since withcolor doesn't work any more, we need to provide a workaround. save r, g, b; r = redpart gp_color_current; g = greenpart gp_color_current; b = bluepart gp_color_current; rawtextext("\colored[r=" & decimal(r) & ",g=" & decimal(g) & ",b=" & decimal(b) & "]{" & str & "}") enddef; Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________