ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* header/footertexts (sectioning)
@ 2010-06-08 14:08 Alan BRASLAU
  0 siblings, 0 replies; only message in thread
From: Alan BRASLAU @ 2010-06-08 14:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-08 14:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-08 14:08 header/footertexts (sectioning) Alan BRASLAU

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).