From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31690 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: overlay page background missing Date: Thu, 2 Nov 2006 18:15:06 +0100 Message-ID: <6faad9f00611020915yb938e98gb637871dd897337a@mail.gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162487754 9269 80.91.229.2 (2 Nov 2006 17:15:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Nov 2006 17:15:54 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 02 18:15:47 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GfgA3-0008CH-MA for gctc-ntg-context-518@m.gmane.org; Thu, 02 Nov 2006 18:15:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9CA9A1FE79; Thu, 2 Nov 2006 18:15:26 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14065-04; Thu, 2 Nov 2006 18:15:17 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0B69E1FD8A; Thu, 2 Nov 2006 18:15:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DE7DB1FDCC for ; Thu, 2 Nov 2006 18:15:14 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14335-05 for ; Thu, 2 Nov 2006 18:15:08 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by ronja.ntg.nl (Postfix) with SMTP id 05C1E1FD5C for ; Thu, 2 Nov 2006 18:15:07 +0100 (CET) Original-Received: by nf-out-0910.google.com with SMTP id d4so122532nfe for ; Thu, 02 Nov 2006 09:15:07 -0800 (PST) Original-Received: by 10.82.114.3 with SMTP id m3mr257100buc.1162487706484; Thu, 02 Nov 2006 09:15:06 -0800 (PST) Original-Received: by 10.82.138.15 with HTTP; Thu, 2 Nov 2006 09:15:06 -0800 (PST) Original-To: "mailing list for ConTeXt users" In-Reply-To: Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31690 Archived-At: 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