[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Custom page size & margin
From: |
Larry Kollar |
Subject: |
Re: [Groff] Custom page size & margin |
Date: |
Fri, 18 Jun 2004 10:03:10 -0400 |
Howdy --
OS: Linux(Slackware 9.0)
Groff version: 1.19
Ghostscript: 7.0.6
How can I set a customer page size and page margin?
What macro package are you using? Here's how you'd do it with mm or ms,
printing to 7x9-inch paper:
mm: groff -mm -rO0.75i -rW5.5i -rL9i -P-p9i,7i file.mm >file.ps
ms: groff -ms -rPO=0.75i -rLL=5.5i -rPL=9i -P-p9i,7i file.ms >file.ps
You might have to upgrade to 1.19.1 to make the ms version work though.
For -ms, you'll also have to add a line at the beginning of the file:
.if rPL .pl \n[PL]u
Not sure whether -me can do any of this.
Basically, the -r option sets a number register. One-letter names don't
need
the = sign between the name & the value. The -P option passes its
argument
to the postprocessor (grops for PS output in this case) and grops's -p
option
sets the page size (length,width).
Can someone recommend a good online web-pages/docuements/book (or
printer)
groff?
Heinz has already answered that one. :-)
--
Larry Kollar k o l l a r @ a l l t e l . n e t
Unix Text Processing: "UTP Revival"
http://home.alltel.net/kollar/utp/
Re: [Groff] Custom page size & margin, lists, 2004/06/19