[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] pointsize changes in .NH ms-macro
From: |
Keith MARSHALL |
Subject: |
Re: [Groff] pointsize changes in .NH ms-macro |
Date: |
Wed, 8 Sep 2004 13:26:52 +0100 |
Earlier today, I wrote:
> Here's a modified definition of SHEAD, which should do the trick ...
>
> .de SHEAD
> .\"inputs: $1: NH-level, $2: title
> .\"------
> .br
> .nr incps (4-\\$1)*3
> .if \\n[incps]<0 .nr incps 0 \"just in case ...
> .ne 3v+\\n[incps]p+\\n[\\n[.ev]:PD]u+\\n(.Vu
> .nr incps \\n[incps]/3
> .nr PS +\\n[incps]
> .nr VS +\\n[incps]
> .NH \\$1
> \\$2
> .nr PS -\\n[incps]
> .nr VS -\\n[incps]
> ..
Or, slightly simpler, since the bottom of page trap will reset the
line height to \n(VSp anyway, when it is sprung ...
.de SHEAD
.\"inputs: $1: NH-level, $2: title
.\"------
.br
.nr incps 4-\\$1
.if \\n[incps]<0 .nr incps 0 \"just in case ...
.vs +\\n[incps]p
.ne 3v+\\n[\\n[.ev]:PD]u+\\n(.Vu
.nr PS +\\n[incps]
.nr VS +\\n[incps]
.NH \\$1
\\$2
.nr PS -\\n[incps]
.nr VS -\\n[incps]
..
Best regards,
Keith.