From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16582 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: setup of headers Date: Mon, 04 Oct 2004 18:35:10 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <41617BBE.1080908@wxs.nl> References: <450FE4F3-15FA-11D9-B9F5-000A95B9ADE2@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1096907739 820 80.91.229.6 (4 Oct 2004 16:35:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Oct 2004 16:35:39 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 04 18:35:18 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CEVny-0007Z6-00 for ; Mon, 04 Oct 2004 18:35:18 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A667D126F8; Mon, 4 Oct 2004 18:35:17 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22678-01; Mon, 4 Oct 2004 18:35:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CB23412778; Mon, 4 Oct 2004 18:35:14 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 42E6412778 for ; Mon, 4 Oct 2004 18:35:14 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22495-06 for ; Mon, 4 Oct 2004 18:35:13 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id A16F5126F8 for ; Mon, 4 Oct 2004 18:35:13 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i94GZ9L0003840 for ; Mon, 4 Oct 2004 18:35:09 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 57CF7309D5; Mon, 4 Oct 2004 18:35:12 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 0B570309D3 for ; Mon, 4 Oct 2004 16:35:11 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <450FE4F3-15FA-11D9-B9F5-000A95B9ADE2@uni-bonn.de> X-Virus-Scanned: ClamAV 0.80rc3/509/Wed Sep 29 11:09:42 2004 clamav-milter version 0.80c on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16582 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16582 Thomas A.Schmitz wrote: > Hi, > > found an old thread in the list archives, Adam Warner and Hans, but > there was no real conclusion. Can this be done in ConTeXt? I want the > following setup for my headers: mirror doublesided, on the even pages > pagenumber leftaligned, chaptertitle midaligned; odd pages sectiontitle > midaligned, pagenumber rightaligned; like so: > > 9______chapter______ || ______section______10 > > If I am not completely mistaken, setupheadertexts takes either one > argument (identical header fo all pages, midaligned) or two (identical > header for all pages, rightaligned/leftaligned) or four (mirroring > even/odd headers, rightaligned/leftaligned). I think what we need here > would be for \setupheadertexts to accept SIX arguments: > > \setupheadertexts[even left][even middle][even right][odd left][odd > middle][odd right] this is the readable way: \showframe \setuppagenumbering[alternative=doublesiddd] \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] \rlap{\pagenumber} \hfill \getmarking[chapter] \hfill \llap{whatever} \stopsetups \startsetups[text b] \rlap{whatever} \hfill \getmarking[section] \hfill \llap{\pagenumber} \stopsetups \starttext \chapter{test chapter} \page \section{test section} \stoptext (it's up to you to submit it into the wiki) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------