ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: Conflict with chapter definition and header
Date: Fri, 04 Aug 2006 10:14:00 +0200	[thread overview]
Message-ID: <44D301C8.5080101@elvenkind.com> (raw)
In-Reply-To: <7a884c7c0608031113u2ddddb31g4ddde044d66d10bf@mail.gmail.com>



Confused Scientist wrote:
> Thanks Taco.
> 
> This is certainly closer to what I'm trying to do, but I still have a 
> problem with the chapter names missing from the header of every odd/left 
> page.  Below is how I setup the headers:


The setups are the problem. Your code essentially does

   \vbox{\chapter{}}

The result is that the markings from the \chapter stay local
to the \vbox that contains it. You need something like this
instead (I leave the details for you to sort out)

\setuphead
   [chapter]
   [command=\MyChapterText,
    before=\setups{chapter:before},
    after=]

\def\MyChapterText#1#2%
   {\vbox to 35mm
      {\headtext{chapter}~#1\blank[small]#2\vss}}

\startsetups [chapter:before]
   \page[left]
   \noheaderandfooterlines
   \vbox to 35mm{}
   \vbox{\blank
   \startalignment[left,nothyphenated]
     \noindent \setups[chapter:quote]
   \stopalignment}
   \resetsetups[quote:text]
   \page[right]
   \noheaderandfooterlines
\stopsetups


Greetings, Taco

      reply	other threads:[~2006-08-04  8:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-19 17:09 Confused Scientist
2006-07-20  8:10 ` Taco Hoekwater
2006-08-03 18:13   ` Confused Scientist
2006-08-04  8:14     ` Taco Hoekwater [this message]

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=44D301C8.5080101@elvenkind.com \
    --to=taco@elvenkind.com \
    --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).