Number and name of a section
I try to get number and name of the current chapter into my page header. Unfortunately, ConTeXt (MkIV) disagrees with itself about what's "current" - if several chapters start on the same page, I get the name of the first and the number of the last one. I know I can influence the name with the second parameter of \getmarking, but how do I get the *number* of the first chapter on this page? (You can argue it doesn't make sense to start several chapters on one page, but it's the same with sections.) \setupheadertexts[\setups{kapitel}] \startsetups[kapitel] \framed[frame=off, bottomframe=on, width=\textwidth, strut=yes]{% \rlap{\headnumber[chapter]. \getmarking[chapter]} \hfill \strut \hfill \llap{\pagenumber} } \stopsetups Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
Henning Hraban Ramm wrote:
I try to get number and name of the current chapter into my page header.
Unfortunately, ConTeXt (MkIV) disagrees with itself about what's "current" - if several chapters start on the same page, I get the name of the first and the number of the last one.
is this cont-xp or the regular version ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 2009-03-21 um 17:35 schrieb Hans Hagen:
Henning Hraban Ramm wrote:
I try to get number and name of the current chapter into my page header. Unfortunately, ConTeXt (MkIV) disagrees with itself about what's "current" - if several chapters start on the same page, I get the name of the first and the number of the last one.
is this cont-xp or the regular version
latest stable - I need registers. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
participants (2)
-
Hans Hagen
-
Henning Hraban Ramm