From 4ef9c2b48f9fcdc5b8c347367566a987a9893aa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 24 Jun 2021 10:55:19 +0200 Subject: README.t: Add PDF bookmarks, links --- README.t | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'README.t') diff --git a/README.t b/README.t index 83b076e..e8337c6 100644 --- a/README.t +++ b/README.t @@ -1,9 +1,43 @@ .so g.tmac .so gx.tmac .so toc/toc.tmac -.papersize letter +.mediasize letter .fp 0 M DejaVuSansMono ttf . +.eo +.de he +. nr a +1 +. h +\X'PDFMark: Bookmark 0 \\$*'\A'\na' +. br +. sp -1 +\$* +. te .the \na \n% \$* +.. +. +.de se +. nr a +1 +. s +\X'PDFMark: Bookmark 1 \\$*'\A'\na' +. br +. sp -1 +\$* +. te .the \na \n% \\h'18p'\$* +.. +. +.\" the -- toc entry +.de the +. nr _a \$1 +. nr _p \$2 +. shift 2 +. ta \n(.luR +. tc . +\T'\n(_a'\$* \n(_p\T +. tc +. br +.. +.ec +. .\" configure header and footer .eo .de @h @@ -37,6 +71,7 @@ John Ankarström .i "TABLE OF CONTENTS" .sp 4p .@e +\X'SetLinkBorder: 0 0 0'\c .to .sp 0.5i .ns -- cgit v1.2.3