summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex36
1 files changed, 31 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
index f99c6fbd42b..bd8a32515b1 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1161 2022-06-27 10:03:53Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1164 2022-07-01 14:16:09Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -5321,16 +5321,42 @@ which requires 5 fields instead of 2.
% \Configure{ref}{}{}{}\ref{#1}}}
\<config hyperref\><<<
-\def\label@hyperref[#1]#2{{%
- \def\hyperrefLabel{#2}%
- \Configure{ref}
- {\Link}{\EndLink}{\Configure{ref}{}{}{}#2}\ref{#1}}}
+|<label@@hyperref|>
|<autoref references|>
|<restore pre hyperref|>
|<nameref.sty NOT HERE|>
\csname ReadBookmarks\endcsname
>>>
+% We don't use this code anymore
+% \def\label@hyperref[#1]#2{{%
+% \def\hyperrefLabel{#2}%
+% \Configure{ref}
+% {\Link}{\EndLink}{\Configure{ref}{}{}{}#2}\ref{#1}}}
+
+The \Verb+\hyperref[label]{title}+ command should print the
+title when label is undefined. The older configuration printed
+?? instead. This should fix this issue.
+\Link{https://tex.stackexchange.com/a/649552/2891}{}More info\EndLink.
+
+\<label@@hyperref\><<<
+\def\label@@hyperref#1#2#3{%
+ \ifx#1\relax
+ \protect\G@refundefinedtrue
+ \@latex@warning{%
+ Hyper reference `#2' on page \thepage \space undefined%
+ }%
+ \begingroup
+ \hyperrefundefinedlink{#3}%
+ \endgroup
+ \else%
+ \def\hyperrefLabel{#3}%
+ \Configure{ref}%
+ {\Link}{\EndLink}{\Configure{ref}{}{}{}#3}\ref{#2}%
+ \fi
+}
+>>>
+
A \Verb+\def\@@hyperref#1#2#3{\Link[#2]{}{}#1\EndLink}+
got removed since it fails the second case below.