summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarstr\xf6m <john@ankarstrom.se>2021-06-02 16:55:26 +0200
committerJohn Ankarstr\xf6m <john@ankarstrom.se>2021-06-02 16:55:26 +0200
commit68d190c048db3d0f29bd0c0d9895b83d229928ae (patch)
tree7d9f18ac6379573a56f867af56d02d7cb6d12c44
parente0ddbff6b1ad41446bacf34666cda2f3f5273502 (diff)
downloadref-68d190c048db3d0f29bd0c0d9895b83d229928ae.tar.gz
Add re.tmac
-rw-r--r--greet.ms31
-rw-r--r--re.tmac22
2 files changed, 23 insertions, 30 deletions
diff --git a/greet.ms b/greet.ms
index 6a18efe..99c9de1 100644
--- a/greet.ms
+++ b/greet.ms
@@ -1,33 +1,4 @@
-.eo
-.de Sr
-.sp \n[dn]u-2v
-.br
-.ev (d
-.evc 0
-.par@reset
-.ta 8n +8n +8n +8n +8n
-.nf
-.ft C
-.ps -2p
-.di @d
-..
-.de Se
-.br
-.ev
-.di
-.box
-.in 2.3i
-.@d
-.sp -\n[dn]u-0.2v
-.br
-.rr @s
-.rm @s
-.rm @d
-.nr LL 2i
-..
-.de Ex
-..
-.ec
+.so re.tmac
.TL
.BI greet ,
an example C program
diff --git a/re.tmac b/re.tmac
new file mode 100644
index 0000000..6b8f0ad
--- /dev/null
+++ b/re.tmac
@@ -0,0 +1,22 @@
+.eo
+.de Sr
+. mk c
+. if (\nb > \nc) .sp (\nbu - \ncu - 1v)
+. if (\nb > 0) .if (\nc > \nb) .sp (\ncu - \nbu - 0.5v)
+. nf
+. ft C
+. ps -1p
+. vs -1p
+. ta 8n +8n +8n +8n +8n
+. in 2.2i
+. mk a
+..
+.de Se
+. mk b
+. rt (\nau - 0.5v)
+. br
+. rm @d
+. nr LL 2i
+. LP
+..
+.ec