Am 08.04.2009 um 01:10 schrieb Jos van Gisbergen:
Hi,
I'm experimenting with context for a few weeks now and am impressed
by its possibilities and clean results. However, everything I want
to try
out seems to take a lot of trial and error to get right.
Especially creating a titlepage for a book, a backgound picture
covering
the entire page with some text on it -- I cannot for the life of me
figure
out how it's done. Even after googling many hours and perusing the
manuals. I've tried permutations of layers, overlays and
setupbackgrounds
within and without {start/stop}standardmakeup -- nothing quite does
it.
Can somebody please show me a simple example of how to create
a book cover with a picture covering the entire page and a title
text on it?
\starttext
\defineoverlay[coverimage][\ifnum\realpageno=\plusone
\overlayfigure{cover}\fi]
\setupbackgrounds[page][background=coverimage]
\startstandardmakeup
bla bla bla
\stopstandardmakeup
\input knuth
\stoptext
or
\starttext
\defineoverlay[coverimage][\ifnum\realpageno=\plusone
\overlayfigure{cover}\fi]
\definelayer[covertext][width=\paperwidth,height=\paperheight]
\setupbackgrounds[page][background={coverimage,covertext}]
\startstandardmakeup
\setlayer[covertext][x=3cm,y=6cm]{bla bla bla}
\stopstandardmakeup
\input knuth
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________