Re: [NTG-context] Specifying last page when using imposition

2008-06-02 Thread Wolfgang Schuster
On Sun, Jun 1, 2008 at 8:25 PM, John Devereux
[EMAIL PROTECTED] wrote:

 Hi,

 I am using imposition to arrange pages in a booklet format, a5 on
 a4. So after all the pages are printed out (doublesided) I can fold
 the stack in half to get my booklet.

 So I am using the command

texexec --arrange --paperformat=a5a4 --printformat=up test.tex

 ...which works well.


 Now I want to write content to appear on the last page. Here is my
 test file:



 \setuppagenumbering[alternative=doublesided]
 \starttext
 \showframe
 \subject Front Cover

 \dorecurse{10}{\input tufte \par}

 \page[yes,last]

\page[quadruple,quadruple]

or

\page[8]

 \raggedcenter
 Back Cover
 \stoptext


 But this does not do what I want. Back Cover appears on document
 page 9, but on page 4 (of 6) of the output pdf. It needs to be on page
 1 of the output (i.e. opposite document page 1).

 Any suggestions?

 Thanks,

 --

 John Devereux

Greetings
Wolfgang
___
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] Specifying last page when using imposition

2008-06-02 Thread John Devereux
Wolfgang Schuster [EMAIL PROTECTED] writes:

 On Sun, Jun 1, 2008 at 8:25 PM, John Devereux
 [EMAIL PROTECTED] wrote:

 Hi,

 I am using imposition to arrange pages in a booklet format, a5 on
 a4. So after all the pages are printed out (doublesided) I can fold
 the stack in half to get my booklet.

 So I am using the command

texexec --arrange --paperformat=a5a4 --printformat=up test.tex

 ...which works well.


 Now I want to write content to appear on the last page. Here is my
 test file:



 \setuppagenumbering[alternative=doublesided]
 \starttext
 \showframe
 \subject Front Cover

 \dorecurse{10}{\input tufte \par}

 \page[yes,last]

 \page[quadruple,quadruple]

 or

 \page[8]

Wolfgang, thanks - but this does not seem to fix the problem. The
last page appears opposite page 3 instead of opposite page 1.

To be clear, I am looking for a way to specify that content is to be
placed on the outside of the cover, i.e. printed on the same side of
the same sheet as page 1, when arranged.


\setuppapersize[A5][A4]
\setuparranging[2UP,rotated,doublesided]
\setuppagenumbering[alternative=doublesided]

\setuplayout[margin=0pt,width=fit]
\setupbodyfont[16pt]

\starttext

\dorecurse{11}{\input tufte \par \input knuth \par}

\page[8]

Back Cover

\stoptext


...

texexec --arrange --paperformat=a5a4 --printformat=up test2.tex



-- 

John Devereux
___
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] Specifying last page when using imposition

2008-06-02 Thread Wolfgang Schuster
On Mon, Jun 2, 2008 at 10:11 AM, John Devereux
[EMAIL PROTECTED] wrote:
 Wolfgang Schuster [EMAIL PROTECTED] writes:

 On Sun, Jun 1, 2008 at 8:25 PM, John Devereux
 [EMAIL PROTECTED] wrote:

 Hi,

 I am using imposition to arrange pages in a booklet format, a5 on
 a4. So after all the pages are printed out (doublesided) I can fold
 the stack in half to get my booklet.

 So I am using the command

texexec --arrange --paperformat=a5a4 --printformat=up test.tex

 ...which works well.


 Now I want to write content to appear on the last page. Here is my
 test file:



 \setuppagenumbering[alternative=doublesided]
 \starttext
 \showframe
 \subject Front Cover

 \dorecurse{10}{\input tufte \par}

 \page[yes,last]

 \page[quadruple,quadruple]

 or

 \page[8]

 Wolfgang, thanks - but this does not seem to fix the problem. The
 last page appears opposite page 3 instead of opposite page 1.

 To be clear, I am looking for a way to specify that content is to be
 placed on the outside of the cover, i.e. printed on the same side of
 the same sheet as page 1, when arranged.


 \setuppapersize[A5][A4]
 \setuparranging[2UP,rotated,doublesided]
 \setuppagenumbering[alternative=doublesided]

 \setuplayout[margin=0pt,width=fit]
 \setupbodyfont[16pt]

 \starttext

 \dorecurse{11}{\input tufte \par \input knuth \par}

 \page[8]

\page[8] is useless in this example because you're already beyound
the eight page and the argument is useless in this case.

\page[quadruple]

 Back Cover

 \stoptext

texexec --arrange --paperformat=a5a4 --printformat=up test2.tex

texexec test2

you need --arrange only for documents with a table of content, indices ...

Greetings
Wolfgang
___
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] Specifying last page when using imposition

2008-06-02 Thread Wolfgang Schuster
Hi John,

 Wolfgang, thanks - but this does not seem to fix the problem. The
 last page appears opposite page 3 instead of opposite page 1.

 To be clear, I am looking for a way to specify that content is to be
 placed on the outside of the cover, i.e. printed on the same side of
 the same sheet as page 1, when arranged.

Could you try the following page brake method.

\unprotect

\installpagebreakhandler {newquadruple}%
  {\ifdoublesided
 \!!counta\realpageno
 \!!countb\realpageno
 \advance\!!counta 4
 \divide\!!counta 4
 \multiply\!!counta 4
 \advance\!!countb 1
 \advance\!!counta-\!!countb
 \executepagebreakhandler\v!yes
 \dorecurse\!!counta{\executepagebreakhandler\v!empty}%
   \fi}

\protect

 \setuppapersize[A5][A4]
 \setuparranging[2UP,rotated,doublesided]
 \setuppagenumbering[alternative=doublesided]

 \setuplayout[margin=0pt,width=fit]
 \setupbodyfont[16pt]

 \starttext

 \dorecurse{11}{\input tufte \par \input knuth \par}

 \page[8]

 \page[8] is useless in this example because you're already beyound
 the eight page and the argument is useless in this case.

 \page[quadruple]

\page[newquadruple]

 Back Cover

 \stoptext

texexec --arrange --paperformat=a5a4 --printformat=up test2.tex

 texexec test2

 you need --arrange only for documents with a table of content, indices ...

Wolfgang
___
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] Specifying last page when using imposition

2008-06-02 Thread John Devereux
Wolfgang Schuster [EMAIL PROTECTED] writes:

 Hi John,

 Wolfgang, thanks - but this does not seem to fix the problem. The
 last page appears opposite page 3 instead of opposite page 1.

 To be clear, I am looking for a way to specify that content is to be
 placed on the outside of the cover, i.e. printed on the same side of
 the same sheet as page 1, when arranged.

 Could you try the following page brake method.

 \unprotect

 \installpagebreakhandler {newquadruple}%
   {\ifdoublesided
  \!!counta\realpageno
  \!!countb\realpageno
  \advance\!!counta 4
  \divide\!!counta 4
  \multiply\!!counta 4
  \advance\!!countb 1
  \advance\!!counta-\!!countb
  \executepagebreakhandler\v!yes
  \dorecurse\!!counta{\executepagebreakhandler\v!empty}%
\fi}

 \protect

 \setuppapersize[A5][A4]
 \setuparranging[2UP,rotated,doublesided]
 \setuppagenumbering[alternative=doublesided]

 \setuplayout[margin=0pt,width=fit]
 \setupbodyfont[16pt]

 \starttext

 \dorecurse{11}{\input tufte \par \input knuth \par}

 \page[8]

 \page[8] is useless in this example because you're already beyound
 the eight page and the argument is useless in this case.

 \page[quadruple]

 \page[newquadruple]

Well, this worked, thank you!

I can safely say I would not have found that on my own...

Could I trouble you for a version to take me to the page *before*,
i.e. the inside back cover? I now realise I may need to put content
there too, and if not I can just do another \page to get to the
outside back cover.


 Back Cover

 \stoptext

texexec --arrange --paperformat=a5a4 --printformat=up test2.tex

 texexec test2

 you need --arrange only for documents with a table of content, indices ...

OK, but my real document *will* have these - this was just a minimal
example. Originally I wanted to put the arrangment commands outside
the document, but I then put them inside too in case it helped.

-- 

John Devereux
___
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] Specifying last page when using imposition

2008-06-02 Thread Wolfgang Schuster
On Mon, Jun 2, 2008 at 11:33 AM, John Devereux
[EMAIL PROTECTED] wrote:
 Wolfgang Schuster [EMAIL PROTECTED] writes:

 Hi John,

 Wolfgang, thanks - but this does not seem to fix the problem. The
 last page appears opposite page 3 instead of opposite page 1.

 To be clear, I am looking for a way to specify that content is to be
 placed on the outside of the cover, i.e. printed on the same side of
 the same sheet as page 1, when arranged.

 Could you try the following page brake method.

 \unprotect

 \installpagebreakhandler {newquadruple}%
   {\ifdoublesided
  \!!counta\realpageno
  \!!countb\realpageno
  \advance\!!counta 4
  \divide\!!counta 4
  \multiply\!!counta 4
  \advance\!!countb 1
  \advance\!!counta-\!!countb
  \executepagebreakhandler\v!yes
  \dorecurse\!!counta{\executepagebreakhandler\v!empty}%
\fi}

 \protect

 \setuppapersize[A5][A4]
 \setuparranging[2UP,rotated,doublesided]
 \setuppagenumbering[alternative=doublesided]

 \setuplayout[margin=0pt,width=fit]
 \setupbodyfont[16pt]

 \starttext

 \dorecurse{11}{\input tufte \par \input knuth \par}

 \page[8]

 \page[8] is useless in this example because you're already beyound
 the eight page and the argument is useless in this case.

 \page[quadruple]

 \page[newquadruple]

 Well, this worked, thank you!

 I can safely say I would not have found that on my own...

 Could I trouble you for a version to take me to the page *before*,
 i.e. the inside back cover? I now realise I may need to put content
 there too, and if not I can just do another \page to get to the
 outside back cover.

\unprotect

\installpagebreakhandler {beforequadruple}%
 {\ifdoublesided
\!!counta\realpageno
\!!countb\realpageno
\advance\!!counta 5
\divide\!!counta 4
\multiply\!!counta 4
\advance\!!countb 2
\advance\!!counta-\!!countb
\executepagebreakhandler\v!yes
\dorecurse\!!counta{\executepagebreakhandler\v!empty}%
  \fi}

\protect

\setuppagenumbering[alternative=doublesided]
\starttext
\showframe
\subject Front Cover

\dorecurse{10}{\input tufte \par}
%\dorecurse{8}{\input tufte \par}

\page[beforequadruple]

Imprint

\page

Back Cover

\stoptext

texexec --arrange --paperformat=a5a4 --printformat=up test2.tex

 texexec test2

 you need --arrange only for documents with a table of content, indices ...

 OK, but my real document *will* have these - this was just a minimal
 example. Originally I wanted to put the arrangment commands outside
 the document, but I then put them inside too in case it helped.

You could use modes for a imposed and a normal document.

\startmode[fold]
\setuppapersize[A5][A4]
\setuparranging[2UP,rotated,doublesided]
\stopmode

\startnotmode[fold]
\setuppapersize[A5][A5]
\stopnotmode

and process it with

texexec --arrange --mode=fold mydocument

and

texexec mydocument

Wolfgang
___
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] Specifying last page when using imposition

2008-06-01 Thread John Devereux

Hi,

I am using imposition to arrange pages in a booklet format, a5 on
a4. So after all the pages are printed out (doublesided) I can fold
the stack in half to get my booklet.

So I am using the command

texexec --arrange --paperformat=a5a4 --printformat=up test.tex

...which works well.


Now I want to write content to appear on the last page. Here is my
test file:



\setuppagenumbering[alternative=doublesided]
\starttext
\showframe
\subject Front Cover

\dorecurse{10}{\input tufte \par}

\page[yes,last]
\raggedcenter
Back Cover
\stoptext


But this does not do what I want. Back Cover appears on document
page 9, but on page 4 (of 6) of the output pdf. It needs to be on page
1 of the output (i.e. opposite document page 1). 

Any suggestions?

Thanks,

-- 

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