> Anton Shterenlikht <me...@bris.ac.uk> wrote: > > I discovered pdfmark macro today. > I like it, and would like to use it's > facilities for hyperlinking and automatic > table of contents. > > However, pdfmark.pdf included in groff-1.22.2 > stops just at this point. > Section 3.1.1.1. "The XN Macro" is empty, > as are all subsequent sections. > The intro says that this document was produced > with groff-1.19.1.
The source file, pdfmark.ms, uses it and includes voluminous commands about how to use it. It works like this: .NH 2 .XN This is the Heading .LP etc…. You can also specify a named PDF link destination, if you need to cross-reference back to the section: .NH 2 .XN thisplace -- This is the Heading .LP Put a .TC at the end of your document to output the table of contents. I’m not sure if pdfmark relocates the Table of Contents for you, but it does appear in the right place in the PDF file. Hope that helps, — Larry