gbranden pushed a commit to branch master
in repository groff.
commit b7de82caa26849eb16b1120b8aad3e1af166384a
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Apr 4 02:16:37 2024 -0500
groff_mm(7): Describe behavior of `nP` macro.
---
contrib/mm/groff_mm.7.man | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
diff --git a/contrib/mm/groff_mm.7.man b/contrib/mm/groff_mm.7.man
index 5ff3cf3d6..95d36b1c1 100644
--- a/contrib/mm/groff_mm.7.man
+++ b/contrib/mm/groff_mm.7.man
@@ -2824,12 +2824,27 @@ End notation begun with
filling is enabled.
.
.
+.\" XXX: Could we use a more general mechanism? Call it `NP`?
.TP
-.BI nP\ \fR[\fPtype\fR]\fP
-Begin a numbered paragraph at heading level two.
+.BR nP\~ [
+.IR type ]
+As
+.BR P ,
+but set a paragraph number in the form
+.IR x . yy ,
+where
+.I x
+is the number of the second heading level,
+and
+.I yy
+increments with each
+.B nP
+call;
+its value is not reset when the second-level heading number changes.
.
-See
-.BR P .
+.I mm
+uses a register format of \[lq]00\[rq] for
+.I yy.
.
.
.br
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit