groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 62/115: [mm]: Slightly revise index output.


From: G. Branden Robinson
Subject: [groff] 62/115: [mm]: Slightly revise index output.
Date: Thu, 1 Jun 2023 10:46:10 -0400 (EDT)

gbranden pushed a commit to branch branden-2022-06-01
in repository groff.

commit b73d891dd4950383bd6c53eb25f2ccfb788c31f1
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu May 25 06:12:07 2023 -0500

    [mm]: Slightly revise index output.
    
    * contrib/mm/m.tmac (INDP): Call `SK` if `TXIND` is not defined, instead
      of as the first thing if `TYIND` is not defined.  This is easier to
      rationalize in the documentation as something that happens before the
      index caption is written.  This way any page breaking or spacing prior
      to the index is strictly `TXIND`'s responsibility, and the formatting
      of the index caption itself, followed by any formatting changes
      appropriate to the index entries, belongs to `TYIND`.
    
    * NEWS: Add item.
---
 NEWS                 |  4 ++++
 contrib/mm/ChangeLog | 13 +++++++++++++
 contrib/mm/m.tmac    |  4 ++--
 3 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 8a1a31302..417e21763 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,10 @@ VERSION next
 Macro packages
 --------------
 
+o The m (mm) macro package's `IND` macro (a GNU extension), now calls
+  `SK` only if no `TXIND` macro is defined, instead of performing this
+  action as part of the fallback when no `TYIND` macro is defined.
+
 o The s (ms) macro package now sets the vertical spacing register
   defaults for normal (`VS`) and footnote (`FVS`) text to 120% of the
   existing type size rather than 2 points larger to comport with
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 15f97d737..a73a71fd7 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,16 @@
+2023-05-25  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       Slightly revise index output.
+
+       * m.tmac (INDP): Call `SK` if `TXIND` is not defined, instead of
+       as the first thing if `TYIND` is not defined.  This is easier to
+       rationalize in the documentation as something that happens
+       before the index caption is written.  This way any page breaking
+       or spacing prior to the index is strictly `TXIND`'s
+       responsibility, and the formatting of the index caption itself,
+       followed by any formatting changes appropriate to the index
+       entries, belongs to `TYIND`.
+
 2023-05-18  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        Improve input validation of `INITI`, `IND` macros.
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 851974f69..e6cc4b234 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3380,10 +3380,10 @@ exceeds depth of nested lists (\\n[li*lvl])
 .      if !\\n[Cp] .pg@next-page
 .      \" print INDEX
 .      \" execute user-defined macros
-.      if d TXIND .TXIND
+.      ie d TXIND .TXIND
+.      el SK
 .      ie d TYIND .TYIND
 .      el \{\
-.              SK
 .              ce
 \\*[Index]
 .              SP 3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]