From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24987 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: colors in MPgraphic Date: Fri, 06 Jan 2006 18:56:46 +0100 Message-ID: <43BEAF5E.705@wxs.nl> References: <43BE7C82.4060600@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136570222 11370 80.91.229.2 (6 Jan 2006 17:57:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2006 17:57:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 06 18:56:59 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1Euvpb-0005uZ-Mf for gctc-ntg-context-518@m.gmane.org; Fri, 06 Jan 2006 18:56:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 53D73127E2; Fri, 6 Jan 2006 18:56:51 +0100 (CET) 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 05818-06; Fri, 6 Jan 2006 18:56:50 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9455A127DC; Fri, 6 Jan 2006 18:56:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 28D38127DC for ; Fri, 6 Jan 2006 18:56:48 +0100 (CET) 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 05894-03 for ; Fri, 6 Jan 2006 18:56:47 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id 37955127D5 for ; Fri, 6 Jan 2006 18:56:47 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 10609 for ; Fri, 06 Jan 2006 19:06:00 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <43BE7C82.4060600@elvenkind.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.5 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:24987 Archived-At: Taco Hoekwater wrote: > > > Hans van der Meer wrote: > >> In MPgrapic I do want my own colors for drawing lines etc. >> These are set up in plain.mf's ("_op_" and "background"). >> In \startMPinclusions I just do that in order to get the drawing >> color I want. >> But then \startMPgraphic appears to reset colors (both "_op_" and >> "background" I suspect). > > > The resetfig() macro from metafun clears "_op_" and "background". > I don't know why, but there''' be a reason for it, I am sure ;-) sure -) [i need to think a bit] > > There almost certainly is an 'official' way to add some statements to > the beginning of each figure, but, in any case, it works if you store > your settings in extra_beginfig: > > \startMPinclusions > extra_beginfig := "drawoptions(withcolor green)"; > \stopMPinclusions maybe best is to append instead of assign Hans