From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Re: header/footer suppression
Date: Sat, 29 Mar 2003 12:07:09 +0100 [thread overview]
Message-ID: <5.1.0.14.1.20030329114603.01e24f38@localhost> (raw)
In-Reply-To: <ufzp6o8yk.fsf@multiline.com.au>
At 04:47 PM 3/29/2003 +0800, you wrote:
>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},
\doifoddpageelse{...}{...}
this one compensates for shifted pages and is fully expandable
There is a cleaner solution:
\unprotect
% more tolerancy needed
\def\dohandelpaginaafB#1%
{\doifvaluesomething{\??ko#1\c!pagina}
{\def\resetcurrentsectionmarks% toegevoegd, zie \pagina
{\resetsectionmarks{\previoussection\@@sectie}}%
\pagina[\getvalue{\??ko#1\c!pagina}]%
\dohandelpaginaafBB{#1}\v!hoofd\c!hoofd
\dohandelpaginaafBB{#1}\v!tekst\c!tekst
\dohandelpaginaafBB{#1}\v!voet \c!voet}}
% we install a few page handler keys
\installpagebreakhandler \v!hoofd
{\doifnotvalue{\??tk\v!hoofd\c!status}\v!stop
{\setupheader[\c!status=\v!leeg]}}
\installpagebreakhandler \v!voet
{\doifnotvalue{\??tk\v!voet\c!status}\v!stop
{\setupfooter[\c!status=\v!leeg]}}
\protect
now we can define a new page break:
\definepagebreak
[chapter]
[yes,header,right]
look how much cleaner this looks:
\setuphead
[chapter]
[page=chapter,
header=empty,
footer=chapter]
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
next prev parent reply other threads:[~2003-03-29 11:07 UTC|newest]
Thread overview: 11+ 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
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 [this message]
2003-03-31 7:04 ` Patrick Gundlach
2003-03-31 7:23 ` Hans Hagen
2003-04-01 13:17 ` Guy Worthington
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=5.1.0.14.1.20030329114603.01e24f38@localhost \
--to=pragma@wxs.nl \
--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).