From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59435 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: header/footertexts (sectioning) Date: Tue, 8 Jun 2010 16:08:39 +0200 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <201006081608.39294.alan.braslau@cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1276006139 2327 80.91.229.12 (8 Jun 2010 14:08:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Jun 2010 14:08:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 08 16:08:57 2010 connect(): No such file or directory 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 1OLzU9-0000Fz-MX for gctc-ntg-context-518@m.gmane.org; Tue, 08 Jun 2010 16:08:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 17349C9CDD; Tue, 8 Jun 2010 16:08:57 +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 f7zwguAlKBIQ; Tue, 8 Jun 2010 16:08:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 491E9C9BC1; Tue, 8 Jun 2010 16:08:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3FF29C9BC1 for ; Tue, 8 Jun 2010 16:08:50 +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 uItz4b6iOdan for ; Tue, 8 Jun 2010 16:08:45 +0200 (CEST) Original-Received: from oxalide-out.extra.cea.fr (oxalide-out.extra.cea.fr [132.168.224.1]) by balder.ntg.nl (Postfix) with ESMTP id 0B645C9BA6 for ; Tue, 8 Jun 2010 16:08:44 +0200 (CEST) Original-Received: from epeire2.extra.cea.fr (epeire2.extra.cea.fr [132.167.198.32]) by oxalide.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.0) with ESMTP id o58E8i9T030655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 8 Jun 2010 16:08:44 +0200 Original-Received: from orpin2.extra.cea.fr (orpin2.extra.cea.fr [132.167.198.5]) by epeire2.extra.cea.fr (8.14.4/8.14.4) with ESMTP id o58E8im6006667 for ; Tue, 8 Jun 2010 16:08:44 +0200 (envelope-from alan.braslau@cea.fr) Original-Received: from iram-ha-003840.localnet (iram-ha-003840.extra.cea.fr [132.166.25.152]) by orpin2.extra.cea.fr (8.13.8/8.13.8/CEAnet-Intranet-out-1.1) with ESMTP id o58E8hRb011718 for ; Tue, 8 Jun 2010 16:08:43 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.32; KDE/4.4.4; x86_64; ; ) 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:59435 Archived-At: Hello, I am using: \setupfootertexts [chapter] \setupheadertexts [section] \setupheadertexts [][pagenumber] [pagenumber][] % doublesided to place the chapter title in the footer and the section title in the header. (Of course, I also use \setuphead [chapter] [header=nomarking,footer=empty,page=right] \setuphead [part] [header=nomarking,footer=empty,page=right] so that \chapter{} and \part{} begin on an odd page without a text header nor a footer.) However, a \chapter{} may begin with a long introduction (several pages) before seeing a \section{}. In this case, the header gets the title of the last section of the preceeding chapter. Similarly, a \part{} may begin with a long introduction (several pages) before seeing a \chapter{}. In this case, the footer gets the title of the last chapter of the preceeding part. This is incorrect. Is there some way to have the section text reset for each \chapter and the chapter text reset for each \part? (I would expect a "way=bychapter" and "way=bypart" type of option and also suggest that this be the default behavior). Alan By the way, there appears to be a (recent) bug in that \setupheadertexts [section] \setupheadertexts [][pagenumber] [pagenumber][] % doublesided works, whereas \setupheadertexts [][pagenumber] [pagenumber][] % doublesided \setupheadertexts [section] currently is broken (no page numbers occur). ___________________________________________________________________________________ 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 ___________________________________________________________________________________