[NTG-context] overlay page background missing
Paul Jones
shagreel at gmail.com
Thu Nov 2 17:53:02 CET 2006
Hello all,
I am trying to put together a wedding book. I would like a nice
watermark behind the text on each page. Left page containing the word
'together', and right page containing the word 'forever'. I can get
this done with an overlay, but it is always centered in the page. So
after reading some threads about layers in overlays I thought this
might work. Putting a layer into an overlay does give me the ability
to positiong the words, but I can no longer get them to show up on all
of the pages. Am I doing this in a resonable way? Why did the
setupbackgrounds stop working when I put the layer into the overlay?
Much thanks,
Paul
%output=pdf
\setuppagenumbering[alternative=doublesided]
\setupcolors[state=start]
\setupbackgrounds[page][background={WatermarkOverlay}]
\startsetups WatermarkSetup
\doifoddpageelse
{\framed[frame=off,foregroundcolor=gray]
{\scale[sx=12,sy=12]
{\rotate[rotation=20.0]{forever}}}}
{\framed[frame=off,foregroundcolor=gray]
{\scale[sx=12,sy=12]
{\rotate[rotation=20.0]{together}}}}
\stopsetups
\definelayer[WatermarkLayer]
\setlayer[WatermarkLayer][hoffset=-4cm,voffset=12cm]{\setups{WatermarkSetup}}
\defineoverlay[WatermarkOverlay][{\placelayer[WatermarkLayer]}]
\starttext
\framed[height=\textheight, width=\textwidth,
background={WatermarkOverlay}, frame=on]{overlay frame}
\chapter{first} \dorecurse{10}{\input tufte }
\chapter{second} \dorecurse{10}{\input davis }
\chapter{third} \dorecurse{10}{\input zapf }
\stoptext
More information about the ntg-context
mailing list