aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-24 16:17:23 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-24 16:17:40 +0200
commit5f1752fa417f32956827825d4cc4f09941d029b6 (patch)
tree65e006acf652d657467c936cc9cc0ec858507b15
parent72bc79e8b82d9d178cc0c041c483e771616df032 (diff)
downloadmk-5f1752fa417f32956827825d4cc4f09941d029b6.tar.gz
README.t: Add minor changes
-rw-r--r--README.pdfbin58911 -> 59049 bytes
-rw-r--r--README.t16
2 files changed, 13 insertions, 3 deletions
diff --git a/README.pdf b/README.pdf
index 18b737f..bfc7f3a 100644
--- a/README.pdf
+++ b/README.pdf
Binary files differ
diff --git a/README.t b/README.t
index a9ba29d..f040334 100644
--- a/README.t
+++ b/README.t
@@ -4,6 +4,7 @@
.mediasize letter
.fp 0 M DejaVuSansMono ttf
.
+.\" configure table of contents
.eo
.de he
. bp
@@ -23,10 +24,17 @@
. br
. sp -1
\$*
+. if '\$1 \$2 \$3'How do I' \{\
+. nr hdi +1
+. if \n[hdi]>1 \{\
+. shift 3
+. te .the \na \n% \\h'36p'"\\h'20.4p'\$*
+. return
+. \}
+. \}
. te .the \na \n% \\h'18p'\$*
..
.
-.\" the -- toc entry
.de the
. nr _a \$1
. nr _p \$2
@@ -696,12 +704,14 @@ Use
to register a line to be inserted into the table of contents.
Use
.c to
-to insert the table of contents.
+to insert the lines registered by
+.c te
+into the document.
Note that the argument given to
.c te
will be interpreted as a troff input line.
.p
-The following definitions provide a good basis:
+The following definitions provide a good starting point:
.l
\&.eo
\&.de he