From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58938 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: Help wanted for layers and pagebackgrounds Date: Thu, 20 May 2010 13:17:56 +0200 Message-ID: <43A3F671-823B-4C0E-A57D-562143EADDC3@gmail.com> References: <41EE1BC8-D5A3-4F7A-AE79-674B8E454CE1@gmail.com> <4BF4EF6A.9020607@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1274354295 18079 80.91.229.12 (20 May 2010 11:18:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 May 2010 11:18:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 20 13:18:13 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OF3lU-0001aB-Ow for gctc-ntg-context-518@m.gmane.org; Thu, 20 May 2010 13:18:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33972C9A9C; Thu, 20 May 2010 13:18:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0+d-EkwUEmpd; Thu, 20 May 2010 13:18:04 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90D5FC9AFD; Thu, 20 May 2010 13:18:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 13BC0C9AFD for ; Thu, 20 May 2010 13:18:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4b84LLExw11M for ; Thu, 20 May 2010 13:17:58 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by balder.ntg.nl (Postfix) with ESMTP id 15485C9A9C for ; Thu, 20 May 2010 13:17:58 +0200 (CEST) Original-Received: by wyb33 with SMTP id 33so488205wyb.14 for ; Thu, 20 May 2010 04:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=Owa0z7VSedoP6ZvB/Oco2vAsWEjV6hASNO+D7Wbo3mA=; b=oyvqB5yaNSviS6dq/O+Jf5nGqfgSZ/w1P0pydyTRIE+OGxoouD068Tj/pODQRisi+m ate4zV6xYGRXcdQYokucHukDeRkJZhg7jZQTDNO6abPnzwwBdHwAFqMVskAxo740HqJC FsdNl29PLKmQPZQLjD5rbslVlnpHUl6XdotFc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=lEIn5GKlwk50FY8jo5PATwE01pq5JLkTH3v31jlvCzSsbgcm6RrjGMS0LFkQHyrAt4 /n8JalBwc2VbjL2S5IfMPd3qh+Zji+3+AcEOcRaWqC0uqVdZCyj5IfWFaHsyXij7iiFz 5khzOJvRWHPCwh4T/G7wT2tkxFr7MeW2QlOF4= Original-Received: by 10.227.69.200 with SMTP id a8mr9218205wbj.30.1274354277851; Thu, 20 May 2010 04:17:57 -0700 (PDT) Original-Received: from mackavian.math.uvsq.fr (MacKavian.math.uvsq.fr [193.51.32.142]) by mx.google.com with ESMTPS id u36sm14158207wbv.12.2010.05.20.04.17.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 20 May 2010 04:17:56 -0700 (PDT) In-Reply-To: <4BF4EF6A.9020607@googlemail.com> X-Mailer: Apple Mail (2.1078) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:58938 Archived-At: Thanks Wolfgang! Somehow I overlooked the two subtleties you are teaching me here: > \definelayer[Number][width=\paperwidth,height=\paperheight,doublesided=yes] in which the option doublesided=yes, helps and the options [odd] or [even] in \setlayer: > \setlayer[Number][odd] > \setlayer[Number][even] I will wikify this later this weekend. Best regards: OK On 20 mai 2010, at 10:14, Wolfgang Schuster wrote: > Good example! > > > \setupcolors[state=start] > > \setuppagenumbering[location=footer,alternative=doublesided] > > \definelayer[Number][width=\paperwidth,height=\paperheight,doublesided=yes] > > \define[1]\myNumber > {\setlayer[Number][odd] > [preset=righttop,voffset=45mm,hoffset=3mm] > {\offset[location=rt,rightoffset=-3mm] > {\tlap{\color[darkgreen]{\scale[height=30mm,width=22mm]{\ss#1}}}}}% > \setlayer[Number][even] > [preset=lefttop,voffset=45mm,hoffset=25mm] > {\offset[location=tl,leftoffset=-3mm] > {\tlap{\color[darkgreen]{\scale[height=30mm,width=22mm]{\ss#1}}}}}} > > \setupbackgrounds[page][background=Number] > > \starttext > \dorecurse{4}{\myNumber{#1}\input knuth \page} > \dorecurse{4}{\myNumber{#1}\dorecurse{6}{\input knuth }\page} > \dorecurse{4}{\myNumber{#1}\dorecurse{3}{\input knuth }\page} > \stoptext > > Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________