From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15178 Path: main.gmane.org!not-for-mail From: Michal Kvasnicka Newsgroups: gmane.comp.tex.context Subject: Re: The name of the current section? Date: Thu, 20 May 2004 16:47:30 +0000 Sender: ntg-context-admin@ntg.nl Message-ID: <40ACE122.1050605@econ.muni.cz> References: <40AB4DD1.5020000@econ.muni.cz> <40ABB503.4060304@boede.nl> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1085064734 12684 80.91.224.253 (20 May 2004 14:52:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 May 2004 14:52:14 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu May 20 16:52:04 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 1BQotw-0000J0-00 for ; Thu, 20 May 2004 16:52:04 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id C972E10B2A; Thu, 20 May 2004 16:47:29 +0200 (MEST) Original-Received: from anor.ics.muni.cz (anor.ics.muni.cz [147.251.4.35]) by ref.ntg.nl (Postfix) with ESMTP id 0961910ACE for ; Thu, 20 May 2004 16:45:13 +0200 (MEST) Original-Received: from merkur.econ.muni.cz (merkur.econ.muni.cz [147.251.189.10]) by anor.ics.muni.cz (8.12.1/8.12.1) with ESMTP id i4KEngAm030233 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 20 May 2004 16:49:42 +0200 Original-Received: from econ.muni.cz (ke-kvasnicka.econ.muni.cz [147.251.224.167]) by merkur.econ.muni.cz (8.12.3/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id i4KEngLO024347 for ; Thu, 20 May 2004 16:49:42 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en, cs Original-To: ntg-context@ntg.nl X-Muni-Spam-TestIP: 147.251.189.10 X-Muni-Virus-Test: Clean 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:15178 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15178 Hi. Many thanks for your kind answer. > \setuppagenumbering[alternative=doublesided, > location={header,marginedge}] > \setupheadertexts > [section][{\headnumber[section]}][chapter][{\headnumber[chapter]}] Your code is rather nice (I have learned one nice trick from it), but it doesn't what I need. I want all the header stuff to go just separated by spaces, not on different sides of the header. Something like this 117_This_is_an_chapter_name_(chap._5)___________________________________________________________________ where "_" stands for a space. Well, with your trick I could possibly to it with some \hfill, but it's a rather tricky solution. Moreover, I may need the name of a current chapter and section in the document itself. I guess there must be some system solution for such a case in the ConTeXt (I think there is almost everything in it.) :-) Of course, as the last instance I can redefine \chapter and \section in a way like this \let\OriChapter=\chapter \def\chapter#1{\def\currentchaptername{#1}\chapter{#1}} but I don't want to do it -- it is dirty and involves more programming to cover crossreferences. Any more hint how to get the name of current chapter/section? With best regards Michal Kvasnicka