groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] pdfmark XN help


From: Larry Kollar
Subject: Re: [Groff] pdfmark XN help
Date: Wed, 27 Jan 2016 13:46:16 -0500

> Anton Shterenlikht <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]