From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21443 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: try compiling Tex showcase source : program_sample.tex Date: Mon, 18 Jul 2005 00:35:04 +0200 Message-ID: <42DADD18.4070109@wxs.nl> References: <4283C083.6050604@free.fr> <42DA8B90.6090004@creutzig.de> 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: 7bit X-Trace: sea.gmane.org 1121639687 7664 80.91.229.2 (17 Jul 2005 22:34:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2005 22:34:47 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 18 00:34:46 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 1DuHiZ-0005Uc-6d for gctc-ntg-context-518@m.gmane.org; Mon, 18 Jul 2005 00:34:39 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 32E841280F; Mon, 18 Jul 2005 00:34:38 +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 24841-06; Mon, 18 Jul 2005 00:34:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B213C12806; Mon, 18 Jul 2005 00:34:33 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 06EA912806 for ; Mon, 18 Jul 2005 00:34:33 +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 24990-03 for ; Mon, 18 Jul 2005 00:34:32 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 2076F12804 for ; Mon, 18 Jul 2005 00:34:31 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j6HMYQoa023033 for ; Mon, 18 Jul 2005 00:34:26 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 672641A19D; Sun, 17 Jul 2005 23:51:22 +0200 (CEST) Original-Received: from [10.100.1.52] (unknown [10.100.1.52]) by server-1.pragma-net.nl (Postfix) with ESMTP id 2182C17AEB for ; Sun, 17 Jul 2005 21:51:21 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <42DA8B90.6090004@creutzig.de> X-Virus-Scanned: ClamAV 0.86.1/982/Sun Jul 17 14:45:12 2005 on mailrelay02 X-Virus-Status: Clean 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:21443 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21443 Christopher Creutzig wrote: > 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 > following code: > > > \setupcolors[state=start] > > \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=bgnd] > > \startuseMPgraphic{brighten} > StartPage; > fill Field[Text][Text] enlarged 2pt > withcolor transparent(1, 0.5, white); > BoundPageAreas; > \stopuseMPgraphic > > \defineoverlay[brighten][\useMPgraphic{brighten}] > > \setupbackgrounds[text][background=brighten,backgroundoffset=2pt] > > \starttext > > \input tufte > > \stoptext > > > I'm getting a displaced background this way (leaving the > backgroundoffset out does not help), but I'm sure someone will be able > to tell us the secret incantation to fix that. That's because you operate on a page (btw, it's StartPage ... StopPage); In this case you can better use: \startuseMPgraphic{brighten} fill OverlayBox enlarged 2pt withcolor transparent(1, 0.5, white); \stopuseMPgraphic ----------------------------------------------------------------- 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 -----------------------------------------------------------------