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


Wolfgang

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________



--
Best,
Alan

* TeX engine = LuaTeX
* ConTeXt  minimals ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.22  int: english/english
* Ubuntu 8.04 Hardy Heron, Windows XP SP3 Home