Willi Egger wrote:
Hi Pablo,

The problem is that the filius-page is higher than the width of an A4. So there is no way other than to scale the original pages down to a height of 210mm. For this action you can use something like

Thanks for your fast reply. I thought it was possible to set center the imposed pages, both vertically and horizontally, to define a

The following code in a tex-file.

\definepapersize[Mypaper][height=210mm,width=123mm]
\setuppapersize
  [Mypaper][Mypaper]
\setuplayout
  [page]
\starttext
\copypages
  [input.pdf]
  [scale=905,
   offset=0pt]
\stoptext

The resulting pdf-file should then be arranged. However I would suggest not to use 2UP. Arranging the whole file (351 pages) with 2UP results in a rather thick single booklet of 88 A4-sheets. What you can try is to setup arranging as follows (untested). Put this code into an environment file e.g. arrange.tex

Thanks for the code bellow, but I'm not trying to make a booklet, but to print the book to cut the paper in two pieces to bound it.

Thanks anyway,


Pablo


\definepapersize[Mypaper][height=210mm,width=123mm]
%\definepapersize [offset=15pt] \setuppapersize
  [Mypaper][A4,portrait]
\setuplayout
  [backspace=0pt,
      topspace=0pt,
     width=middle,
     height=middle,
     %location=middle,
     header=0pt,
     footer=0pt]
\setuppagenumbering[location=,alternative=doublesided]
\setuparranging[2*2*4]
\starttext
    \insertpages[input-scaled.pdf][width=0pt]
\stoptext

On the commandline call conTeXt as follows

texmfstart texexec --pdfarrange --environments=arrange --result=output.pdf input-scaled.pdf

I hope this helps

Willi

On Jan 18, 2009, at 8:05 PM, Pablo Rodríguez wrote:

Hi there,

I would like to use the imposition capabilities from ConTeXt to be able
to print a PDF book in a standard laser printer. To save paper, I use the 2UP arranging option thanks to this code from the wiki:

\definepapersize    [filius][width=135.9mm, height=231.8mm]
\setuppapersize        [filius][A4,landscape]
\setuparranging        [2UP,doublesided]
\setuplayout [backspace=0pt,
    topspace=0pt,
       width=middle,
      height=middle,
    location=middle,
      header=0pt,
      footer=0pt,
      grid=no, marking=off]
\starttext
\filterpages[ZittrainTheFutureoftheInternet.pdf][4:351][height=21cm]
\stoptext

The PDF file can be downloaded from
http://futureoftheinternet.org/static/ZittrainTheFutureoftheInternet.pdf.

The issue here is that I get a resulting paper size with the filius height and not with 21cm from A4.

I have tried have the output in a standard A4 paper size, but all that I got is a scaled down PDF. I would like to avoid scaling the document if that were possible.

Is there any way, given the example above, to impose the filius paper size on a real landscape A4 without having to scale down the PDF document?

Thanks for your help,


Pablo

___________________________________________________________________________________
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 via email to