From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15169 Path: main.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: The name of the current section? Date: Wed, 19 May 2004 21:26:59 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40ABB503.4060304@boede.nl> References: <40AB4DD1.5020000@econ.muni.cz> 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 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1084994984 5565 80.91.224.253 (19 May 2004 19:29:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 May 2004 19:29:44 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed May 19 21:29:21 2004 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 1BQWki-0005ps-00 for ; Wed, 19 May 2004 21:29:20 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 9492D10B0D; Wed, 19 May 2004 21:24:46 +0200 (MEST) Original-Received: from smtp-out1.xs4all.nl (smtp-out1.xs4all.nl [194.109.24.11]) by ref.ntg.nl (Postfix) with ESMTP id F096B10AF0 for ; Wed, 19 May 2004 21:22:31 +0200 (MEST) Original-Received: from boede.nl (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by smtp-out1.xs4all.nl (8.12.10/8.12.10) with ESMTP id i4JJR05s074076 for ; Wed, 19 May 2004 21:27:00 +0200 (CEST) User-Agent: Mozilla Thunderbird 0.6+ (Windows/20040417) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <40AB4DD1.5020000@econ.muni.cz> 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:15169 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15169 Hi, Humble, I thought that your layout kan be setup with \setupheadertexts[location][left text][right text][left .][right .] \setupoutput[pdftex] \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,12pt] \setuppagenumbering[alternative=doublesided, location={header,marginedge}] \setupheadertexts [section][{\headnumber[section]}][chapter][{\headnumber[chapter]}] %leftpage: [pagenumber] [chapter title] (chap. [chapter number]) %rightpage: [section title] (sec. [section number]) [pagenumber] \starttext \chapter{Cheese} \section{Parmiggiano Reggiano} \blank[15cm] \section{Grana Padano} \blank[15cm] \section{Gruy\`ere} \blank[15cm] \section{Tilsiter} \blank[15cm] \section{Appenzeller} \chapter{Wine} \section{Cabernet Sauvignon} \blank[15cm] \section{Pinot noir} \blank[15cm] \section{M\"uller-Thurgau} \blank[15cm] \section{Chasselat} \stoptext Willi Michal Kvasnicka wrote: > Good evening. > > Is there some command simmilar to \headnumber[section] that would tell > me the name of the current chapter/section/...? > > I want to have the headertext on the left like this: > [pagenumber] [chapter title] (chap. [chapter number]) > and on the right side like this: > [section title] (sec. [section number]) [pagenumber] > where [x] is value of x, e.g. [pagenumber] is the number of the current > page. > > How can I do it? > > Many thanks > Michal Kvasnicka > > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context