overlay page background missing
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
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? Mojca
On 11/2/06, Mojca Miklavec
Does \setupheadertexts[\setups{WatermarkSetup}] help?
Mojca
That did get the overlay to display on every page, but I am planning on using the setupheadertexts to display other headers on the page. I also lose the ability to position the layer by placing the setup directly in the header. I was hoping that by placing a layer into an overlay I would get the best of both commands. This does give me some ideas for other alternatives as well...back to the lab for more experiments. Thanks, paul
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Mojca Miklavec
-
Paul Jones