gbranden pushed a commit to branch master
in repository groff.
commit c1be5fbca45ff348002c1825d5d91e522be14bfa
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Jul 17 15:38:36 2026 -0500
doc/groff-pdf-features.ms: Be more portable. (4/5)
Indirect `pdfhref W` calls referencing man pages sites through
page-local `man-ref` macro.
---
doc/groff-pdf-features.ms | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/doc/groff-pdf-features.ms b/doc/groff-pdf-features.ms
index 5b37b39fa..5b6254d9a 100644
--- a/doc/groff-pdf-features.ms
+++ b/doc/groff-pdf-features.ms
@@ -112,6 +112,15 @@
. rr fallback
. rm url link-text suffix
..
+.de man-ref
+.ie \\n[PDFFEAT] \{\
+. ie (\\n[.$] > 2) \
+. pdfhref W -D "man:\\$1(\\$2)" -A \\$3 -- \f[I]\\$1\f[](\\$2)
+. el \
+. pdfhref W -D "man:\\$1(\\$2)" -- \f[I]\\$1\f[](\\$2)
+.\}
+.el \f[I]\\$1\f[](\\$2)\\$3\"
+..
.RP no
.TL
.BI Groff
@@ -1114,7 +1123,7 @@ There are just two macros which control the slide
presentation:-
.I bool
.QE
These parameters are explained in the
-.pdfhref W -D man:/gropdf(1)#transition gropdf(1)
+.man-ref gropdf 1
man page, many of them are not required!
.LP
There are two
@@ -1212,7 +1221,7 @@ The relevent macros are:-
.QE
which produce a background rectangle on the page. The meanings of the
parameters are explained in the
-.pdfhref W -D man:/gropdf(1)#boxes gropdf(1)
+.man-ref gropdf 1
man page.
.BOXSTOP
.LP
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit