[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 09/10: tmac/an-old.tmac: Move setup of IN and SN to end.
From: |
G. Branden Robinson |
Subject: |
[groff] 09/10: tmac/an-old.tmac: Move setup of IN and SN to end. |
Date: |
Thu, 17 Sep 2020 05:20:31 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 578f9824975c4250fd0c3a8f2a2a73eb906bbef7
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Sep 17 19:09:30 2020 +1000
tmac/an-old.tmac: Move setup of IN and SN to end.
* tmac/an-old.tmac (TH): Move setup of rendering parameter registers IN
and SN from here to the end of the file. (There's no need to re-test
whether they're set with every man(7) page that is rendered.) Update
comments.
---
ChangeLog | 6 ++++++
tmac/an-old.tmac | 26 ++++++++++++++++----------
2 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5bc1181..eae0448 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2020-09-17 G. Branden Robinson <g.branden.robinson@gmail.com>
+ tmac/an-old.tmac (TH): Move setup of rendering parameter
+ registers IN and SN from here to the end of the file. Update
+ comments.
+
+2020-09-17 G. Branden Robinson <g.branden.robinson@gmail.com>
+
tmac/an-old.tmac: Drop \*[an-empty] string. This string is
documented as preventing "looping" (presumably infinite) if
someone calls a two-font macro with an inconvenient parameter;
diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac
index e4e6c35..ac000f7 100644
--- a/tmac/an-old.tmac
+++ b/tmac/an-old.tmac
@@ -153,18 +153,10 @@
. ll \\n[LL]u
. ss 12
.
-.\" We must select an integer indentation value for nroff;
-.\" see comment in an-do-tag.
-. if !r IN \{\
-. ie t .nr IN 7.2n
-. el .nr IN 7n
-. \}
. PD
-. if !r SN \
-. nr SN 3n \" indentation of sub-sub-headings relative to sub-heads
. an-set-margin
-. nr an-tag-sep 1n
.
+. nr an-tag-sep 1n
. nr an-no-space-flag 0
. nr an-break-flag 0
. nr an-div? 0
@@ -684,6 +676,16 @@
. nr HY 6
.\}
.
+.\" standard indentation
+.if !r IN \{\
+. \" We must select an integer indentation value for nroff; see comment
+. \" in an-do-tag.
+. ie t \
+. nr IN 7.2n
+. el \
+. nr IN 7n
+.\}
+.
.\" line length
.if !r LL \{\
. \" If in troff mode, respect device default.
@@ -707,11 +709,15 @@
. nr S 12
.\}
.
+.\" subsection indentation
+.if !r SN \
+. nr SN 3n
+.
.\" adjustment mode
.if !d AD \
. ds AD b\"
.
-.\" section heading font
+.\" (sub)section heading font
.if !d HF \
. ds HF B\"
.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 09/10: tmac/an-old.tmac: Move setup of IN and SN to end.,
G. Branden Robinson <=