From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Re: try compiling Tex showcase source : program_sample.tex
Date: Mon, 18 Jul 2005 00:35:04 +0200 [thread overview]
Message-ID: <42DADD18.4070109@wxs.nl> (raw)
In-Reply-To: <42DA8B90.6090004@creutzig.de>
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
-----------------------------------------------------------------
prev parent reply other threads:[~2005-07-17 22:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-12 20:45 olivier Turlier
2005-05-12 21:55 ` Hans Hagen
2005-05-16 17:23 ` Vit Zyka
2005-07-17 16:47 ` Christopher Creutzig
2005-07-17 22:35 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42DADD18.4070109@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).