[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 14/29: [ms]: Apply depth-specific indents to TOC entries.
From: |
G. Branden Robinson |
Subject: |
[groff] 14/29: [ms]: Apply depth-specific indents to TOC entries. |
Date: |
Tue, 26 Apr 2022 06:40:17 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 2a99e14dc1ffd73c48457709deb8a6115b955955
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Apr 17 19:02:39 2022 +1000
[ms]: Apply depth-specific indents to TOC entries.
* tmac/s.tmac (XH-UPDATE-TOC): Modify Keith Marshall's new XN/XH feature
to indent TOC entries by section heading depth. The increment is 2
ens per depth level.
---
ChangeLog | 6 ++++++
tmac/s.tmac | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 653bb6ed..8354b68f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -33,6 +33,12 @@
* bootstrap.conf: update copyright date.
+2022-04-17 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * tmac/s.tmac (XH-UPDATE-TOC): Modify Keith Marshall's new XN/XH
+ feature to indent TOC entries by section heading depth. The
+ default increment is 2 ens.
+
2022-04-17 G. Branden Robinson <g.branden.robinson@gmail.com>
* tmac/s.tmac (XA): Drop apparently useless `ll` request. It
diff --git a/tmac/s.tmac b/tmac/s.tmac
index 98bf0ce7..c6cad011 100644
--- a/tmac/s.tmac
+++ b/tmac/s.tmac
@@ -1768,7 +1768,8 @@ along with this program. If not, see
<http://www.gnu.org/licenses/>.
.\" .XH-UPDATE-TOC <outline-level> [<section-number>] <text>
.\" (<section-number> present only when called by XN)
.XS
-.shift\" don't use <outline-level> in rudimentary style
+.in (\\$1u - 1u * 2n)
+.shift
\&\\$*\" capture <section-number> (if present) and <text>
.XE
..
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 14/29: [ms]: Apply depth-specific indents to TOC entries.,
G. Branden Robinson <=