From: "Paul Jones" <shagreel@gmail.com>
Subject: positioning a watermark
Date: Tue, 29 Aug 2006 16:58:57 -0400 [thread overview]
Message-ID: <f35545860608291358wb90dd06tad7f3fdbfa52eb13@mail.gmail.com> (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
reply other threads:[~2006-08-29 20:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f35545860608291358wb90dd06tad7f3fdbfa52eb13@mail.gmail.com \
--to=shagreel@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).