summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-4ht.tex
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex16
1 files changed, 15 insertions, 1 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 6c2a34c0ba..8bf9120ff0 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1128 2022-05-04 12:16:51Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1130 2022-05-05 13:25:11Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -27353,6 +27353,7 @@ We need to use dvips driver with XeLaTeX
\HLet\tcb@set@label\:tempa
|<tcolorbox minipage|>
+|<tcolorbox nameref|>
\Hinput{tcolorbox}
\endinput
@@ -27372,6 +27373,19 @@ where spurious end \`'</p>' tags were inserted
>>>
+This code fixes nameref support in Tcolorbox.
+
+\<tcolorbox nameref\><<<
+\AfterEndPreamble{%
+ % fix \nameref support
+ \def\:tempa#1{%
+ \gdef\NR:Title{\a:newlabel{#1}}%
+ \o:tcb@gettitle:{#1}%
+ }%
+ \HLet\tcb@gettitle\:tempa
+}
+>>>
+
%%%%%%%%%%%%%%%%%%%%%%%
\Section{dvipsnam}
%%%%%%%%%%%%%%%%%%%%%%%