[NTG-context] header/footertexts (sectioning)

Alan BRASLAU alan.braslau at cea.fr
Tue Jun 8 16:08:39 CEST 2010


Hello,

I am using:
    \setupfootertexts [chapter]
    \setupheadertexts [section]
    \setupheadertexts [][pagenumber] [pagenumber][] % doublesided
to place the chapter title in the footer and the section title in the header.

(Of course, I also use
    \setuphead [chapter] [header=nomarking,footer=empty,page=right]
    \setuphead [part] [header=nomarking,footer=empty,page=right]
so that \chapter{} and \part{} begin on an odd page without a text header nor 
a footer.)

However, a \chapter{} may begin with a long introduction (several pages) 
before seeing a \section{}. In this case, the header gets the title of the 
last section of the preceeding chapter. Similarly, a \part{} may begin with a 
long introduction (several pages) before seeing a \chapter{}. In this case, 
the footer gets the title of the last chapter of the preceeding part. This is 
incorrect.

Is there some way to have the section text reset for each \chapter and the 
chapter text reset for each \part? (I would expect a "way=bychapter" and 
"way=bypart" type of option and also suggest that this be the default 
behavior).

Alan

By the way, there appears to be a (recent) bug in that
    \setupheadertexts [section]
    \setupheadertexts [][pagenumber] [pagenumber][] % doublesided
works, whereas
    \setupheadertexts [][pagenumber] [pagenumber][] % doublesided
    \setupheadertexts [section]
currently is broken (no page numbers occur).


More information about the ntg-context mailing list