[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 11/33: groff_mm(7): Revise .RP, .TC, and \n[Rpe].
From: |
G. Branden Robinson |
Subject: |
[groff] 11/33: groff_mm(7): Revise .RP, .TC, and \n[Rpe]. |
Date: |
Sun, 29 Jan 2023 19:35:26 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit eadc3fe916c265e115bb2b0485853269abb2c9c6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Jan 23 14:31:41 2023 -0600
groff_mm(7): Revise .RP, .TC, and \n[Rpe].
* Recast and clarify behavior of `RP`.
* Move page break policy table to `Rpe` register description.
* Speak in terms of "vertical spacing", not "blank lines".
* Stop redundantly documenting `Rp` string default.
* Document in `TC` description that it flushes displays (first), and
calls RP if references are pending.
* Recast `Rpe` register description.
---
contrib/mm/groff_mm.7.man | 93 +++++++++++++++++++++++++----------------------
1 file changed, 49 insertions(+), 44 deletions(-)
diff --git a/contrib/mm/groff_mm.7.man b/contrib/mm/groff_mm.7.man
index 1b81642ea..937057b46 100644
--- a/contrib/mm/groff_mm.7.man
+++ b/contrib/mm/groff_mm.7.man
@@ -3069,62 +3069,46 @@ incremented number between square brackets.
.I text-indent
changes the default indentation.
.
-.TP
-.BI RP\ "\fR[\fParg1 \fR[\fParg2\fR]]\fP"
-Produce reference page.
-.
-This macro can be used if a reference page is wanted somewhere in the
-document.
.
-It is not needed if
-.B TC
-is used to produce a table of contents.
+.TP
+.BR RP \~\c \" space in roman because we must use 2-font macro with \c
+.RI [ suppress-counter-reset \~[ page-ejection-policy ]]
+Format a reference page,
+listing items accumulated within
+.BR RS / RF
+pairs.
.
-The reference page is then printed automatically.
+The reference counter is reset unless the first argument
+.RB is\~ 1 .
.
-.IP
-The reference counter is not reset if
-.I arg1
-is\~1.
+Normally,
+page breaks occur before and after the references are output;
+the register
+.B Rpe
+configures this behavior,
+and a second argument overrides its value.
.
-.IP
-.I arg2
-tells
+.B TC
+calls
.B RP
-whether to eject a page or not.
+automatically if references have accumulated.
.
.
.IP
-.TS
-tab(@);
-Lf(BI) Lb
-L Lx.
-arg2@Effect
-0@The reference page is printed on a separate page.
-1@Do not eject page after the list.
-2@Do not eject page before the list.
-3@Do not eject page before and after the list.
-.TE
-.
-.
-.IP
-The reference items are separated by a blank line.
+References are list items,
+and thus are vertically separated
+(see
+.BR LB ).
.
Setting register
.B Ls
-to\~0 suppresses the line.
+.RB to\~ 0
+suppresses this spacing.
.
-.IP
The string
.B Rp
-contains the reference page title and is set to \[lq]REFERENCES\[rq]
-by default.
+contains the reference page caption.
.
-The register
-.B Rpe
-holds the default value for the second argument of
-.BR RP ;
-it is initially set to\~0.
.
.TP
.BI RS\ \fR[\fPstring-name\fR]\fP
@@ -3342,6 +3326,13 @@ Table of contents.
.
This macro is normally used as the last line of the document.
.
+It flushes any pending displays and,
+if any references are pending
+(see
+.BR RS ),
+calls
+.BR RP .
+.
The pages of the table of contents are numbered with Roman numerals;
their appearance can be suppressed with the
.B Oc
@@ -4730,12 +4721,26 @@ T}
.IP
Default is\~0.
.
+.\" XXX: Why is this not named `Rpej`?
.TP
.B Rpe
-Set default value for second argument of
-.BR .RP .
+configures the default page ejection policy for reference pages;
+see
+.B RP
+.RB ( 0 ).
.
-Default is\~0.
+.
+.IP
+.TS
+tab(@);
+Lb Lb
+L Lx.
+Value@Effect
+0@Break the page before and after the list of references.
+1@Suppress page break after the list.
+2@Suppress page break before the list.
+3@Suppress page breaks before and after the list.
+.TE
.
.
.TP
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 11/33: groff_mm(7): Revise .RP, .TC, and \n[Rpe].,
G. Branden Robinson <=