[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Groff] How to set the exact top and bottom margin with -mm
From: |
Ted Harding |
Subject: |
RE: [Groff] How to set the exact top and bottom margin with -mm |
Date: |
Sat, 30 Sep 2000 16:58:23 +0100 (BST) |
On 30-Sep-00 Thomas Baruchel wrote:
> Brest, le samedi 30 septembre
>
> Hi, I just discovered the -mm macros after having always written raw
> troff code (sometimes I used -ms macros :-). Is it possible to set the
> exact value for the top and bottom space ?
The traditional mm macro is
.VM m n
which m lines to the top margin and n lines to the bottom margin.
Reading tmac.m (which, by the way, is internally quite well documented),
the groff implementation is
.\" set top and bottom margins
.de VM
.if \\n[.$]=0 \{\
. nr pg*extra-footer-size 0
. nr pg*extra-header-size 0
.\}
.if \\n[.$]>0 .nr pg*extra-header-size (v;\\$1)
.if \\n[.$]>1 .nr pg*extra-footer-size (v;\\$2)
.if \\n[D]>2 \{\
. tm extra top \\n[pg*extra-footer-size]
. tm extra bottom \\n[pg*extra-header-size]
.\}
address@hidden
..
which clearly does the same thing (note the "v" units in (v;\\$1) etc).
You could try re-writing this (changing (v;\\$1) to (p;\\$1) perhaps)
or you may get a better idea after reading the macro file.
Hope this helps.
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <address@hidden>
Fax-to-email: +44 (0)870 284 7749
Date: 30-Sep-00 Time: 16:58:23
------------------------------ XFMail ------------------------------