Taco et all, From what I could deduce, our former macro for placeanswers was a group.
\def\placeanswers{ \bgroup \doifmodeelse{short} { \keepblocks[shortsubanswer,longsubanswer] \answers{Answers}\vskip 1em\startcolumnset[answers] \selectblocks[shortanswer][criterium=section] \stopcolumnset } { \keepblocks[shortsubanswer,longsubanswer] \answers{Solutions}\vskip 1em \selectblocks[longanswer][criterium=section] } \egroup } It occurred at the end of an exercise set like this: %%% ENDTESTBANK %%%================================================ \stopquestions \placeanswers\kern0pt \stopcomponent So when the group was finished, the header for the component took over. Here is the fix I found. I just set new headers for the rest of the way. \def\placeanswers{\doifmode{long}{% \page[yes] \def\headermarkleft{{\sc Chapter \headnumber[chapter]}} \def\headermarkright{{\sc{}Section \headnumber[section]}} \setupheadertexts[][\headermarkright][\headermarkleft][]} \bgroup \doifmodeelse{short} { \keepblocks[shortsubanswer,longsubanswer] \answers{Answers}\vskip 1em\startcolumnset[answers] \selectblocks[shortanswer][criterium=section] \stopcolumnset } { \keepblocks[shortsubanswer,longsubanswer] \answers{Solutions}\vskip 1em \selectblocks[longanswer][criterium=section] } \egroup } So now when we compile with: texmfstart texexec --mode=long,paging section1exercise We get what we want, which is no page numbers in the headers once the solutions start. You can see the result at: http://msenux.redwoods.edu/IntAlgText2/chapter2/section1solutions.pdf We have a paging mode and a perl script that syncs the page numbers at the beginning of this document with the chapter page numbers. Thanks. On Jan 8, 2007, at 11:04 AM, Taco Hoekwater wrote: > David Arnold wrote: >> >> \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? > > Does ending with \placeanswers\page help? > > Taco > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context