From: David Arnold <dwarnold45@cox.net>
Subject: Header problem in project
Date: Sun, 7 Jan 2007 21:32:36 -0800 [thread overview]
Message-ID: <D00DEB5E-61C5-4CEC-BC17-5EF167358EBE@cox.net> (raw)
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?
next reply other threads:[~2007-01-08 5:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-08 5:32 David Arnold [this message]
2007-01-08 19:04 ` Taco Hoekwater
2007-01-08 20:30 ` David Arnold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D00DEB5E-61C5-4CEC-BC17-5EF167358EBE@cox.net \
--to=dwarnold45@cox.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).