groff
[Top][All Lists]
Advanced

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

Re: [Groff] Converting man pages to PDF and links


From: Keith Marshall
Subject: Re: [Groff] Converting man pages to PDF and links
Date: Sat, 1 Dec 2007 20:12:52 +0000
User-agent: KMail/1.8.2

On Saturday 01 December 2007 15:32, Andre-John Mas wrote:
> > Are you aware of Keith Marshall's pdfmark macro package?  It's  
> > available
> > under contrib in recent groff versions.  It lets you create a link
> > in PDF files, amongst other things.  I'd guess if you're viewing
> >
> >    file:///home/andre/man/man3/malloc.pdf
> >
> > and it has a link to ../man1/vgrind.pdf then that would work?

Yep.  `.pdfhref L -F path/to/vgrind.pdf -- "text for link hot spot"'

> I wasn't aware of it. Thanks.
>
> Just one question, how would I use it - my groff knowledge is fairly
>   weak.
> I tried:
>
> groff -mpdfmark -c `man -w csh` > out.pdf
>
> but that generated a postscript file without the right formatting.

You'd have to embed the appropriate `.pdfhref ...' markup in the manpage 
source, then format with

  pdfroff --no-toc -man -mpdfmark -c in.man.pdfmark > out.pdf

HTH,
Keith.




reply via email to

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