VnPenguin wrote:
Hi all,
I would like to make a cover for my document (print mode) like the one
of minstall.pdf or mlabels.pdf.
Anyone could give me some examples please.
\setupcolors[state=start]
\startuseMPgraphic{cover}
StartPage ;
fill Page withcolor .5green ;
path p ; p := unitcircle randomized .1 xsized(PaperWidth-1cm) ;
fill p shifted -center p shifted center Page withcolor red ;
StopPage ;
\stopuseMPgraphic
\defineoverlay[cover][\useMPgraphic{cover}]
\starttext
\setupbackgrounds[page][background=cover]
\startstandardmakeup
\raggedcenter
\vfill \definedfont[SerifBold at 48pt]\setstrut \strut Penguins in Vietnam
\blank[2*big] \definedfont[SerifBold at 24pt]\setstrut \strut A Very Short
Story
\vfill
\stopstandardmakeup
\setupbackgrounds[page][background=]
\input tufte
\stoptext
an alternative is to use a layer and position text using the layer mechanism
Hans
-----------------------------------------------------------------
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
-----------------------------------------------------------------
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context