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 | [EMAIL PROTECTED] 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 -------------------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to