ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* positioning a watermark
@ 2006-08-29 20:58 Paul Jones
  0 siblings, 0 replies; only message in thread
From: Paul Jones @ 2006-08-29 20:58 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1480 bytes --]

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=watermark,state=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

[-- Attachment #1.2: Type: text/html, Size: 1954 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-29 20:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-29 20:58 positioning a watermark Paul Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).