ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Khaled Hosny <khaledhosny@eglug.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to disable page numbers in empty pages
Date: Tue, 26 May 2009 00:43:19 +0300	[thread overview]
Message-ID: <20090525214319.GA3349@khaled-laptop> (raw)
In-Reply-To: <326847810905220304k2919e806q4974e1c789bf2d39@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1414 bytes --]

On Fri, May 22, 2009 at 12:04:08PM +0200, Alan Stone wrote:
> On Fri, May 22, 2009 at 11:42 AM, Khaled Hosny <khaledhosny@eglug.org> 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

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2009-05-25 21:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-22  9:42 Khaled Hosny
2009-05-22 10:04 ` Alan Stone
2009-05-25 21:43   ` Khaled Hosny [this message]
2009-05-26  8:53     ` Alan Stone
2009-05-26 13:12       ` Khaled Hosny
2009-05-26 13:47         ` Alan Stone

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=20090525214319.GA3349@khaled-laptop \
    --to=khaledhosny@eglug.org \
    --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).