diff options
author | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-06-02 16:55:26 +0200 |
---|---|---|
committer | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-06-02 16:55:26 +0200 |
commit | 68d190c048db3d0f29bd0c0d9895b83d229928ae (patch) | |
tree | 7d9f18ac6379573a56f867af56d02d7cb6d12c44 | |
parent | e0ddbff6b1ad41446bacf34666cda2f3f5273502 (diff) | |
download | ref-68d190c048db3d0f29bd0c0d9895b83d229928ae.tar.gz |
Add re.tmac
-rw-r--r-- | greet.ms | 31 | ||||
-rw-r--r-- | re.tmac | 22 |
2 files changed, 23 insertions, 30 deletions
@@ -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 @@ -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 |