Hello,
I am trying to create alternating watermarks behind the
text of a book on odd and even pages. I was able to get this working
with overlays fine, except that I could not figure out how to position
them. (I would like them in the bottom outside corners) Using layers
I could get them to repeat across pages if I
\setupbackgrounds[text][text], but only the text on the odd pages
showed up. I would really like to use \setupbackgrounds[page] so my
offsets are from the edge of the page. So I guess I have a couple of
questions.
Is it possible to position overlays?
Is it possible to repeat layers using [page]?
Any guess as to why only the odd pages showed the watermark in the code below?
Thanks for any help.
paul
%output=pdf
\setuppagenumbering
[alternative=doublesided]
\setupcolors
[state=start]
\setupbackgrounds
[text][text]
[background="">=repeat]
\definelayer
[watermark]
[position=yes]
\startsetups watermark
\doifoddpageelse
{\framed[frame=off,foregroundcolor=gray]{\scale[sx=10,sy=10]{\rotate[rotation=0.0]{forever}}}}
{\framed[frame=off,foregroundcolor=gray]{\scale[sx=10,sy=10]{\rotate[rotation=
0.0]{together}}}}
\stopsetups
\starttext
\setlayer[watermark][hoffset=1cm,voffset=1cm]{\setups{watermark}}
\chapter{first} \dorecurse{10}{\input tufte }
\chapter{second} \dorecurse{10}{\input davis }
\chapter{third} \dorecurse{10}{\input zapf }
\chapter{fourth} \dorecurse{10}{\input bryson }
\stoptext
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context