From 0d1f04b92b1f3c369036c4c17af53e23e5d2be4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 22 Jun 2021 20:30:15 +0200 Subject: Add toc.tmac --- toc/example.t | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 toc/example.t (limited to 'toc/example.t') 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 -- cgit v1.2.3