From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80226 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:31:50 +0100 Message-ID: References: <6C558222-1692-4EF6-802D-D9A114ECC7BA@stien.de> <20130112142303.GI31752@homerow> 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="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358001128 10566 80.91.229.3 (12 Jan 2013 14:32:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 14:32:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 12 15:32:24 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 1Tu289-0004bN-O2 for gctc-ntg-context-518@m.gmane.org; Sat, 12 Jan 2013 15:32:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 708DA101E8; Sat, 12 Jan 2013 15:32:01 +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 oO5zdZujL1Sl; Sat, 12 Jan 2013 15:31:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CCA4E101E5; Sat, 12 Jan 2013 15:31:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 16EBE101E5 for ; Sat, 12 Jan 2013 15:31:55 +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 3xukcxZYYhKv for ; Sat, 12 Jan 2013 15:31:54 +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 5396A101E3 for ; Sat, 12 Jan 2013 15:31:54 +0100 (CET) Original-Received: from mail-bk0-f48.google.com (mail-bk0-f48.google.com [209.85.214.48]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0CEVp7a000433 for ; Sat, 12 Jan 2013 15:31:51 +0100 Original-Received: by mail-bk0-f48.google.com with SMTP id jc3so1352614bkc.35 for ; Sat, 12 Jan 2013 06:31:51 -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=rj+4YUjwMjco4rQ7fzHxkpxGOnJpLBaonX91Iha4DIg=; b=c5mgCeNVPCszyXXoGrKYVu2QfFjkW4gTPzrB3sN+aQPrGoNl3faHegs1GdWk7Oigss 3NQV9XqC1FAWCtTn8saksfPP/RAmgKdTgNhFD6QnsHgl6FEiD1EDPKtH/Ne+/5rA/dd1 A792ce3eFjT79URezCDQsPF15HneXuixLwV3XlMhb8r0ymQvibrqTC0t5HJauCf6Bkd9 zm+slNPDlhBT+c8Yr/BoczC+lhbEaKJ79b25uk/vYq3Mswhh7Tn2Dk1+YTGGzi+9f52j Nk2+V6Q6Yz7YA914GTPD0C0XQAHRt/y/1wF4HnUjtOzu7Y3rIdWxu+EJMSQNFlYA8HJG LVYQ== X-Received: by 10.204.8.18 with SMTP id f18mr38886091bkf.82.1358001111162; Sat, 12 Jan 2013 06:31:51 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbe61ec.pool.mediaWays.net. [77.190.97.236]) by mx.google.com with ESMTPS id y11sm6300578bkw.8.2013.01.12.06.31.50 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 12 Jan 2013 06:31:50 -0800 (PST) In-Reply-To: <20130112142303.GI31752@homerow> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.48; 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: 0NIL2vPlw - 47ab8a5b075a - 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:80226 Archived-At: Am 12.01.2013 um 15:23 schrieb Marco Patzer : > On 2013=9601=9613 Malte Stien wrote: > = >> 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? > = > You can use the `command` key to hook in a custom macro which does > the placement. > = > \setuppagenumbering > [alternative=3Ddoublesided, > location=3D{header, margin}, > style=3Dbold, > command=3D\PageNumberCommand] > = > \starttexdefinition PageNumberCommand #pageno > \signalrightpage > \doifrightpageelse > {\rightaligned{#pageno}} > {\leftaligned{#pageno}} > \stoptexdefinition > = > Marco When you=92re in the header you can just use \doifoddpageelse to set differ= ent values for left/right pages, \signalrightpage is only necessary for text *i= n* the document. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________