Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] docs: eliminate pdfroff



> 2026/04/11 11:56、dana <dana@xxxxxxx> wrote:
> 
> jun had made a change in workers/53137 to retain blank pages and to
> generate an index/toc. i don't think the former is an issue with this
> method, but it seems like we do lose the latter

By consulting gropdf(1) and groff_ms(7) man pages, and with some
trial and error, I found that 'groff -Tpdf' can produce clickable TOC
if .pdfbookmark macro is used.

# With this patch, TOC produced by pdfroff has duplicated entries.
# So we must use 'groff -Tpdf' if this patch is applied.


diff --git a/Doc/intro.ms b/Doc/intro.ms
index 49f6cc07f..cb1775490 100644
--- a/Doc/intro.ms
+++ b/Doc/intro.ms
@@ -47,6 +47,7 @@
 .de Sh
 .NH
 .XN \\$1
+.pdfbookmark 1 \\*[SN-DOT] \\$1
 ..
 .\}
 .\"






Messages sorted by: Reverse Date, Date, Thread, Author