From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21425 Path: news.gmane.org!not-for-mail From: Christopher Creutzig Newsgroups: gmane.comp.tex.context Subject: Re: Re: try compiling Tex showcase source : program_sample.tex Date: Sun, 17 Jul 2005 18:47:12 +0200 Message-ID: <42DA8B90.6090004@creutzig.de> References: <4283C083.6050604@free.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1121619088 6337 80.91.229.2 (17 Jul 2005 16:51:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2005 16:51:28 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 17 18:51:26 2005 Return-path: 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 1DuCM8-00044R-Re for gctc-ntg-context-518@m.gmane.org; Sun, 17 Jul 2005 18:51:08 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 84B501278A; Sun, 17 Jul 2005 18:51:08 +0200 (CEST) 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 20815-04; Sun, 17 Jul 2005 18:51:07 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 446EC1278D; Sun, 17 Jul 2005 18:47:31 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 61C1D1278D for ; Sun, 17 Jul 2005 18:47:29 +0200 (CEST) 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 20779-02 for ; Sun, 17 Jul 2005 18:47:28 +0200 (CEST) Original-Received: from mailgate.uni-paderborn.de (mailgate.uni-paderborn.de [131.234.22.32]) by ronja.ntg.nl (Postfix) with ESMTP id 6B98C1278A for ; Sun, 17 Jul 2005 18:47:28 +0200 (CEST) Original-Received: from p548b35ea.dip0.t-ipconnect.de ([84.139.53.234] helo=[192.168.1.3]) by mailgate.uni-paderborn.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.43) id 1DuCJ1-0004TT-68 for ntg-context@ntg.nl; Sun, 17 Jul 2005 18:47:55 +0200 User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4283C083.6050604@free.fr> X-UNI-PB_FAK-EIM-MailScanner-Information: Please see http://imap.uni-paderborn.de for details X-UNI-PB_FAK-EIM-MailScanner: Found to be clean X-UNI-PB_FAK-EIM-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.208, required 4, AUTH_EIM_USER -5.00, RCVD_IN_NJABL_DUL 1.66, RCVD_IN_SORBS_DUL 0.14) X-MailScanner-From: christopher@creutzig.de 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21425 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21425 olivier Turlier wrote: > I was trying to compile Program-sample.tex because I find the > transparent white frame over the grey background very nice to see for a > pure electronic pdf. In the same range, the vit Zyka font demo catalog Sorry for not answering for such a long time. Please try the=20 following code: \setupcolors[state=3Dstart] \startuseMPgraphic{bgnd} StartPage; linear_shade(llcorner Page -- urcorner Page -- ulcorner Page -- cycle, 2, 0.2[red,green], 0.8[red,green]); linear_shade(llcorner Page -- lrcorner Page -- urcorner Page -- cycle, 2, 0.2[green,red], 0.8[green, red]); BoundPageAreas; \stopuseMPgraphic \defineoverlay[bgnd][\useMPgraphic{bgnd}] \setupbackgrounds[page][background=3Dbgnd] \startuseMPgraphic{brighten} StartPage; fill Field[Text][Text] enlarged 2pt withcolor transparent(1, 0.5, white); BoundPageAreas; \stopuseMPgraphic \defineoverlay[brighten][\useMPgraphic{brighten}] \setupbackgrounds[text][background=3Dbrighten,backgroundoffset=3D2pt] \starttext \input tufte \stoptext I'm getting a displaced background this way (leaving the=20 backgroundoffset out does not help), but I'm sure someone will be able=20 to tell us the secret incantation to fix that. Strange thing is =96 I had tried that a while ago and the transparency=20 was simply lost. (Right now, the numbers must be different depending on=20 whether you put the thing in front of an MP graphic or in front of a=20 plain color background.) If that happens to you, try putting both=20 graphics into the same stack of backgrounds, as in \setupbackgrounds[page][background=3D{bgnd,brighten}] As a last resort, you could of course join the code into one MP graphic. Christopher