From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40056 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: staticMPfigure Date: Fri, 11 Apr 2008 12:31:24 +0200 Message-ID: <6faad9f00804110331k5248975bn9edd540491cda9bd@mail.gmail.com> References: <47FE5523.4741.1F28078@wwl.musensturm.de> <47FE3BF9.20205@wxs.nl> <6faad9f00804101501jd63b3cas267763419d3614cf@mail.gmail.com> <6faad9f00804101538wd52b9a8je3bc97218d8fd76f@mail.gmail.com> <47FF16D6.4050808@wxs.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 1207910035 27640 80.91.229.12 (11 Apr 2008 10:33:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2008 10:33:55 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 11 12:34:24 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 1JkGZR-0005mg-8t for gctc-ntg-context-518@m.gmane.org; Fri, 11 Apr 2008 12:33:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B1FDA1FC39; Fri, 11 Apr 2008 12:32:45 +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 12274-02-17; Fri, 11 Apr 2008 12:32:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 680BD1FBCC; Fri, 11 Apr 2008 12:32:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3022E1FB60 for ; Fri, 11 Apr 2008 12:31:59 +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 14063-05-3 for ; Fri, 11 Apr 2008 12:31:25 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.156]) by ronja.ntg.nl (Postfix) with ESMTP id 32E7B1FC0D for ; Fri, 11 Apr 2008 12:31:25 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 6so222385ywa.74 for ; Fri, 11 Apr 2008 03:31:24 -0700 (PDT) Original-Received: by 10.151.50.11 with SMTP id c11mr2941916ybk.221.1207909884325; Fri, 11 Apr 2008 03:31:24 -0700 (PDT) Original-Received: by 10.150.122.20 with HTTP; Fri, 11 Apr 2008 03:31:24 -0700 (PDT) In-Reply-To: <47FF16D6.4050808@wxs.nl> Content-Disposition: inline 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:40056 Archived-At: On Fri, Apr 11, 2008 at 9:44 AM, Hans Hagen wrote: > 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 -) I know. MyWay about \sometxt mentions currentcolor, but it's kind of tricky enough to find the proper manual with the needed information when one is looking for it. Using \sometxt instead of btex ... etex would be much more efficient as well, it has not been a secret, but I have no idea how to best proliferate that information. > 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 PS: Before "currentcolor" was there, the circle would have come out red without having to use \MPcolor :-) You just had "bad luck" with it :-) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________