aboutsummaryrefslogtreecommitdiff
path: root/g.tmac
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-19 15:38:23 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-19 15:39:33 +0200
commitde908e14da32de8b583734c38932c2f6b1263b11 (patch)
tree670bce97eb162a603035506ccae17289bf832d52 /g.tmac
parenta05bca953d9b2f882e07566f976785d141ea57d0 (diff)
downloadmk-de908e14da32de8b583734c38932c2f6b1263b11.tar.gz
Add _m (margin) environment
This fixes a bug where the page number and footnotes were affected by the last active environment.
Diffstat (limited to 'g.tmac')
-rw-r--r--g.tmac15
1 files changed, 10 insertions, 5 deletions
diff --git a/g.tmac b/g.tmac
index d35b462..d9e2bed 100644
--- a/g.tmac
+++ b/g.tmac
@@ -41,7 +41,7 @@
. ad c
. _e h \" heading
. _ec 0
-. nr sp 0.6v
+. nr sp 2v
. ps +1p
. ft B
. _e l \" literal display
@@ -70,7 +70,7 @@
. vs -1p
. _e s \" section heading
. _ec 0
-. nr sp 0.6v
+. nr sp 1v
. ft B
. _e t \" title
. _ec 0
@@ -80,11 +80,13 @@
. ad c
. _e
.
-. \" configure footnote environment
+. \" configure special environments
. _E _f \" footnote
-. evc 0
+. _ec 0
. ps -2p
. \" do not change vs!
+. _E _m \" margins (header, footer)
+. _ec 0
. _E
..
.
@@ -150,6 +152,7 @@
.
.\" _ft -- footer trap
.de _ft
+. _E _m
' sp 2v
. tl ''%''
' bp
@@ -157,11 +160,13 @@
.
.\" _ht -- header trap
.de _ht
+. _E _m
' sp \n(mtu
..
.
.\" _nt -- footnote trap
.de _nt
+. _E _m
.
. \" print collected footnotes
___________________
@@ -266,7 +271,7 @@ ___________________
. if '\*[_penv]'p' .ti \n(tiu
..
.
-.\" s -- section heading
+.\" s -- subheading
.de s
. br
. _e s