From a7c59ecbf5b37e8dac7e23e5056106d30b71d41c Mon Sep 17 00:00:00 2001 From: "John Ankarstr\\xf6m" Date: Wed, 2 Jun 2021 22:11:39 +0200 Subject: re.tmac: Add comments, configurable options --- re.tmac | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/re.tmac b/re.tmac index 08b9920..f7a04fb 100644 --- a/re.tmac +++ b/re.tmac @@ -1,25 +1,40 @@ +.\" configurable options +.\" -------------------- +.ds Sf C \" font +.nr Sp 8p \" point size +.nr Sv 11p \" vertical spacing (leading) +.nr St 8n \" tab width +. +.\" setup +.\" ----- +.nr FM -1v \" ensure that footnotes fit +. +.\" macro definitions +.\" ----------------- .eo +.\" Sr -- source code begin .de Sr -. mk c +. mk c \" vertical position where text ends . if (\nb > \nc) .sp (\nbu - \ncu - 1v) . if (\nb > 0) .if (\nc > \nb) .sp 0.5v . if !(\nz = 1) .if (\np > 0) .if (\n% > \np) .sp -(\nbu - \ncu - 1.5v) . nf -. ft C -. ps -2p -. vs -1p -. ta 8n +8n +8n +8n +8n +. ft \*(Sf +. ps \n(Spu +. vs \n(Svu +. ta \n(Stu +\n(Stu +\n(Stu +\n(Stu +\n(Stu +\n(Stu . in 2.2i -. mk a -. nr p \n% +. mk a \" vertical position where source code begins +. nr p \n% \" current page number .. +.\" Se -- source code end .de Se -. mk b +. mk b \" vertical position where source code ends . rt (\nau - 7p) . nr z 0 . if (\n% > \np) \{ -. rt \n(HMu -. nr z 1 +. rt \n(HMu \" return to top of new page +. nr z 1 \" signal page break . \} . nr LL 2i . LP -- cgit v1.2.3