[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] producing a booklet with groff ?
From: |
Ted Harding |
Subject: |
Re: [Groff] producing a booklet with groff ? |
Date: |
Sun, 18 Nov 2012 21:44:00 -0000 (GMT) |
On 18-Nov-2012 21:06:27 Mike Bianchi wrote:
> Day in and day out, I'm a groff mm macro guy. 8 1/2 x 11 paper,
> double-sided, stapled at the left edge.
>
> But now I want to print out a booklet where the pages are 4 to a
> sheet and the sheets are printed so I just fold the stack in half
> and staple that edge to create a booklet.
>
> Is that a solved problem?
>
> --
> Mike Bianchi
> Foveal Systems
>
> 973 822-2085
>
> address@hidden
> http://www.AutoAuditorium.com
> http://www.FovealMounts.com
I do this frequently (though on 8.3 × 11.7 paper rather than 8 1/2 x 11),
but not directly in groff.
What I do is first use groff to produce a PS file, one page per sheet.
Say this file is mytext.ps
Then I run (in Linux) my little script 'mkbook':
#! /bin/bash
## usage: mkbook infile.ps outfile.ps
cat $1 | /usr/bin/psbook | /usr/bin/psnup -pa4 -2 > $2
So the result of
mkbook mytext.ps mytext_book.ps
would be a PS file mytext_book.ps in which the pages have been
re-ordered, and then mounted 2 to a side. The result can then be
printed out on both sides sequentially (i.e. 1-recto, 1-verso;
2-recto, 2-verso; ...), either by turning the paper over by hand
and feeding it back into the printer, or by using your printer's
"duplex" function (if it has it) to automatically print recto-then-verso
on each sheet. Then the printed sheets can be folded and stapled
as you describe to produce a booklet.
You would need to replace "-pa4" (which is for 8.3 × 11.7) in the
command by "-pletter" (which is for 8 1/2 x 11).
'psbook' and 'psnup' are both part of the 'ghostscript' suite of
programs.
Hoping this helps,
Ted.
-------------------------------------------------
E-Mail: (Ted Harding) <address@hidden>
Date: 18-Nov-2012 Time: 21:43:57
This message was sent by XFMail
-------------------------------------------------
Re: [Groff] producing a booklet with groff ?,
Ted Harding <=