ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Steffen Wolfrum <context@st.estfiles.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: header entries semi-wrong
Date: Sun, 6 Mar 2011 11:56:15 +0100	[thread overview]
Message-ID: <159DC991-683B-4900-8694-EBE92E001829@st.estfiles.de> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2011-03-06 10:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-06 10:56 Steffen Wolfrum [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=159DC991-683B-4900-8694-EBE92E001829@st.estfiles.de \
    --to=context@st.estfiles.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).