From: Christopher Creutzig <christopher@creutzig.de>
Subject: Re: Re: try compiling Tex showcase source : program_sample.tex
Date: Sun, 17 Jul 2005 18:47:12 +0200 [thread overview]
Message-ID: <42DA8B90.6090004@creutzig.de> (raw)
In-Reply-To: <4283C083.6050604@free.fr>
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.
Strange thing is – I had tried that a while ago and the transparency
was simply lost. (Right now, the numbers must be different depending on
whether you put the thing in front of an MP graphic or in front of a
plain color background.) If that happens to you, try putting both
graphics into the same stack of backgrounds, as in
\setupbackgrounds[page][background={bgnd,brighten}]
As a last resort, you could of course join the code into one MP graphic.
Christopher
next prev parent reply other threads:[~2005-07-17 16:47 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 [this message]
2005-07-17 22:35 ` Hans Hagen
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=42DA8B90.6090004@creutzig.de \
--to=christopher@creutzig.de \
--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).