From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15746 Path: main.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: metaobj and transparent colors with \MPcolor Date: Fri, 23 Jul 2004 11:45:32 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <4100DE3C.90609@seznam.cz> References: <20040723075321.GA19666@cebitec.uni-bielefeld.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090575995 14029 80.91.224.253 (23 Jul 2004 09:46:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2004 09:46:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 23 11:46:28 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 1BnwdI-0001K0-00 for ; Fri, 23 Jul 2004 11:46:28 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D5F8312780; Fri, 23 Jul 2004 11:46:27 +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 12210-01; Fri, 23 Jul 2004 11:46:27 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F0351277C; Fri, 23 Jul 2004 11:44:44 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 597AB1277C for ; Fri, 23 Jul 2004 11:44:42 +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 11874-08-3 for ; Fri, 23 Jul 2004 11:44:41 +0200 (CEST) Original-Received: from smtp.seznam.cz (unknown [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id BE93812777 for ; Fri, 23 Jul 2004 11:44:41 +0200 (CEST) Original-Received: (qmail 32484 invoked from network); 23 Jul 2004 09:44:41 -0000 Original-Received: from unknown (HELO ?192.168.1.45?) (vit.zyka@82.142.74.35) by smtp.seznam.cz with SMTP; 23 Jul 2004 09:44:41 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: cs, en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20040723075321.GA19666@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:15746 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15746 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. 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? Vit Zyka > I try to achieve transparently filled objects using the metaobj package. > However, transparency is ignored completely in the output, I just get a > normal white. Here is my test file: > > \setupcolors[state=start] > \setupbackgrounds[page][background=color,backgroundcolor=red] > > \startMPenvironment[global] > \definecolor[Durchsichtig][r=1.0,g=1.0,b=1.0,t=0.0,a=normal] > \stopMPenvironment > > \startreusableMPgraphic{test} > input metaobj; > setObjectDefaultOption("Box")("fillcolor")(\MPcolor{Durchsichtig}); > newBox.test(btex Transparent? etex) "filled(true)"; > Obj(test).c=origin; > drawObj(test); > \stopreusableMPgraphic > > \starttext > \reuseMPgraphic{test} > \stoptext > > > If I use the fillcolor as an argument to the object > > newBox.test(btex Transparent? etex) "filled(true)" > "fillcolor(\MPcolor{Durchsichtig})"; > > I get error messages from the mpost run. So it seems that metaobj and > \MPcolor don't like each other. > Any ideas how to circumvent this problem? > > Regards, > Eckhart