[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: improve tex4ht support (c8bf209)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue Apr 12 00:13:09 CEST 2022
Repository : https://github.com/latex3/hyperref
On branch : cleanup-patches
Link : https://github.com/latex3/hyperref/commit/c8bf209c4343c8c8834be6e93da71128c60e05b0
>---------------------------------------------------------------
commit c8bf209c4343c8c8834be6e93da71128c60e05b0
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Apr 12 00:13:09 2022 +0200
improve tex4ht support
>---------------------------------------------------------------
c8bf209c4343c8c8834be6e93da71128c60e05b0
hyperref.dtx | 5 +++++
.../refstarred-hyperref.lvt => testfiles-make4ht/ref1.lvt | 14 +++++++-------
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/hyperref.dtx b/hyperref.dtx
index 1c0186e..3736de6 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -7327,6 +7327,11 @@
\expandafter\@setref\csname r@#1\endcsname\@secondoffive{#1}%
\Hy at safe@activesfalse
}%
+ \def\@Refstar#1{%
+ \Hy at safe@activestrue
+ \expandafter\@setref\csname r@#1\endcsname\@secondoffive{#1}%
+ \Hy at safe@activesfalse
+ }%
\else
\ifHy at typexml
\else
diff --git a/testfiles-3/refstarred-hyperref.lvt b/testfiles-make4ht/ref1.lvt
similarity index 53%
copy from testfiles-3/refstarred-hyperref.lvt
copy to testfiles-make4ht/ref1.lvt
index d764fa4..f4aa57c 100644
--- a/testfiles-3/refstarred-hyperref.lvt
+++ b/testfiles-make4ht/ref1.lvt
@@ -1,18 +1,18 @@
-\input{regression-test}
\documentclass{article}
-
\usepackage{hyperref}
-
\begin{document}
-xxx
\renewcommand\thesection{\alph{section}}
-\START \showoutput
+%\START \showoutput
\ShowCommand\ref
\ShowCommand\Ref
\ShowCommand\pageref
\section{Test}\label{sec:test}
-\ref{sec:test},\Ref{sec:test}, \pageref{sec:test}
+\ref{sec:test},%\qquad
+\Ref{sec:test},
+\pageref{sec:test}
+\ref*{sec:test},\qquad
+\Ref*{sec:test}, \qquad
+\pageref*{sec:test}
-\ref*{sec:test},\Ref*{sec:test}, \pageref*{sec:test}
\end{document}
\ No newline at end of file
More information about the latex3-commits
mailing list.