From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80224 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Page Numbers on Outer Edge of Outer Margin Date: Sat, 12 Jan 2013 15:13:09 +0100 Message-ID: <49577A0C-5ABF-4C04-8D83-736879870306@gmail.com> References: <6C558222-1692-4EF6-802D-D9A114ECC7BA@stien.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358000000 838 80.91.229.3 (12 Jan 2013 14:13:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 14:13:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 12 15:13:37 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tu1pz-0007hU-R6 for gctc-ntg-context-518@m.gmane.org; Sat, 12 Jan 2013 15:13:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B02A0101EB; Sat, 12 Jan 2013 15:13:15 +0100 (CET) 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 emvy2hXofjiB; Sat, 12 Jan 2013 15:13:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 415C9101E6; Sat, 12 Jan 2013 15:13:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1E6ED101E6 for ; Sat, 12 Jan 2013 15:13:13 +0100 (CET) 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 KYm5FFUfkUzY for ; Sat, 12 Jan 2013 15:13:12 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 58CF6101E3 for ; Sat, 12 Jan 2013 15:13:11 +0100 (CET) Original-Received: from mail-bk0-f49.google.com (mail-bk0-f49.google.com [209.85.214.49]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0CEDAgr026762 for ; Sat, 12 Jan 2013 15:13:11 +0100 Original-Received: by mail-bk0-f49.google.com with SMTP id jm19so1356093bkc.36 for ; Sat, 12 Jan 2013 06:13:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=/+89tAwsnYzy9Aeq7nvUrL7BJ0lwlJTvJ51D7BXtaGw=; b=qvDWAImeFL9H6vfH0NMlLXDi5kY6g1xa15d29sj8XoO+d+mJZz7UmGyWGiGPnzmTxi abRDyoMV8KDJT+1fmGvlaWdZLCVbGcFvCIyNZRgN56VuNe/NtjCCVeQABUt1JhS94Ul+ dEC8KIPkHpzIG/mvVFziFMlW7sv9/mPp5NH8wuuxRwogwSabxEsTIfnQ+zkw8sAcwQet mRQYPdXI5VB1m1WKeRdsEYP5yS/0ey3rVfdIpdWF3/wFjv6urkeuKCu7pBBUSXvtfAfT THg/qR1RQrO1ef88ypDy6Xi59u+AnqTDnhrHritRBfQnmMUf4lVOC89Z9JOkBvgKOibe yy1Q== X-Received: by 10.204.149.12 with SMTP id r12mr37220306bkv.30.1357999990812; Sat, 12 Jan 2013 06:13:10 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbe61ec.pool.mediaWays.net. [77.190.97.236]) by mx.google.com with ESMTPS id q22sm6318924bkv.16.2013.01.12.06.13.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 12 Jan 2013 06:13:10 -0800 (PST) In-Reply-To: <6C558222-1692-4EF6-802D-D9A114ECC7BA@stien.de> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.49; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NIL2dbDt - f5c9862eac3a - 20130112 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80224 Archived-At: Am 12.01.2013 um 14:49 schrieb Malte Stien : > Hi, > > I have a rather wide, 41mm, outer margin in a manual and I am trying to put the page number into the margin like so: > > \setuppagenumbering[ > alternative=doublesided, > location={header, margin}, > style=bold, > ] > > The trouble is that the page number is only a few millimetres wide and gets positioned on the inside edge of my outside margin. Hence, it does not end up close enough to the edge of the page. I guess, I would like to right-align it 4mm from the edge of a right-hand page and left-align it by the same amount from the edge of a left-hand page. Is that doable? Method 1: \setuppagenumbering[alternative=doublesided,location=] \definelayer[pagenumber][doublesided=yes,width=\paperwidth,height=\paperheight] \startsetups[pagenumber] \setlayer[pagenumber][even][preset=lefttop, x=4mm,y=\topspace]{\strut\bf\userpagenumber} \setlayer[pagenumber][odd] [preset=righttop,x=4mm,y=\topspace]{\strut\bf\userpagenumber} \stopsetups \setupbackgrounds[page][background=pagenumber,setups=pagenumber] \starttext \showframe \dorecurse{10}{\dontleavehmode\page} \stoptext Method 2: \setuppagenumbering[alternative=doublesided,location=] \setupheadertexts [margin] [][\rightaligned{\bf\userpagenumber}] [\leftaligned{\bf\userpagenumber}][] \setupheader[margin][align=outer] \starttext \showframe \dorecurse{10}{\dontleavehmode\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 ___________________________________________________________________________________