[tex4ht-commits] [SCM] tex4ht updated: r1130 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Thu May 5 15:25:12 CEST 2022
Author: michal_h21
Date: 2022-05-05 13:25:11 +0000 (Thu, 05 May 2022)
New Revision: 1130
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
Fixed support for \nameref in Tcolorbox
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-05-05 10:45:51 UTC (rev 1129)
+++ trunk/lit/ChangeLog 2022-05-05 13:25:11 UTC (rev 1130)
@@ -1,5 +1,8 @@
2022-05-05 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-4ht.tex (tcolorbox.4ht): fixed support for Nameref.
+ https://github.com/michal-h21/make4ht/issues/75
+
* tex4ht-mathml.tex (mathml.4ht): fixed underbrace rendering.
https://github.com/michal-h21/make4ht/issues/76
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2022-05-05 10:45:51 UTC (rev 1129)
+++ trunk/lit/tex4ht-4ht.tex 2022-05-05 13:25:11 UTC (rev 1130)
@@ -27353,6 +27353,7 @@
\HLet\tcb at set@label\:tempa
|<tcolorbox minipage|>
+|<tcolorbox nameref|>
\Hinput{tcolorbox}
\endinput
@@ -27372,6 +27373,19 @@
>>>
+This code fixes nameref support in Tcolorbox.
+
+\<tcolorbox nameref\><<<
+\AfterEndPreamble{%
+ % fix \nameref support
+ \def\:tempa#1{%
+ \gdef\NR:Title{\a:newlabel{#1}}%
+ \o:tcb at gettitle:{#1}%
+ }%
+ \HLet\tcb at gettitle\:tempa
+}
+>>>
+
%%%%%%%%%%%%%%%%%%%%%%%
\Section{dvipsnam}
%%%%%%%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.