Re: [NTG-context] How to disable page numbers in empty pages

2009-05-26 Thread Alan Stone
On Mon, May 25, 2009 at 11:43 PM, Khaled Hosny khaledho...@eglug.orgwrote:

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



\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
___
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
___


Re: [NTG-context] How to disable page numbers in empty pages

2009-05-26 Thread Khaled Hosny
On Tue, May 26, 2009 at 10:53:30AM +0200, Alan Stone wrote:
 \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

Thanks alot, this was very helpfull. (BTW, the mypagebreak part isn't
really needed).

Regards,
 Khaled



-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
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
___


Re: [NTG-context] How to disable page numbers in empty pages

2009-05-26 Thread Alan Stone
On Tue, May 26, 2009 at 3:12 PM, Khaled Hosny khaledho...@eglug.org wrote:

 On Tue, May 26, 2009 at 10:53:30AM +0200, Alan Stone wrote:
  \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

 Thanks alot, this was very helpfull. (BTW, the mypagebreak part isn't
 really needed).


It depends whether you put more than one \chapter in each bodymatter part(s)
or not.

Alan




 Regards,
  Khaled



 --
  Khaled Hosny
  Arabic localiser and member of Arabeyes.org team
  Free font developer

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


Re: [NTG-context] How to disable page numbers in empty pages

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


signature.asc
Description: Digital signature
___
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
___


[NTG-context] How to disable page numbers in empty pages

2009-05-22 Thread Khaled Hosny
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


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
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
___


Re: [NTG-context] How to disable page numbers in empty pages

2009-05-22 Thread Alan Stone
On Fri, May 22, 2009 at 11:42 AM, Khaled Hosny khaledho...@eglug.orgwrote:

 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

http://www.ntg.nl/pipermail/ntg-context/2008/030594.htmlAlan


 --
  Khaled Hosny
  Arabic localiser and member of Arabeyes.org team
  Free font developer

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)

 iEYEARECAAYFAkoWc5oACgkQRoqITGOuyPIJ6wCfbz74HEvxBgVSywJehwLPuLeR
 hRUAn05ZvLNTqOqWcwVzemJsSSJz0k/A
 =VnNd
 -END PGP SIGNATURE-
___
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
___