* Losing Chapter Number
@ 2006-07-18 16:59 David Arnold
2006-07-18 18:26 ` Taco Hoekwater
0 siblings, 1 reply; 2+ messages in thread
From: David Arnold @ 2006-07-18 16:59 UTC (permalink / raw)
Hans et al,
Why do we lose the chapter number in headers (and other places) with
this:
\setupwhitespace[medium]
\setupindenting[medium,yes]
\def\headermarkleft{\bold{\pagenumber}\headerskip{\sc\headerskip
Chapter \headnumber[chapter]\headerskip\getmarking[chapter][current]}}
\def\headermarkright{{\sc{}Section \headnumber[section]\headerskip
\getmarking[section][current]}\headerskip\bold{\pagenumber}}
\def\headerskip{\hskip 1em}
\setuppapersize[letter][letter]
\setuplayout
[backspace=120pt,
cutspace=80pt,
topspace=50pt,
bottomspace=50pt,
leftmargin=65pt,
rightmargin=50pt,
width=middle,
header=40pt,
footer=40pt,
height=middle]
\setupheadertexts
[]
[\headermarkright]
[\headermarkleft]
[]
\setuppagenumbering
[state=start,
alternative=doublesided,
location=,
way=bytext]
\setupheadnumber[chapter][-1]
\starttext
\chapter[chap:0]{Preliminaries}
\input tufte
\section{One}
\dorecurse{3}{\input tufte\par}
\section{Two}
\dorecurse{3}{\input tufte\par}
\stoptext
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Losing Chapter Number
2006-07-18 16:59 Losing Chapter Number David Arnold
@ 2006-07-18 18:26 ` Taco Hoekwater
0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2006-07-18 18:26 UTC (permalink / raw)
David Arnold wrote:
> Hans et al,
>
> Why do we lose the chapter number in headers (and other places) with
> this:
>
Because of this:
> \setupheadnumber[chapter][-1]
\headnumber contains an explicit test that surpresses the output if
the number is zero.
Taco
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-18 18:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-18 16:59 Losing Chapter Number David Arnold
2006-07-18 18:26 ` Taco Hoekwater
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).