From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32596 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Header problem in project Date: Sun, 7 Jan 2007 21:32:36 -0800 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168234466 21690 80.91.229.12 (8 Jan 2007 05:34:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Jan 2007 05:34:26 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 08 06:34:23 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1H3n9K-0005NU-SN for gctc-ntg-context-518@m.gmane.org; Mon, 08 Jan 2007 06:34:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D61A1FFDE; Mon, 8 Jan 2007 06:31:07 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18157-02; Mon, 8 Jan 2007 06:31:00 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F3CE41FFCB; Mon, 8 Jan 2007 06:30:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 357811FFCD for ; Mon, 8 Jan 2007 06:30:56 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17602-05-3 for ; Mon, 8 Jan 2007 06:30:50 +0100 (CET) Original-Received: from fed1rmmtao03.cox.net (fed1rmmtao03.cox.net [68.230.241.36]) by ronja.ntg.nl (Postfix) with ESMTP id 7BA5E1FFC3 for ; Mon, 8 Jan 2007 06:30:49 +0100 (CET) Original-Received: from fed1rmimpo01.cox.net ([70.169.32.71]) by fed1rmmtao03.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20070108053401.GCIJ29122.fed1rmmtao03.cox.net@fed1rmimpo01.cox.net> for ; Mon, 8 Jan 2007 00:34:01 -0500 Original-Received: from [10.0.1.2] ([75.111.18.179]) by fed1rmimpo01.cox.net with bizsmtp id 8VZB1W0023row3P0000000; Mon, 08 Jan 2007 00:33:12 -0500 Original-To: Context Mailing List List X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32596 Archived-At: Hans et all, We have a project call book.tex, a product in that called chapter1.tex, and a component in that called section1exercises.tex. We have blocks that we save and then place at the end of section1exercises.tex with a macro defined in our environment file: \def\placeanswers{% \bgroup \doifmodeelse{short} { \keepblocks[shortsubanswer,longsubanswer] \answers{Answers}\vskip 1em\startcolumnset[answers] \selectblocks[shortanswer][criterium=section] \stopcolumnset } { \def\headermarkleft{{\sc Chapter \headnumber[chapter]}} \def\headermarkright{{\sc{}Section \headnumber[section]}} \setupheadertexts[][\headermarkright][\headermarkleft][] \keepblocks[shortsubanswer,longsubanswer] \answers{Solutions}\vskip 1em \selectblocks[longanswer][criterium=section] } \egroup } The else part of the do above is an attempt to define a different header when we compile with --mode=long, but just for the pages on which we use \placeanswers. The other pages have a different header defined in the environment file. Those headers have page numbers as well with: \def\headermarkleft{\bold{\pagenumber}\headerskip{\sc\headerskip Chapter \headnumber[chapter]\headerskip\getmarking[chapter][current]}} \def\headermarkright{{\sc{}Section \headnumber[section]\headerskip \getmarking[section][current]}\headerskip\bold{\pagenumber}} The file section1exercises ends like this: %%% ENDTESTBANK %%%================================================ \stopquestions \placeanswers\kern0pt \stopcomponent When we compile section1exercises.tex with texmfstart texexec -- mode=long section1exercises, all is well until the last page, where the former header is used instead of the header defined in the \placeanswers macro. But we want to finish out the document from the point we put the \placeanswers with the second header. Any suggestions?