diff options
author | Sigrid <ftrvxmtrx@gmail.com> | 2020-05-04 11:57:24 +0200 |
---|---|---|
committer | Sigrid <ftrvxmtrx@gmail.com> | 2020-05-04 11:57:24 +0200 |
commit | 7de7414e885c3fa3c52200c49528e1e8da5adcc9 (patch) | |
tree | 4d06c98230ac3676074d948aafb524ba5a88f2d1 /sys/lib/tmac | |
parent | 5e7959182a569e0ff089df5df34013e28cfe6bff (diff) |
tmac.eai: wrapper around -me: auto indexing sections, .TC macro (thanks sirjofri)
Diffstat (limited to 'sys/lib/tmac')
-rw-r--r-- | sys/lib/tmac/tmac.eai | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sys/lib/tmac/tmac.eai b/sys/lib/tmac/tmac.eai new file mode 100644 index 000000000..099d1817b --- /dev/null +++ b/sys/lib/tmac/tmac.eai @@ -0,0 +1,43 @@ +.\" Wrapper around -me +.\" This package provides auto indexing for sections and a .TC macro. +.\" Additional feature: In stock -me you can only use 3 fonts with the -me macros. Now you can for example do ".nr sf 4". +.\" created by sirjofri +.\" public domain +.so /sys/lib/tmac/tmac.e +.ds tn Table of Contents +.am $0 +.(x t +.if \\n(.$>2 \ +. nr $i \\$3*\\\\n(si +.in \\\\n($iu +\\*($n\0\0\\*(|x +.)x +.. +.de TC +.bp +.$p "\\\\*(tn" +.sp 1m +.xp t +.. +.de @F +.nr ~ \\$1 +.if \\n~>0 \ +\{\ +. ul 0 +. ie \\n~>4 \ +\{\ +. if n .ul 10000 +. if t .ft \\n~ +. \} +. el \ +. ft \\n~ +.\} +.rr ~ +.. +.de FS +.(f +\\** +.. +.de FE +.)f +.. |