Mojca Miklavec wrote:
On 11/2/06, Paul Jones wrote:
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
Does \setupheadertexts[\setups{WatermarkSetup}] help?
you can also set a layer's state=repeat ----------------------------------------------------------------- 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 -----------------------------------------------------------------