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 -----------------------------------------------------------------