summaryrefslogtreecommitdiff
path: root/re.tmac
diff options
context:
space:
mode:
authorJohn Ankarstr\xf6m <john@ankarstrom.se>2021-06-02 17:35:53 +0200
committerJohn Ankarstr\xf6m <john@ankarstrom.se>2021-06-02 17:38:59 +0200
commit1e02b5a1a2e79b62343eb888d3b2452c70116c08 (patch)
tree4477c48c24976ba08fe2b444172bc4e372a19ca5 /re.tmac
parentf0be560aa28fc1cf08c01946658ded83e0d993a7 (diff)
downloadref-1e02b5a1a2e79b62343eb888d3b2452c70116c08.tar.gz
re.tmac: Handle page breaks
It could be better, but it works for now.
Diffstat (limited to 're.tmac')
-rw-r--r--re.tmac9
1 files changed, 8 insertions, 1 deletions
diff --git a/re.tmac b/re.tmac
index 9b8ec93..a896f9e 100644
--- a/re.tmac
+++ b/re.tmac
@@ -3,6 +3,7 @@
. mk c
. 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 -1p
@@ -10,10 +11,16 @@
. ta 8n +8n +8n +8n +8n
. in 2.2i
. mk a
+. nr p \n%
..
.de Se
. mk b
-. rt (\nau - 0.5v)
+. rt (\nau - 7p)
+. nr z 0
+. if (\n% > \np) \{
+. rt \n(HMu
+. nr z 1
+. \}
. nr LL 2i
. LP
..