[NTG-context] header entries semi-wrong

Steffen Wolfrum context at st.estfiles.de
Sun Mar 6 11:56:15 CET 2011


Hi,

please run the minimal example attached:

--on page 1 there is 
section "1.1 one" and you get the header entry "1.1 one"
- on page 3 there is still 
section "1.1 one" and you get the header entry "1.2 one" (<- ?!)
- on page 5 there is 
section "1.2 two" and you get the header entry "1.2 two"

you see the problem? the "getmarking" behaves correctly (one/one/two)
while the "headnumber" is confused (1.1/1.2/1.2))!


Is this a bug or am I doing something wrong?

Steffen
-------


% ConTeXt  ver: 2011.02.25 22:03 MKIV

\showframe
\setupbodyfont[postscript, 10pt]\setupinterlinespace[line=12pt]

\definepapersize[Pape][width=14.7cm,height=22.3cm]
\setuppapersize[Pape][Pape]
\setuplayout
	[width=113mm,height=572pt\relax,
	backspace=17mm,topspace=17mm,
	header=12pt,headerdistance=6pt,
	footer=36pt,footerdistance=0pt,
	location=middle,marking=off]
\setupwhitespace[halfline]
\setuppagenumbering [alternative=doublesided,location=]
\setupheader[align=middle]

\def\HeadL{Part {\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[EbeneEins]}
\def\HeadR{\headnumber[section]\enskip\getmarking[section]}

\setupheadertexts
	[\vtop{\startalignment[center]\HeadR\stopalignment}] [pagenumber]
	[pagenumber] [\vtop{\startalignment[center]\HeadL\stopalignment}]


\starttext
\chapter{X}
\section{One}
\page x \page
\dorecurse{5}{\input ward \par}
\dorecurse{2}{\input tufte \par}
\section{Two}
\dorecurse{11}{\input ward \par}
\stoptext



More information about the ntg-context mailing list