groff-commit
[Top][All Lists]
Advanced

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

[groff] 04/24: an/tmac.an: hyperlinks in PDF


From: G. Branden Robinson
Subject: [groff] 04/24: an/tmac.an: hyperlinks in PDF
Date: Wed, 23 Aug 2023 05:30:50 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 8563400f3c6cacc6718c7618aa8a7af13578ca23
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Aug 22 10:00:04 2023 -0500

    an/tmac.an: hyperlinks in PDF
---
 tmac/an.tmac | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tmac/an.tmac b/tmac/an.tmac
index ad9090ceb..f614cef03 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -1110,6 +1110,9 @@ contains unsupported escape sequence
 .    ie \\n[dn] \{\
 .      if \\n[an*is-output-html] \
 .        nop \X^html:<a href="\\*[an*prefix]\\*[an*hyperlink]">^\c
+.      if \\n[an*is-output-pdf] \
+.        pdfhref W -D \\*[an*prefix]\\*[an*hyperlink] -- \
+\\*[an*hyperlink]\c
 .      if \\n[an*is-output-terminal] \
 .        nop \X^tty: link \\*[an*prefix]\\*[an*hyperlink]^\c
 .      \" Strip off the final newline of the diversion and emit it.
@@ -1127,6 +1130,9 @@ contains unsupported escape sequence
 .      if \\n[an*is-output-html] \
 .        nop \X^html:<a href="\\*[an*prefix]\\*[an*hyperlink]">\
 \\*[an*hyperlink]</a>^\c
+.      if \\n[an*is-output-pdf] \
+.        pdfhref W -D \\*[an*prefix]\\*[an*hyperlink] -- \
+\\*[an*hyperlink]\c
 .      if \\n[an*is-output-terminal] \
 .        nop \X^tty: link \\*[an*prefix]\\*[an*hyperlink]^\
 \\*[an*hyperlink]\X^tty: link^\c



reply via email to

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