Hans,

The following document can be used as test document. If you comment out
the line \enablemode[doublesided] you get 5 pages, otherwise 10!

Rob

\setupoutput[pdftex]
\enablemode[doublesided]

\setuppapersize[A4][A4]
\defineoverlay
  [Header]
  [{\framed
     [width=\overlaywidth,height=\overlayheight,
      offset=overlay,align=right,frame=off]
     {\midaligned{-{\pagenumber}-}\\   
      \blackrule[height=0.05cm,width=15cm,depth=0pt] }
   }]
\setupbackgrounds
  [state=repeat]

\startstandardmakeup
   {A doublesided document with \ConTeXt} 
\stopstandardmakeup

\setuplayout
  [backspace=4.0cm]

\setupbackgrounds
  [header][text]
  [background={Header}]

\setuppagenumbering[location=]

\doifmode{doublesided}
  {\setuppagenumbering[alternative=doublesided]
   \definelayout[odd][backspace=4.0cm]
   \definelayout[even][backspace=2.5cm]}

\startfrontmatter
 \page[yes,blank,empty]
 \completecontent
\stopfrontmatter

\starttext

\startbodymatter
 \chapter[]{Chapter}
  This document ...
\stopbodymatter

\startappendices
 \chapter[]{Appendix}
 This is appendix ...
\stopappendices
\stoptext





Hans Hagen wrote:
> 
> At 04:09 PM 11/20/2002 +0100, Rob van Swol wrote:
> >Hi,
> >
> >I want to set a different layout for even and odd pages; so I use
> >something like:
> >
> >\setuppagenumbering[alternative=doublesided]
> >\definelayout[odd][backspace=4.0cm]
> >\definelayout[even][backspace=2.5cm]
> >
> >This works fine, except I get these extra pages again after
> >\stopstandardmakeup, \stopfrontmatter, and \stopappendices
> >[Note: I applied the following patch to cont-new.tex, Context ver:
> >2002.10.23
> >
> >\appendtoks
> >    \gdef\shipout{\dowithnextbox{\deadcycles\zerocount}}%
> >\to \everylastshipout
> >]
> >
> >Any suggestions?
> 
> make the smalles possible test file
> 
> 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

-- 
_____________________________________________________________

Rob W. van Swol
National Aerospace Laboratory NLR       Tel. +31 527 248252
P.O. Box 153                            Fax  +31 527 248210
8300 AD Emmeloord                       E-Mail [EMAIL PROTECTED]
The Netherlands                         http://www.neonet.nl/

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

Reply via email to