groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] producing a booklet with groff ?


From: Tadziu Hoffmann
Subject: Re: [Groff] producing a booklet with groff ?
Date: Sun, 18 Nov 2012 22:54:22 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

> Yes. Output to ps and then use psbook and pstops.

psbook page specifications are very flexible, but need a bit
of mental activity to get the positioning right.  Here's what
I usually use for A4 paper (21 cm x 29.7 cm):

  psbook |
  pstops -pa4 
'4:address@hidden(21cm,0cm)address@hidden(21cm,14.85cm),address@hidden(0cm,29.7cm)address@hidden(0cm,14.85cm)'

This already does the tumble, so you must print in "normal"
duplex mode (long side flip). If you have a Postscript printer,
you can also use sed to automatically insert a 

  << /Duplex true >> setpagedevice
  
into the output stream, if that's not your default already.

You need to adapt the scaling factor "@sss" and the positioning
on the final page "(xxx,yyy)" to your paper size (coordinate
origin in Postscript is the lower left-hand corner).  If you
use non-1:sqrt(2) aspect ratio paper, you may also need to
reformat your original output to have the aspect ratio of
half of the final output page.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]