gbranden pushed a commit to branch master
in repository groff.
commit 3e7442ed16b534c529f62e4535c36f9ebfb714b1
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Aug 14 12:28:23 2025 -0500
[mm]: Add new register names `Ftnum` and `Rfnum`.
* contrib/mm/m.tmac: Add new aliases `Ftnum` and `Rfnum` for the
internal register names `ft*nr` and `ref*nr`, respectively.
* contrib/mm/groff_mm.7.man (Registers): Document them.
* NEWS: Add item.
---
NEWS | 5 +++++
contrib/mm/ChangeLog | 6 ++++++
contrib/mm/groff_mm.7.man | 48 ++++++++++++++++++++++++++++++++---------------
contrib/mm/m.tmac | 8 +++++---
4 files changed, 49 insertions(+), 18 deletions(-)
diff --git a/NEWS b/NEWS
index 4bf6af0f3..e1131a576 100644
--- a/NEWS
+++ b/NEWS
@@ -663,6 +663,11 @@ Macro packages
* The m (mm) macro package has renamed the `Tcst` string to `Tcstatus`
to make its purpose less obscure. The old name remains as an alias.
+* The m (mm) macro package recognizes new register names `Ftnum` and
+ `Rfnum` for the automatically incrementing footnote and reference
+ counters. The old, DWB-compatible but cryptic, names `:p` and `:R`
+ remain supported.
+
* The s (ms) macro package now sets the vertical spacing register
defaults for normal (`VS`) and footnote (`FVS`) text to 120% of the
type size configured in the `PS` and `FPS` registers, respectively,
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 876ecc6b4..dc748514f 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,9 @@
+2025-08-14 G. Branden Robinson <[email protected]>
+
+ * m.tmac: Add new aliases `Ftnum` and `Rfnum` for the internal
+ register names `ft*nr` and `ref*nr`, respectively.
+ * groff_mm.7.man (Registers): Document them.
+
2025-08-14 G. Branden Robinson <[email protected]>
* m.tmac: Rename API string `Tcst` to `Tcstatus` to make its
diff --git a/contrib/mm/groff_mm.7.man b/contrib/mm/groff_mm.7.man
index 846ba0a82..98c79e64c 100644
--- a/contrib/mm/groff_mm.7.man
+++ b/contrib/mm/groff_mm.7.man
@@ -1744,7 +1744,7 @@ is called is collected into a footnote.
By default,
footnotes are automatically numbered starting at 1;
the number is available in register
-.B :p
+.B Ftnum
and,
with a trailing period,
in
@@ -4639,20 +4639,6 @@ is in use
.
.
.TP
-.B :p
-is an auto-incrementing footnote counter;
-see
-.BR FS .
-.
-.
-.TP
-.B :R
-is an auto-incrementing reference counter;
-see
-.BR RS .
-.
-.
-.TP
.B Aph
formats an appendix heading
(and title,
@@ -4895,6 +4881,22 @@ see
.
.
.TP
+.B Ftnum
+is an auto-incrementing footnote counter;
+see
+.BR FS .
+.
+.I "groff mm"
+recognizes
+.B :p
+as an alias of
+.B Ftnum
+for DWB
+.I mm
+compatibility.
+.
+.
+.TP
.B H1
.TQ
\&.\|.\|.
@@ -5460,6 +5462,22 @@ and
.
.
.TP
+.B Rfnum
+is an auto-incrementing reference counter;
+see
+.BR RS .
+.
+.I "groff mm"
+recognizes
+.B :R
+as an alias of
+.B Rfnum
+for DWB
+.I mm
+compatibility.
+.
+.
+.TP
.B Rfstyle
determines the format of the reference number in the
.B Rf
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 65c6f6120..afe68aeca 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -1935,7 +1935,8 @@ breaking page
.nr ft*note-size 0
.nr ft*busy 0
.nr ft*nr 0 1
-.aln :p ft*nr
+.aln Ftnum ft*nr
+.aln :p ft*nr \" for DWB mm compatibility
.nr ft*wide 0
.nr ft*hyphen 0\" hyphenation value
.nr ft*adjust 1\" >0 if adjust true
@@ -3226,9 +3227,10 @@ exceeds depth of nested lists (\\n[li*lvl])
.\"########################### module ref ############################
.mso refer-mm.tmac
.nr ref*nr 0 1
-.aln :R ref*nr
+.aln Rfnum ref*nr
+.aln :R ref*nr \" for DWB mm compatibility
.nr ref*nr-width 5n
-.nr ref*was-RS-used 0 \" for end-of-text
+.nr ref*was-RS-used 0 \" for end-of-text
.ds ref*nroff-( [
.ds ref*troff-( \v'-.4m'\s-3
.ds ref*nroff-) ]
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit