ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Guy Worthington <guyw@multiline.com.au>
Subject: Re: header/footer suppression
Date: 29 Mar 2003 16:47:31 +0800	[thread overview]
Message-ID: <ufzp6o8yk.fsf@multiline.com.au> (raw)
In-Reply-To: <87brzvk5xe.fsf@gundla.ch>

Patrick Gundlach wrote:
> Guy Worthington wrote

>> How can I get both a blank page inserted whenever a chapter
>> finishes on an odd page, and also suppress my header on the first
>> page of a chapter.

> before={\ifodd\realpageno\else\page[empty]\noheaderandfooterlines\fi},

Thanks Patrick, the next specification is that I have a footer.

-----
% output=pdftex
\definetext[chapter][footer][pagenumber] % page on which chapters begin
\setuphead
  [chapter]
  [page=right,
   header=empty,
   footer=chapter,
%   before={\page\ifodd\realpageno\else\page[empty]\fi\page[right]},
]
\setupheadertexts
  [chapter]
\setuppagenumbering[alternative=doublesided]

\starttext
\chapter {test} \dorecurse{10}{\input tufte }
\chapter {test} \dorecurse{10}{\input tufte }
\chapter {test} \dorecurse{10}{\input tufte }
\stoptext

-----

>> \setuppagenumbering[alternative=doublesided,
>>                     option=doublesided]

> what is this option=...?

is used to produce an even number of pages, so if you count ever page
in the book then the number of recto and verso pages are exactly
equal.

  reply	other threads:[~2003-03-29  8:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-28 11:58 Guy Worthington
2003-03-28 12:54 ` Patrick Gundlach
2003-03-29  8:47   ` Guy Worthington [this message]
2003-03-29  9:21     ` Patrick Gundlach
2003-03-29 12:28       ` Guy Worthington
2003-03-29 12:54         ` Guy Worthington
2003-03-29 14:39         ` Patrick Gundlach
2003-03-29 11:07     ` Hans Hagen
2003-03-31  7:04       ` Patrick Gundlach
2003-03-31  7:23         ` Hans Hagen
2003-04-01 13:17         ` Guy Worthington
  -- strict thread matches above, loose matches on Subject: below --
2001-01-24 19:07 Pierre Goossens
2001-01-24 19:38 ` Hans Hagen
2001-01-24 20:44   ` Pierre Goossens
2001-01-25  7:57     ` Hans Hagen

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=ufzp6o8yk.fsf@multiline.com.au \
    --to=guyw@multiline.com.au \
    --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).