[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 08/36: groff_mm(7): Fix errors discussing H, Ej, Hps, ...
From: |
G. Branden Robinson |
Subject: |
[groff] 08/36: groff_mm(7): Fix errors discussing H, Ej, Hps, ... |
Date: |
Tue, 17 Jan 2023 20:45:11 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit c6f467d7f68a65e336f507e7a681552768b2c8cb
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Jan 15 02:01:35 2023 -0600
groff_mm(7): Fix errors discussing H, Ej, Hps, ...
* Stop discussing `Ej` as if it were a Boolean; it's a heading level
threshold.
* Update `H` discussion to reflect groff mm `Hps`, `Hps1`, and `Hps2`
extension registers.
* Correct description of defaults, and document different nroff- and
troff-mode defaults for heading pre-spacing.
---
contrib/mm/groff_mm.7.man | 101 +++++++++++++++++++++++++++++++---------------
1 file changed, 69 insertions(+), 32 deletions(-)
diff --git a/contrib/mm/groff_mm.7.man b/contrib/mm/groff_mm.7.man
index 2b4bf48e1..50b33d4af 100644
--- a/contrib/mm/groff_mm.7.man
+++ b/contrib/mm/groff_mm.7.man
@@ -1590,22 +1590,28 @@ Register
.B Ej
controls page ejection before the heading.
.
-By default, a level-one heading gets two blank lines before it;
-higher levels only get one.
-.
-A new page is ejected before each first-level heading if register
-.B Ej
-is\~1.
+If
+.I level
+is less than
+.BR Ej 's
+value,
+the page is broken prior to formatting the heading.
.
-All levels below or equal the value of
-.B Ej
-get a new page.
.
-Default value for
-.B Ej
-is\~0.
+.IP
+If not preceded by a page break,
+a heading of
+.I level
+greater than the value of register
+.B Hps
+is preceded by the amount of vertical space in register
+.BR Hps1 ,
+and by the amount in
+.B Hps2
+otherwise.
.RE
.
+.
.IP
.B Heading break level
.
@@ -4163,9 +4169,13 @@ see
.
.TP
.B Ej
-If set to\~1, eject page before each first-level heading.
+is the heading level threshold below which pages will be broken before
+formatting a heading;
+see
+.BR H .
.
-Default is\~0.
+The default
+.RB is\~ 0 .
.
.
.TP
@@ -4257,38 +4267,65 @@ T}
.TE
.RE
.
+.
.TP
.B Hps
-Heading pre-space level.
+sets the heading level threshold for application of distinct vertical
+space;
+see
+.BR H .
.
-If the heading level is less than or equal to
+If the heading level is greater than the value in
.BR Hps ,
-two lines precede the section heading instead of one.
-.
-Default is first level only.
-.
-The real amount of lines is controlled by the registers
+the
.B Hps1
-and
+amount is used;
+otherwise that of
.BR Hps2 .
.
+The default
+.RB is\~ 1 .
+.
+The value of
+.B Hps
+should be strictly greater than that of
+.BR Ej .
+.
+.
.TP
.B Hps1
-Number of lines preceding
-.B .H
-if the heading level is greater than
-.BR Hps .
+configures the amount of vertical space preceding a heading above the
+.B Hps
+threshold.
+.
+The default
+.RB is\~ 0.5v
+on
+.I troff
+devices
+.RB and\~ 1v
+on
+.I nroff
+devices.
.
-Value is in units, default is 0.5.
.
.TP
.B Hps2
-Number of lines preceding
-.B .H
-if the heading level is less than or equal to
-.BR Hps .
+configures the amount of vertical space preceding a heading below or at
+the
+.B Hps
+threshold.
+.
+The default
+.RB is\~ 1v
+on
+.I troff
+devices
+.RB and\~ 2v
+on
+.I nroff
+devices.
.
-Value is in units, default is\~1.
.
.TP
.B Hs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 08/36: groff_mm(7): Fix errors discussing H, Ej, Hps, ...,
G. Branden Robinson <=