From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15751 Path: main.gmane.org!not-for-mail From: Eckhart =?iso-8859-1?Q?Guth=F6hrlein?= Newsgroups: gmane.comp.tex.context Subject: Re: metaobj and transparent colors with \MPcolor Date: Fri, 23 Jul 2004 13:44:06 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <20040723114406.GD4547@cebitec.uni-bielefeld.de> References: <20040723075321.GA19666@cebitec.uni-bielefeld.de> <4100DE3C.90609@seznam.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1090583069 30042 80.91.224.253 (23 Jul 2004 11:44:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2004 11:44:29 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 23 13:44:12 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BnyTE-0008Kf-00 for ; Fri, 23 Jul 2004 13:44:12 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2FF2B1278F; Fri, 23 Jul 2004 13:44:12 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13071-03; Fri, 23 Jul 2004 13:44:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 419611278A; Fri, 23 Jul 2004 13:44:09 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B6221278A for ; Fri, 23 Jul 2004 13:44:08 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13077-02 for ; Fri, 23 Jul 2004 13:44:07 +0200 (CEST) Original-Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE (unknown [129.70.160.28]) by ronja.ntg.nl (Postfix) with ESMTP id D8ED71277C for ; Fri, 23 Jul 2004 13:44:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 7B5A62D607 for ; Fri, 23 Jul 2004 13:44:07 +0200 (MEST) Original-Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (sauron [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03546-01-6 for ; Fri, 23 Jul 2004 13:44:06 +0200 (MEST) Original-Received: from baloo.Genetik.Uni-Bielefeld.DE (baloo.CeBiTec.Uni-Bielefeld.DE [129.70.160.60]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 93F1E2D606 for ; Fri, 23 Jul 2004 13:44:06 +0200 (MEST) Original-Received: by baloo.Genetik.Uni-Bielefeld.DE (Postfix, from userid 13119) id 704C6B0B; Fri, 23 Jul 2004 13:44:06 +0200 (MEST) Original-To: mailing list for ConTeXt users Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <4100DE3C.90609@seznam.cz> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at cebitec.uni-bielefeld.de X-Virus-Scanned: by 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: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15751 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15751 On Fri, Jul 23, 2004 at 11:45:32AM +0200, Vit Zyka wrote: > Sorry, I can not reproduce your example. I get only red page with black > page number in header. No white box. And I do not known metaobj macro. The graphics won't compile without metaobj, which is a very nice macro package for metapost, available at CTAN/graphics/metapost/contrib/macros/metaobj/ > But I have a question. It is really needed to surround \definecolor by > \startMPenvironment? Since \definecolor has to result to \pdfobj and > \pdfliteral (pdftex primitives) and propagation to mpost (which is EPS > not PDF generator) has no sence. Only reference to color is needed and > it is done via \MPcolor. Am I right? During a texexec run, inline MP graphics are automatically generated and converted in case of PDF output, provided that you have configured your texexec to do so. Definitions enclosed in \startMPenvironment ... \stopMPenvironment are made available not only inside MP graphics, but also for the main document by the [global] option. In this case, I use it to maintainn color consistency between metapost and tex. Without \startMPenvironment, the color definition would be available in context only, not for inline graphics. -- Eckhart