[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Groff macro to make .UR and .UE links clickable in PDF?
From: |
B 9 |
Subject: |
Groff macro to make .UR and .UE links clickable in PDF? |
Date: |
Sun, 14 Jun 2020 15:50:13 -0700 |
User-agent: |
s-nail v14.9.11 |
Hi!
I've been writing up a lengthy man page using -mdoc and it's been
great so far. I love that I can also easily create a beautiful PDF
document using groff -Tpdf. But there is one problem I haven't solved:
How can I make links which I've declared using .UR and .UE into actual
clickable links in the PDF?
I know that I can create a link using .pdfmark, but that is not a good
solution as pdfmark text completely disappears when using nroff.
I was thinking I may need to redefine mdoc's UR and UE macros so that, if
the device output is to PDF, it will convert the link to pdfmark syntax.
Unfortunately, I do not know how to do that, so I was hoping that someone
has encountered this problem before and can point me to the solution.
Here is an example of what I might have in my groff code:
The main page for Madness is
.UR http://www.frijid.net/madness/madness.html
http://www.frijid.net/\:madness/\:madness.html
.UE .
It works great using ncurses, but when creating a PDF, I'd like groff
to act as if I had entered something like:
.pdfhref W -P "The main page for Madness is " -D
http://www.frijid.net/madness/madness.html -A . --
http://www.frijid.net/\:madness/\:madness.html
Any help that can be provided, even if it is just saying that no such
thing exists, yet, would be much appreciated.
--b9
- Groff macro to make .UR and .UE links clickable in PDF?,
B 9 <=
- Re: Groff macro to make .UR and .UE links clickable in PDF?, Jan Stary, 2020/06/15
- Re: Groff macro to make .UR and .UE links clickable in PDF?, B 9, 2020/06/15
- Re: Groff macro to make .UR and .UE links clickable in PDF?, Ingo Schwarze, 2020/06/15
- Re: Groff macro to make .UR and .UE links clickable in PDF?, B 9, 2020/06/16
- Re: Groff macro to make .UR and .UE links clickable in PDF?, Jan Stary, 2020/06/16
- Re: Groff macro to make .UR and .UE links clickable in PDF?, James K. Lowden, 2020/06/16
- Message not available
- Re: Groff macro to make .UR and .UE links clickable in PDF?, Steve Izma, 2020/06/16
- Re: Groff macro to make .UR and .UE links clickable in PDF?, Peter Schaffter, 2020/06/16
- Re: Groff macro to make .UR and .UE links clickable in PDF?, Steve Izma, 2020/06/16
- Re: Groff macro to make .UR and .UE links clickable in PDF?, B 9, 2020/06/16