gbranden pushed a commit to branch master
in repository groff.
commit 8563400f3c6cacc6718c7618aa8a7af13578ca23
Author: G. Branden Robinson <[email protected]>
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
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit