aboutsummaryrefslogtreecommitdiff
path: root/toc/example.t
diff options
context:
space:
mode:
Diffstat (limited to 'toc/example.t')
-rw-r--r--toc/example.t30
1 files changed, 30 insertions, 0 deletions
diff --git a/toc/example.t b/toc/example.t
new file mode 100644
index 0000000..e725a98
--- /dev/null
+++ b/toc/example.t
@@ -0,0 +1,30 @@
+.so toc.tmac
+.
+.de H
+. ft B
+. ps +2p
+. vs +1p
+. sp 12p
+\&\\$*
+. br
+. ft
+. ps
+. vs
+. te .toce \\n% \\$*
+..
+.
+.de toce
+. nr _ \\$1
+. shift
+. tl '\\$*''\\n_'
+..
+.
+.sp |1i
+.to
+.sp 12p
+This is a demonstration of toc.tmac.
+.br
+.H Introduction
+.H Background
+.H Results
+.H Summary