From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24978 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: colors in MPgraphic Date: Fri, 06 Jan 2006 15:19:46 +0100 Message-ID: <43BE7C82.4060600@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136557208 23288 80.91.229.2 (6 Jan 2006 14:20:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2006 14:20:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 06 15:20:06 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 1EusRd-00056d-Jv for gctc-ntg-context-518@m.gmane.org; Fri, 06 Jan 2006 15:19:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9EA46127E2; Fri, 6 Jan 2006 15:19:52 +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 03576-03-4; Fri, 6 Jan 2006 15:19:49 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A3AB6127D0; Fri, 6 Jan 2006 15:19:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AFC88127D0 for ; Fri, 6 Jan 2006 15:19: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 03576-03-3 for ; Fri, 6 Jan 2006 15:19:47 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with SMTP id C27BC127B2 for ; Fri, 6 Jan 2006 15:19:47 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 3CB1D18200 for ; Fri, 6 Jan 2006 15:19:47 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31095-05 for ; Fri, 6 Jan 2006 15:19:46 +0100 (CET) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id DD6A410E07 for ; Fri, 6 Jan 2006 15:19:46 +0100 (CET) User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: by amavisd-new at elvenkind.net 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:24978 Archived-At: 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 ;-) 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 Cheers, Taco