From de908e14da32de8b583734c38932c2f6b1263b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 19 Jun 2021 15:38:23 +0200 Subject: Add _m (margin) environment This fixes a bug where the page number and footnotes were affected by the last active environment. --- g.tmac | 15 ++++++++++----- 1 file 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 -- cgit v1.2.3