From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40047 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: staticMPfigure Date: Fri, 11 Apr 2008 09:44:22 +0200 Message-ID: <47FF16D6.4050808@wxs.nl> References: <47FE5523.4741.1F28078@wwl.musensturm.de> <47FE3BF9.20205@wxs.nl> <6faad9f00804101501jd63b3cas267763419d3614cf@mail.gmail.com> <6faad9f00804101538wd52b9a8je3bc97218d8fd76f@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" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207900000 15722 80.91.229.12 (11 Apr 2008 07:46:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2008 07:46:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 11 09:47:12 2008 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 1JkDyA-0008EC-0v for gctc-ntg-context-518@m.gmane.org; Fri, 11 Apr 2008 09:46:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0031A1FC45; Fri, 11 Apr 2008 09:46:05 +0200 (CEST) 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 31758-03-6; Fri, 11 Apr 2008 09:45:15 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 821EA1FBBD; Fri, 11 Apr 2008 09:45:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E41721FBB9 for ; Fri, 11 Apr 2008 09:45:12 +0200 (CEST) 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 31558-03-6 for ; Fri, 11 Apr 2008 09:44:40 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 2D8661FBC1 for ; Fri, 11 Apr 2008 09:44:40 +0200 (CEST) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 12221 for ; Fri, 11 Apr 2008 09:44:40 +0200 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) In-Reply-To: <6faad9f00804101538wd52b9a8je3bc97218d8fd76f@mail.gmail.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:40047 Archived-At: Mojca Miklavec wrote: > On Fri, Apr 11, 2008 at 12:23 AM, Aditya Mahajan wrote: >> On Fri, 11 Apr 2008, Mojca Miklavec wrote: >> >> > On Thu, Apr 10, 2008 at 11:41 PM, Aditya Mahajan wrote: >> >> On Thu, 10 Apr 2008, Hans Hagen wrote: >> >> >> >> > works ok on my machine using pdftex but luatex gives an unknown (have to >> >> > look into it) >> >> >> >> Another test case, I ran into today. >> >> >> >> \setupcolors[state=start,textcolor=red] >> >> >> >> \starttext >> >> >> >> \startMPcode >> >> draw fullcircle scaled 2cm withcolor \MPcolor{\@@themaintextcolor} ; >> > >> > Do you mean \MPcolor{currentcolor}? >> >> Hangs head in shame :(. I need to learn how to read the sources correctly. >> >> Of course, currentcolor is much better than \@@themaintextcolor. I just >> did not know that it existed. > > Well ... I knew accidentally (since I have requested it). It's > mentioned in \sometxt MyWay, but that's rather well hidden as well. you just kept it secret ... i made 'currentcolor' for you -) anyhow ... using commands with @@ in it is usually a bad idea \unprotect \startMPcode draw fullcircle scaled 2cm withcolor \MPcolor{\@@themaintextcolor} ; \stopMPcode \protect might have worked ----------------------------------------------------------------- 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 ___________________________________________________________________________________