groff
[Top][All Lists]
Advanced

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

Re: Why are Groff's macro packages not PDF-aware by default?


From: James K. Lowden
Subject: Re: Why are Groff's macro packages not PDF-aware by default?
Date: Tue, 16 Jun 2020 09:55:05 -0400

On Mon, 15 Jun 2020 21:24:23 +1000
John Gardner <gardnerjohng@gmail.com> wrote:

> Modifying the macro packages to use these features wouldn't be hard.
> It's simply a matter of
> 
> .if '\*(.T'pdf' .if d pdfmark \{\
> 
> .    pdfmark ?
> 
> .\}

+1

I'm glad B 9 asked the question, because I've been meaning to try to
synthesize the status of hyperlink support in groff from the various
component documents.  We've had hyperlinks in HTML and PDF for decades
now, but they're an afterthought in groff, not to mention totally
unsupported by the system most used to view man pages, namely nroff +
less.  

In the same neighborhood is the mdoc .Xr, which should also be able to
create a hyperlink.  It's not clear to me whether or not it always
should or, if not, whether that should be controlled by a register, or
type of output, or by invocation.  

If someone does the macro magic to make hyperlinks Just Work in man,
mdoc, and ms, I'll volunteer to do the grunt work of adding them to the
groff man pages.  

--jkl




reply via email to

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