diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-19 15:38:23 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-19 15:39:33 +0200 |
commit | de908e14da32de8b583734c38932c2f6b1263b11 (patch) | |
tree | 670bce97eb162a603035506ccae17289bf832d52 | |
parent | a05bca953d9b2f882e07566f976785d141ea57d0 (diff) | |
download | mk-de908e14da32de8b583734c38932c2f6b1263b11.tar.gz |
Add _m (margin) environment
This fixes a bug where the page number and footnotes were affected
by the last active environment.
-rw-r--r-- | g.tmac | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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 |