aboutsummaryrefslogtreecommitdiff
path: root/gx.tmac
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-23 21:36:31 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-23 21:36:46 +0200
commit0a57e91a484281ae52e576b6d340e9e64bbc1b0a (patch)
tree4bff329b9d350337bceaf2c07e26b1e8d8b89c62 /gx.tmac
parent909074e4fdf727f07556edc076f18c0fc86944d2 (diff)
downloadmk-0a57e91a484281ae52e576b6d340e9e64bbc1b0a.tar.gz
Add gx.tmac (extra macros)
Diffstat (limited to 'gx.tmac')
-rw-r--r--gx.tmac61
1 files changed, 61 insertions, 0 deletions
diff --git a/gx.tmac b/gx.tmac
new file mode 100644
index 0000000..7b324a2
--- /dev/null
+++ b/gx.tmac
@@ -0,0 +1,61 @@
+.\" "/.
+.\" extra stuff for mg "/.
+.\" "/.
+.\" Permission to use, copy, modify and/or "/.
+.\" distribute this software for any purpose "/.
+.\" with or without fee is hereby granted. "/.
+.\" "/.
+.
+.eo
+.
+.\" he -- toc-enabled heading
+.de he
+. h
+\$*
+. te .the \n% \$*
+..
+.
+.\" se -- toc-enabled subheading
+.de se
+. s
+\$*
+. te .the \n% \\h'18p'\$*
+..
+.
+.\" the -- toc entry
+.de the
+. nr _ \$1
+. shift
+. ta 0 \n(.luR
+. tc .
+\$* \n_
+. tc
+. br
+..
+.
+.\" n -- numbered list item
+.de n
+. if !'\$1'' \{\
+. nr ni \$1-1
+. af ni 0
+. if !'\$2'' .af ni \$2
+. ds n. .
+. if !'\$3'' .ds n. \$3
+. \}
+. nr ni +1
+. br
+. @e n
+. ti \n(tiu
+\n(ni\*(n. \c
+..
+.
+.am @a
+. @e n
+. @c p
+. nr sq \n(sp
+. nr sp 0
+. ta 3n +3n +3n +3n
+. @e
+..
+.
+.ec