aboutsummaryrefslogtreecommitdiff
path: root/g.tmac
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-24 01:05:39 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-24 01:06:34 +0200
commitc8a470de42c0993f5d4621897f7b22887462fc32 (patch)
tree96b70a2bf23940bca9df658eee5fa6095c23dc61 /g.tmac
parentc84c25dd28a406c5f8a8e40963536b088de3e1e8 (diff)
downloadmk-c8a470de42c0993f5d4621897f7b22887462fc32.tar.gz
Use Heirloom troff
Mg is now tested with both GNU and Heirloom troff.
Diffstat (limited to 'g.tmac')
-rw-r--r--g.tmac10
1 files changed, 4 insertions, 6 deletions
diff --git a/g.tmac b/g.tmac
index 69e39b2..b751607 100644
--- a/g.tmac
+++ b/g.tmac
@@ -34,10 +34,9 @@
.
. \" set header/footer traps
. wh 0 @th
-. if \n(.t=\n(.p .wh -1i @tf
-.
-. \" trigger header
-. if \n(nl=0 .@th
+. if \n(nl<=0 .@th
+. nr _ \n(.p-\n(nl
+. if \n(.t=\n_ .wh -1i @tf
.
. \" configure environments
. @e d \" date
@@ -348,9 +347,8 @@ ___________________
.
. \" switch environment and capture footnote
. (e @f
-. ti 9p
. boxa @n
-\v'-.3m'\s'\En(.s*80/100'\n(@n\s0\v'.3m'\h'2p'\c
+\h'9p'\v'-.3m'\s'\En(.s*80/100'\n(@n\s0\v'.3m'\h'2p'\c
..
.
.\" ) -- end footnote