From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11716 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: header/footer suppression Date: Sat, 29 Mar 2003 12:07:09 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20030329114603.01e24f38@localhost> References: <87brzvk5xe.fsf@gundla.ch> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1049092551 20955 80.91.224.249 (31 Mar 2003 06:35:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 31 Mar 2003 06:35:51 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Mar 31 08:35:50 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18zsta-0005Rr-00 for ; Mon, 31 Mar 2003 08:35:50 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 5A1F610B17; Mon, 31 Mar 2003 08:35:56 +0200 (MEST) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 9EFDE10AE7 for ; Mon, 31 Mar 2003 08:30:31 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id h2V6UVZv001581 for ; Mon, 31 Mar 2003 08:30:31 +0200 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-net.nl (8.12.3/8.12.2) with ESMTP id h2V6UWEW025750 for ; Mon, 31 Mar 2003 08:30:32 +0200 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11716 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11716 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 -------------------------------------------------------------------------