From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15757 Path: main.gmane.org!not-for-mail From: Hans Hagen Outside Newsgroups: gmane.comp.tex.context Subject: Re: metaobj and transparent colors with \MPcolor Date: Fri, 23 Jul 2004 11:38:28 -0700 Sender: ntg-context-bounces@ntg.nl Message-ID: <41015B24.6090807@wxs.nl> 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090607935 32403 80.91.224.253 (23 Jul 2004 18:38:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2004 18:38:55 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 23 20:38:39 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 1Bo4wI-0000Yg-00 for ; Fri, 23 Jul 2004 20:38:38 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AB1801277C; Fri, 23 Jul 2004 20:38:37 +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 14554-10; Fri, 23 Jul 2004 20:38:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 248541277D; Fri, 23 Jul 2004 20:38:35 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 045731277D for ; Fri, 23 Jul 2004 20:38:34 +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 14486-06 for ; Fri, 23 Jul 2004 20:38:33 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 9D3071277C for ; Fri, 23 Jul 2004 20:38:33 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i6NIcSvo002415 for ; Fri, 23 Jul 2004 20:38:28 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 240EE1ACAF; Fri, 23 Jul 2004 20:38:33 +0200 (CEST) Original-Received: from [127.0.0.1] (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id 1DA211856D for ; Fri, 23 Jul 2004 18:38:31 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4100DE3C.90609@seznam.cz> X-Virus-Scanned: clamd / ClamAV version 0.75, clamav-milter version 0.75 on mailrelay01 X-Virus-Status: Clean 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:15757 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15757 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. > > 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? only things that are needed in btex ... etex or textext(..) need to be put into \startMPenvironment, so in your case the color def can stay outside the env. > 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})"; > can you try fillcolor \MPcolor{...} or maybe color xxxx ; xxxx := \MPcolor{...} ; fillcolor(xxxx) ; >> >> 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 > > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > ================================================================ > Deze e-mail is door E-mail VirusScanner van Planet Internet > gecontroleerd op virussen. > Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst > waar op wordt gecontroleerd. > > > -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------