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: Mike Bianchi
Subject: Re: [Groff] producing a booklet with groff ?
Date: Mon, 19 Nov 2012 17:29:45 -0500
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

On Sun, Nov 18, 2012 at 11:42:12PM +0100, Tadziu Hoffmann wrote:
> > Have you dealt with "gutters"?
> >     gutter:  The blank space between facing pages of a book.
> > 
> > It would involve shifting the odd pages right and the even
> > pages left 1/4 inch or so.
> 
> This is something I tend to ignore.  More "fancy" page layouts
> suggest making the inner margin smaller than the outer margin,
> so that two inner margins together have about the same width as
> each of the outer margins, but this assumes that the books open
> flat, which they do not if you use a cheaper glued binding.
> Thus, I usually set all side margins to the same size, and this
> fairly well compensates for the space consumed by the binding.
> 
> Anyhow, if you want this you can easily achieve it by setting
> the pstops positioning of the individual "sub"-pages.
>       :


I now have a shell script "booklet":

        a0='address@hidden(-0.550in,-0.4in)'
        a1='address@hidden(-0.200in,-0.4in)'
        a2='address@hidden(17.550in,11.4in)'
        a3='address@hidden(0.200in,11.4in)'

        psbook $1                                                       |
                pstops "4:${a0},${a1},${a2},${a3}"                      |
                psnup  -2                                               |
                ps2ps  /dev/stdin  $2


The  pstops  arguments required A LOT of experimentation, and I could not
explain why it works for the life of me.

And the  ps2ps  is at the end because without it NOTHING I did would make it
print duplex in my HP LaserJet 2200d (about 10 years old).
With it, the output file is labeled by file(1) as

         PostScript document text conforming at level 3.0, Level 2

and it prints duplex just fine.

See the result at  www.fovealmounts.com/manualbooklet.pdf .


Thanks to all who have gone before me!

-- 
 Mike Bianchi
 Foveal Systems

 973 822-2085

 address@hidden
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com



reply via email to

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