groff-commit
[Top][All Lists]
Advanced

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

[groff] 44/46: tmac/an-old.tmac (SS): Add devtags support.


From: G. Branden Robinson
Subject: [groff] 44/46: tmac/an-old.tmac (SS): Add devtags support.
Date: Sun, 18 Apr 2021 01:22:35 -0400 (EDT)

gbranden pushed a commit to branch dev-gropdf-boxes
in repository groff.

commit 7c1303ff9ad77d121ae1afcad3fa156f8e8310c3
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Apr 17 11:43:36 2021 +1000

    tmac/an-old.tmac (SS): Add devtags support.
    
    Set a subsection title as a second-level heading and add it to a table
    of contents, if any.  Prompted by a query from Hans Unzner to the groff
    mailing list.  Thanks, Hans!
---
 ChangeLog        | 7 +++++++
 tmac/an-old.tmac | 2 ++
 2 files changed, 9 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index be37277..b63f0c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2021-04-17  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * tmac/an-old.tmac (SS): Add devtags support.  Set a subsection
+       title as a second-level heading and add it to a table of
+       contents, if any.  Prompted by a query from Hans Unzner to the
+       groff mailing list.  Thanks, Hans!
+
+2021-04-17  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * tmac/an-old.tmac (SH): Fix apparent thinko.  Pass the devtags
        macro a literal "1" argument.  Passing it \n[an-level] wasn't
        correct (it stores the relative inset level, not a sectioning
diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index 96ce559..ad13147 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -337,6 +337,8 @@
 .  fi
 .  in \\n[IN]u
 .  ti \\n[SN]u
+.  nr need_eo_h 1
+.  DEVTAG-SH 2
 .  itc 1 an-trap
 .  nr an-no-space-flag 1
 .  nr an-break-flag 1



reply via email to

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