ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* header entries semi-wrong
@ 2011-03-06 10:56 Steffen Wolfrum
  2011-03-10 13:38 ` Steffen Wolfrum
  2011-03-10 14:26 ` Wolfgang Schuster
  0 siblings, 2 replies; 11+ messages in thread
From: Steffen Wolfrum @ 2011-03-06 10:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

___________________________________________________________________________________
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] 11+ messages in thread

end of thread, other threads:[~2011-03-10 15:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-06 10:56 header entries semi-wrong Steffen Wolfrum
2011-03-10 13:38 ` Steffen Wolfrum
2011-03-10 13:59   ` luigi scarso
2011-03-10 14:16     ` Willi Egger
2011-03-10 14:55       ` Steffen Wolfrum
2011-03-10 14:59         ` Wolfgang Schuster
2011-03-10 15:02           ` luigi scarso
2011-03-10 15:17           ` Steffen Wolfrum
2011-03-10 14:26 ` Wolfgang Schuster
2011-03-10 14:48   ` Steffen Wolfrum
2011-03-10 14:57     ` Wolfgang Schuster

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