aboutsummaryrefslogtreecommitdiff
path: root/g.tmac
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-17 18:21:19 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-17 18:21:19 +0200
commit01f5e05d2519945a337db76557a81c38842c1f09 (patch)
treed078d69953489f9e0275a82e7d1f184f04abce94 /g.tmac
downloadmk-01f5e05d2519945a337db76557a81c38842c1f09.tar.gz
First commit
Diffstat (limited to 'g.tmac')
-rw-r--r--g.tmac76
1 files changed, 76 insertions, 0 deletions
diff --git a/g.tmac b/g.tmac
new file mode 100644
index 0000000..6423cd9
--- /dev/null
+++ b/g.tmac
@@ -0,0 +1,76 @@
+.eo
+.\" s -- start document section
+.de s
+. \" start header
+. if '\$1'h' \{\
+. sp 1i
+. _d t \" title
+. ps +4p
+. vs +2p
+. ft B
+. ad c
+. _d
+. _d n \" name (of author)
+. ad c
+. _d
+. _d d \" date
+. ad c
+. _d
+. _d p \" paragraph
+. ad b
+. _d
+. \}
+. \" start body
+. if '\$1'b' \{\
+. sp 0.2i
+. \}
+..
+.\" _d -- define environment
+.de _d
+. ev \$1
+..
+.\" _e -- enter environment
+.de _e
+. ev
+. ds penv \*[env]
+. ds env \$1
+. ev \$1
+..
+.\" t -- title
+.de t
+. _e t
+..
+.\" n -- name (of author)
+.de n
+. br
+. _e n
+. sp 0.3v
+..
+.\" d -- date
+.de d
+. br
+. _e d
+. sp 0.3v
+. af mo 00
+. af dy 00
+. ie '\$1'' \n[year]-\n(mo-\n(dy
+. el \$1
+. af mo 1
+. af dy 1
+..
+.\" p -- paragraph
+.de p
+. br
+. _e p
+. sp 0.3v
+. if '\*[penv]'p' \h'0.5c'
+..
+.\" e -- emphasis
+.de e
+\$3\fI\$1\fP\$2
+..
+.\" x -- extra emphasis
+.de x
+\$3\f(BI\$1\fP\$2
+..
+.ec