From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62784 Path: news.gmane.org!not-for-mail From: Andreas Harder Newsgroups: gmane.comp.tex.context Subject: Re: header setting Date: Wed, 20 Oct 2010 21:17:39 +0200 Message-ID: <594A95C8-3211-4E58-A8F4-30E6C11D28F0@uni-koblenz.de> References: <4CBF35B7.5020004@FU-Berlin.DE> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287602286 17774 80.91.229.12 (20 Oct 2010 19:18:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Oct 2010 19:18:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 20 21:18:04 2010 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 1P8eAf-0004sA-7g for gctc-ntg-context-518@m.gmane.org; Wed, 20 Oct 2010 21:17:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5C25DCA760; Wed, 20 Oct 2010 21:17:56 +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 Dtuwf0LE3Ltr; Wed, 20 Oct 2010 21:17:53 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A9AF1CA756; Wed, 20 Oct 2010 21:17:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8528BCA756 for ; Wed, 20 Oct 2010 21:17:52 +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 AoderC2b2uVM for ; Wed, 20 Oct 2010 21:17:41 +0200 (CEST) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 48694CA6F4 for ; Wed, 20 Oct 2010 21:17:41 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9KJHerw021082 for ; Wed, 20 Oct 2010 21:17:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 5B3BD78012E1 for ; Wed, 20 Oct 2010 21:17:40 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16864-10 for ; Wed, 20 Oct 2010 21:17:39 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy aharder@uni-koblenz.de Original-Received: from [192.168.1.112] (95-88-44-57-dynip.superkabel.de [95.88.44.57]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id D2BAE7800DBD for ; Wed, 20 Oct 2010 21:17:39 +0200 (CEST) In-Reply-To: <4CBF35B7.5020004@FU-Berlin.DE> X-Mailer: Apple Mail (2.1081) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.26.64.15; country=DE; region=08; city=Koblenz; latitude=50.3500; longitude=7.6000; http://maps.google.com/maps?q=50.3500,7.6000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0BDl7hEEq - 18da9b143207 - 20101020 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:62784 Archived-At: Am 20.10.2010 um 20:32 schrieb Herbert Voss: > in my example I have set the numbers in the margin. > In fact of using the twoside layout I get the > numbers only for odd pages in the margin. > Is this also possible for the even pages, > just like "header 1.2" instead of "1.2 header"? > > Herbert > > \definepapersize[DE][width=10cm,height=12cm] > \setuppapersize [DE][DE] > \setuplayout[width=8cm,height=10cm] > \setuparranging[doublesided] > \setuppagenumbering[alternative=doublesided] > % \setupheads[alternative=margin,align=outer] \setupheads[command=\MyHeadCMD] \def\MyHeadCMD#1#2% {\ininnermargin{#1} \inframed[width=broad,align=inner,frame=off,offset=none]{#2}} > > \starttext > \chapter{Foo} > \section{A long title} \input knuth > \section{A long title} > \section{A long title} \input knuth > \chapter{Bar} > \section{A long title} \input knuth \section{A long title} \input knuth > \section{A long title} \input knuth \section{A long title} \input knuth > \stoptext Perhaps there is an easier solution, but the above should work too. Regards Andreas ___________________________________________________________________________________ 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 ___________________________________________________________________________________