ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <dwarnold45@cox.net>
Subject: Losing Chapter Number
Date: Tue, 18 Jul 2006 09:59:33 -0700	[thread overview]
Message-ID: <33288F1C-FFB0-4C15-A3E2-F42934EF1C6B@cox.net> (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

             reply	other threads:[~2006-07-18 16:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18 16:59 David Arnold [this message]
2006-07-18 18:26 ` Taco Hoekwater

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=33288F1C-FFB0-4C15-A3E2-F42934EF1C6B@cox.net \
    --to=dwarnold45@cox.net \
    --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).