[tex4ht-commits] [SCM] tex4ht updated: r1722 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Tue Jul 22 17:33:41 CEST 2025
Author: michal_h21
Date: 2025-07-22 15:33:40 +0000 (Tue, 22 Jul 2025)
New Revision: 1722
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
use argument text as hyperlink text in \hyperref
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2025-07-18 20:13:09 UTC (rev 1721)
+++ trunk/lit/ChangeLog 2025-07-22 15:33:40 UTC (rev 1722)
@@ -1,3 +1,8 @@
+2025-07-22 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (hyperref.4ht): use argument text as a hyperlink
+ text in the \hyperref command.
+
2025-07-18 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (hyperref.4ht): fixed support for \texorpdfstring
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2025-07-18 20:13:09 UTC (rev 1721)
+++ trunk/lit/tex4ht-4ht.tex 2025-07-22 15:33:40 UTC (rev 1722)
@@ -5843,11 +5843,12 @@
\endgroup
\else%
\def\hyperrefLabel{#3}%
- % the following code removed links from \ref and \pageref
- % commands that were used after \hyperref. Why was it needed?
- % \Configure{ref}%
- % {\Link}{\EndLink}{\Configure{ref}{}{}{}#3}
+ \begingroup%
+ % Redefine \ref locally to use a third argument as hyperlink text, instead of the referenced counter
+ \Configure{ref}%
+ {\Link}{\EndLink}{\Configure{ref}{}{}{}#3}%
\ref{#2}%
+ \endgroup%
\fi
}
>>>
More information about the tex4ht-commits
mailing list.