From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50790 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: Re: How to disable page numbers in empty pages Date: Tue, 26 May 2009 10:53:30 +0200 Message-ID: <326847810905260153h3ff72ddbh60212916606d933d@mail.gmail.com> References: <20090522094250.GA12364@khaled-laptop> <326847810905220304k2919e806q4974e1c789bf2d39@mail.gmail.com> <20090525214319.GA3349@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1369351616==" X-Trace: ger.gmane.org 1243328053 31385 80.91.229.12 (26 May 2009 08:54:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2009 08:54:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 26 10:54:06 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1M8sQ9-00061V-RV for gctc-ntg-context-518@m.gmane.org; Tue, 26 May 2009 10:54:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8208E1FDE1; Tue, 26 May 2009 10:54:04 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29683-04; Tue, 26 May 2009 10:53:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4618F1FDD2; Tue, 26 May 2009 10:53:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DB4A31FDD2 for ; Tue, 26 May 2009 10:53:39 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27285-05 for ; Tue, 26 May 2009 10:53:31 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id 802E81FDCA for ; Tue, 26 May 2009 10:53:31 +0200 (CEST) Original-Received: from mail-ew0-f180.google.com (mail-ew0-f180.google.com [209.85.219.180]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4Q8rP6F011001 for ; Tue, 26 May 2009 10:53:25 +0200 Original-Received: by ewy28 with SMTP id 28so3665716ewy.2 for ; Tue, 26 May 2009 01:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=6k5j8/JQDnU0MQ94UvOVkm7o83mi4v9BoHncH4N8mik=; b=aYhnTXqVjx010ZpotKA+CG7lArYnXcENQtcKz8sc5przP7VMkAKctzJR+76VkuvyR0 DZG+HG5tXeTcK9St5eBHIJa4ngvUgYwPjYnLFDmJ6bcCNMeK4355VhGu2ORYUXSkPD5v bgSl9ZLE70L+42XgwIO9cJpeeHUopQB5Xznvo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=vKXE7n1JlVe5RXsZx8V51ggmCXXoyUdPyzwW7d6f8mjwXYdfUhZeIBt0TrxxBbw/Er 8lj1i3r1AE0ZyzljBwqbHhddnWBhhViMoATQhXUJPVlTKpKtK8I6jw/jhxt7NfC5k6BF ph1rkolpXKeJiq3X/Adh1jzdJSDiEl6wA5Jks= Original-Received: by 10.216.2.210 with SMTP id 60mr3120764wef.21.1243328010105; Tue, 26 May 2009 01:53:30 -0700 (PDT) In-Reply-To: <20090525214319.GA3349@khaled-laptop> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.180; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 231762798 - 6f86a13f1d62 - 20090526 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50790 Archived-At: --===============1369351616== Content-Type: multipart/alternative; boundary=0016364d226161b76c046accdcb6 --0016364d226161b76c046accdcb6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Mon, May 25, 2009 at 11:43 PM, Khaled Hosny wrote: > On Fri, May 22, 2009 at 12:04:08PM +0200, Alan Stone wrote: > > On Fri, May 22, 2009 at 11:42 AM, Khaled Hosny > wrote: > > > > How can I disable page numbers (or header/footer) in empty pages, as > > page 2 in the following example: > > > > \setuppagenumbering[alternative=doublesided] > > \starttext > > \chapter{one} > > \input tufte > > \chapter{two} > > \input tufte > > \stoptext > > > > Regards, > > Khaled > > > > > > http://www.ntg.nl/pipermail/ntg-context/2008/030594.html > > > > Alan > > Thanks for the tip, but I've a slightly more complex layout and it might > need a more generalized solution, see: > > \definepagebreak > [mychapterpagebreak] > [yes,header,footer,right] > > \setuphead > [chapter] > [page=mychapterpagebreak] > > > \setuppagenumbering[alternative=doublesided,location={header,margin}] > \setupheadertexts[{My special headertext}] > \setupfootertexts[This is a text in the footer] > > \starttext > \chapter {testA} \dorecurse{10}{\input tufte } > \startstandardmakeup \dorecurse{4}{\input tufte } > \stopstandardmakeup > \chapter {testB} \dorecurse{10}{\input tufte } > \stoptext > > The page after first chapter and before the markup is empty and thus > shouldn't have any headers/footers, but it isn't. > > Regards, > Khaled > > -- > Khaled Hosny > Arabic localiser and member of Arabeyes.org team > Free font developer > \setupsectionblock[bodypart][page=yes] \setupmakeup[standard][page=empty] \definepagebreak [mychapterpagebreak] [yes,header,footer,right] \setuphead [chapter] [page=mychapterpagebreak] \setuppagenumbering[alternative=doublesided,location={header,margin}] \setupheadertexts[{My special headertext}] \setupfootertexts[This is a text in the footer] \starttext \startbodymatter \chapter {testA} \dorecurse{10}{\input tufte } \stopbodymatter \startstandardmakeup \dorecurse{4}{\input tufte } \stopstandardmakeup \startbodymatter \chapter {testB} \dorecurse{10}{\input tufte } \stopbodymatter \stoptext -- Alan --0016364d226161b76c046accdcb6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Mon, May 25, 2009 at 11:43 PM, Khaled Hosny <= span dir=3D"ltr"><khaledhosny@e= glug.org> wrote:
On Fri, May 22, 2009 at 12:04:08PM +0200, Alan Stone wrot= e:
> On Fri, May 22, 2009 at 11:42 AM, Khaled Hosny <khaledhosny@eglug.org> wrote:
> > =A0 =A0 How can I disable page numbers (or header/footer) in empty pag= es, as
> =A0 =A0 page 2 in the following example:
>
> =A0= =A0 \setuppagenumbering[alternative=3Ddoublesided]
> =A0 =A0 \startt= ext
> =A0 =A0 \chapter{one}
> =A0 =A0 \input tufte
> =A0 =A0 \chapter{two}
> =A0 =A0 \in= put tufte
> =A0 =A0 \stoptext
>
> =A0 =A0 Regards,
>= ; =A0 =A0 =A0Khaled
>
>
> http://www.ntg.nl/p= ipermail/ntg-context/2008/030594.html
>
> =A0Alan

Thanks for the tip, but I've a slight= ly more complex layout and it might
need a more generalized solution, se= e:

\definepagebreak
=A0 [mychapterpagebreak]
=A0 =A0[yes,heade= r,footer,right]

\setuphead
=A0[chapter]
=A0[page=3Dmychapterpagebreak]

\setuppagenumbering[alternative=3Ddoublesided,location=3D{header,margin}]<= br>\setupheadertexts[{My special headertext}]
\setupfootertexts[This is = a text in the footer]

\starttext
=A0 =A0\chapter {testA} \dorecurse{10}{\input tufte }
= =A0 =A0\startstandardmakeup \dorecurse{4}{\input tufte }
\stopstandardma= keup
=A0 =A0\chapter {testB} \dorecurse{10}{\input tufte }
\stoptext<= br>
The page after first chapter and before the markup is empty and thus=
shouldn't have any headers/footers, but it isn't.

Regards,=A0Khaled

--
=A0Khaled Hosny
=A0Arabic localiser and member of Arab= eyes.org team
=A0Free font developer


\setupsectionblock[bodypart][page=3Dyes]
\setupmakeup[standard]= [page=3Dempty]
=A0
\definepagebreak
=A0 [mychapterpagebreak]
=A0=A0 [yes,header,foo= ter,right]
=A0
\setuphead
=A0[chapter]
=A0[page=3Dmychapterpagebreak]
=A0
\setuppagenumbering[alternative=3Ddoublesided,location=3D{header,margi= n}]

\setupheadertexts[{My special headertext}]
\setupfootertexts[Th= is is a text in the footer]
=A0
\starttext
=A0
=A0\startbodymatter
=A0=A0\chapter {testA}
=A0=A0\dorecurse{10}{= \input tufte }
=A0=A0 \stopbodymatter
=A0
=A0\startstandardmakeup<= br>=A0=A0\dorecurse{4}{\input tufte }
=A0\stopstandardmakeup
=A0
=A0\startbodymatter
=A0=A0\chapter {testB}
=A0=A0\dorecurse{10}{= \input tufte }
=A0=A0 \stopbodymatter
=A0
\stoptext

--
Alan
--0016364d226161b76c046accdcb6-- --===============1369351616== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1369351616==--