From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13359 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: special _______________________ headertexts Date: Fri, 19 Sep 2003 09:39:16 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <5.2.0.9.1.20030919093843.012e6f40@server-1> References: <000501c37e7b$f24262e0$0500a8c0@best> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1063969715 14242 80.91.224.253 (19 Sep 2003 11:08:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2003 11:08:35 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Fri Sep 19 13:08:33 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A0J7p-0001O7-00 for ; Fri, 19 Sep 2003 13:08:33 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id EEA3F10B34; Fri, 19 Sep 2003 13:08:28 +0200 (MEST) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id 65D3E10B45 for ; Fri, 19 Sep 2003 12:50:02 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h8JAnu012547 for ; Fri, 19 Sep 2003 12:49:56 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id E27BE1FBD6; Fri, 19 Sep 2003 12:49:49 +0200 (CEST) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 3094A17D68 for ; Fri, 19 Sep 2003 10:49:46 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: ntg-context@ntg.nl In-Reply-To: <000501c37e7b$f24262e0$0500a8c0@best> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13359 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13359 At 09:01 19/09/2003 +0200, you wrote: >Hi! > >As usually chick got a problem which seems to have easy answer. > >Let's say I want to set header/footer text which has the following order: > > chaptername _____________________________ pagenumber > >I tried > > \setupheadertexts[\thinrule] > \setupheadertexts[chapter][pagenumber][pagenumber][chapter] > >but that is not what I really need. Chaptername and pagenumber are >underlined by thinrule and I want to separate thinrule and text with given >glue/kern. >I hardly try to avoid construction such as: > > \setupheadertexts[\ifodd\pageno\line{\chaptername \hrulefill >\pagenumber}\else...\fi] > >where \chaptername is a previously defined reference to chapter title... >Is there any other way to do that? I'm sure there is... simple way: \setupheadertexts[\hbox to \hsize{\getmarking[chapter]\hrulefill\pagenumber}] clever way: \startsetups[left header] \hbox to \hsize \bgroup \getmarking[chapter] \quad \hrulefill \quad \pagenumber \egroup \stopsetups \startsetups[right header] \hbox to \hsize \bgroup \pagenumber \quad \hrulefill \quad \getmarking[chapter] \egroup \stopsetups \setuppagenumbering [alternative=doublesided] \setupheadertexts [] \setupheadertexts [\setups{left header}] [] [] [\setups{right header}] % prettier way \startsetups[left header] \hbox to \hsize \bgroup \doiftext{\quad \getmarking[chapter]} \hrulefill \quad \pagenumber \egroup \stopsetups \startsetups[right header] \hbox to \hsize \bgroup \pagenumber \hrulefill \quad \doiftext{\quad \getmarking[chapter]} \egroup \stopsetups \starttext \chapter{test} \input ward \chapter{test} \input ward \chapter{test} \input ward \stoptext ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------