On Sat, Feb 14, 2009 at 1:23 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
Am 14.02.2009 um 12:57 schrieb Alan Stone:
What's the way to test whether a page is a (start of a new) chapter page ?
Didn't find it on&offline.
Why and for what do you need this information?
To put different text in the margin/edge top/header/... whether a page is a
chapter page or not.
\setupheadertexts[\doifoddpageelse{right page}{left page}]
\definetext[chapter][header][chapter page]
% The \definetext command works like \setup(header/footer/...)texts and
% has 3–7 arguments, the first argument is a keyword (you can use whatever
% you want, the second is the location of the text and all other arguments
% are reseved for the content.
from what I understand...
- the location is limited to the text header/footer => what about margin/edge top/header/footer/bottom ?
- all other arguments are reserved for content => for which content and where ? if i put
\definetext[chapter][header][chapter page][x1][x2][x3][x4] the "chapter page" header is replaced by "right page" !?
\setuphead
[chapter]
[header=chapter]
\starttext
\dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}}
\stoptext