From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58923 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Help wanted for layers and pagebackgrounds Date: Thu, 20 May 2010 10:14:34 +0200 Message-ID: <4BF4EF6A.9020607@googlemail.com> References: <41EE1BC8-D5A3-4F7A-AE79-674B8E454CE1@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1274343320 12471 80.91.229.12 (20 May 2010 08:15:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 May 2010 08:15:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 20 10:15:19 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 1OF0uU-0003Zj-4T for gctc-ntg-context-518@m.gmane.org; Thu, 20 May 2010 10:15:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B211CC9A9C; Thu, 20 May 2010 10:15:17 +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 J4TJ17d4rbY2; Thu, 20 May 2010 10:15:17 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C53E6C9A63; Thu, 20 May 2010 10:14:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A4332C9A8A for ; Thu, 20 May 2010 10:14:49 +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 wcZJ2HwejWZe for ; Thu, 20 May 2010 10:14:38 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by balder.ntg.nl (Postfix) with ESMTP id 3E846C9A63 for ; Thu, 20 May 2010 10:14:37 +0200 (CEST) Original-Received: by fxm13 with SMTP id 13so1652992fxm.14 for ; Thu, 20 May 2010 01:14:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=+lmQRBXK+mUOUsmFKaUOMmD9XT/7SurMrX4fhwjDn0I=; b=CVargFBQI16Ggha3DMEtPPM/b5baqnlSuA2opoe6a/2h3yu9ORuR+LNkk7V5XXtOkz 3107/bc/xd2hp/idaILol/9HQEBcUSpzgHXxbOlPNZLeoFgF5lAOU3I32Nz0ijwZGPS2 7nHxUSbqhg9PkmFh1uefqpPpvX6UkXfAG7gm8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=ptAefKdsgCp3u78Z93vSaIqOs8vnboJtI6pl+Pl3ksYxFYdwt6FtmV2vG7wrinr9Y9 jJPbXIq9Xy7qyhGQgwZYo4E8cZVO/4CADlxNc598buQonW25FdhPxVFvjNYVt28hAhXW Abzr5owxcpERyBYqe7qZp3vDp32i6b9+pcqRk= Original-Received: by 10.103.4.25 with SMTP id g25mr606628mui.59.1274343276304; Thu, 20 May 2010 01:14:36 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B29397B.dip.t-dialin.net [91.41.57.123]) by mx.google.com with ESMTPS id 24sm27914400bkr.12.2010.05.20.01.14.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 20 May 2010 01:14:35 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: <41EE1BC8-D5A3-4F7A-AE79-674B8E454CE1@gmail.com> 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:58923 Archived-At: Am 19.05.10 18:21, schrieb Otared Kavian: > Dear all, > > I need to have a special layout, in which a number (which is not a page number nor a section number or such) is printed in big size on the right when the pagenumber is even (that is on a leftpage) and printed on the left when the pagenumber is odd (that is a rightpage). With the help of examples gleaned here and there in the manuals, I came up with the following minimal example: > > [...] 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 ___________________________________________________________________________________