groff-commit
[Top][All Lists]
Advanced

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

[groff] 66/126: [mm]: Slightly revise index output.


From: G. Branden Robinson
Subject: [groff] 66/126: [mm]: Slightly revise index output.
Date: Wed, 5 Jul 2023 17:02:58 -0400 (EDT)

gbranden pushed a commit to branch branden-2023-07-05
in repository groff.

commit 6d15da10a4fa3cb168249a7c9cc77d9881ae6431
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 cccf6fcc4..551c175b1 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 64af14fb3..7e66855ce 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-07-04 G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * m.tmac (IND): Use `hd@mark-trimmed` instead of `hd*mark` in
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 5f066cfd6..04d79e230 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3385,10 +3385,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]