texlive[61135] Master/texmf-dist: protect \( \), tex4ht r1014;
commits+karl at tug.org
commits+karl at tug.org
Wed Nov 24 00:00:12 CET 2021
Revision: 61135
http://tug.org/svn/texlive?view=revision&revision=61135
Author: karl
Date: 2021-11-24 00:00:11 +0100 (Wed, 24 Nov 2021)
Log Message:
-----------
protect \( \), tex4ht r1014; tcolorbox \label dest, tex4ht r1013
Revision Links:
--------------
http://tug.org/svn/texlive?view=revision&revision=1014
http://tug.org/svn/texlive?view=revision&revision=1013
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht
trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2021-11-23 22:41:27 UTC (rev 61134)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2021-11-23 23:00:11 UTC (rev 61135)
@@ -1,3 +1,12 @@
+2021-11-23 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (tcolorbox.4ht): add destinations for \label to Tcolorbox
+ environments.
+ https://tex.stackexchange.com/a/623697/2891
+ * tex4ht-4ht.tex (latex.4ht): protect redefinitions of \( and \), so they
+ work correctly in sectioning commands with MathML.
+ https://github.com/michal-h21/make4ht/issues/52#issuecomment-976835368
+
2021-11-19 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): use LaTeX 3 commands in
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2021-11-23 22:41:27 UTC (rev 61134)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2021-11-23 23:00:11 UTC (rev 61135)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1009 2021-11-05 17:09:29Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1014 2021-11-23 16:46:25Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2021 TeX Users Group
@@ -7487,8 +7487,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55
\<latex,sty math del\><<<
- \def\({\leavevmode\st:math}
- \def\){\ed:math}
+ \protected\def\({\leavevmode\st:math}
+ \protected\def\){\ed:math}
\NewConfigure{()}[2]{\def\st:math{#1}\def\ed:math{#2}}
\def\[{\st:Math}
\def\]{\ed:Math}
@@ -7524,9 +7524,13 @@
>>>
\<protect (...) math\><<<
-\pend:def\({\bgroup\let\a:mth|=\empty
- \let\b:mth|=\empty \let\c:mth|=\empty }%
-\append:def\){\egroup}%
+\let\orig:smath\(
+\let\orig:emath\)
+\protected\def\:tempa{\bgroup\let\a:mth\empty
+ \let\b:mth\empty \let\c:mth\empty\orig:smath}
+\let\(\:tempa
+\protected\def\:tempa{\orig:emath\egroup}
+\let\)\:tempa
>>>
\<protect [...] math\><<<
@@ -26728,7 +26732,7 @@
%%%%%%%%%%%%%%%%%%%%%%%
\<tcolorbox.4ht\><<<
% tcolorbox.4ht (|version), generated from |jobname.tex
-% Copyright 2020 TeX Users Group
+% Copyright 2020-2021 TeX Users Group
|<TeX4ht license text|>
% use custom counter that increments for every \tcolorbox
@@ -26748,6 +26752,7 @@
\a:tcolorbox%
% save label, if it is set
\ifdefined\tcolorbox:label:key%
+ \AnchorLabel% save cross-ref destination
\label{\tcolorbox:label:key}%
\fi%
% open title
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht 2021-11-23 22:41:27 UTC (rev 61134)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/latex.4ht 2021-11-23 23:00:11 UTC (rev 61135)
@@ -1,4 +1,4 @@
-% latex.4ht (2021-06-25-13:51), generated from tex4ht-4ht.tex
+% latex.4ht (2021-11-23-14:54), generated from tex4ht-4ht.tex
% Copyright 1997-2009 Eitan M. Gurari
% Copyright 2009-2021 TeX Users Group
%
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2021-06-25-13:51}
+\immediate\write-1{version 2021-11-23-14:54}
\ifx\SaveMkHalignConf:g\:UnDef \else \expandafter\endinput\fi
@@ -1762,8 +1762,8 @@
- \def\({\leavevmode\st:math}
- \def\){\ed:math}
+ \protected\def\({\leavevmode\st:math}
+ \protected\def\){\ed:math}
\NewConfigure{()}[2]{\def\st:math{#1}\def\ed:math{#2}}
\def\[{\st:Math}
\def\]{\ed:Math}
@@ -1773,17 +1773,25 @@
\ifx \a:mth\:UnDef
\expandafter\pend:defIII\csname c:$:\endcsname{%
- \ifx \a:mth\:UnDef \pend:def\({\bgroup\let\a:mth\empty
- \let\b:mth\empty \let\c:mth\empty }%
-\append:def\){\egroup}%
+ \ifx \a:mth\:UnDef \let\orig:smath\(
+\let\orig:emath\)
+\protected\def\:tempa{\bgroup\let\a:mth\empty
+ \let\b:mth\empty \let\c:mth\empty\orig:smath}
+\let\(\:tempa
+\protected\def\:tempa{\orig:emath\egroup}
+\let\)\:tempa
\fi
\def\:@tabular:{\expandafter\everymath
\expandafter{\expandafter \everymath \expandafter{\the\everymath}}}%
}
\else
- \pend:def\({\bgroup\let\a:mth\empty
- \let\b:mth\empty \let\c:mth\empty }%
-\append:def\){\egroup}%
+ \let\orig:smath\(
+\let\orig:emath\)
+\protected\def\:tempa{\bgroup\let\a:mth\empty
+ \let\b:mth\empty \let\c:mth\empty\orig:smath}
+\let\(\:tempa
+\protected\def\:tempa{\orig:emath\egroup}
+\let\)\:tempa
\def\:@tabular:{\expandafter\everymath
\expandafter{\expandafter \everymath \expandafter{\the\everymath}}}%
@@ -2290,7 +2298,7 @@
\expandafter\:temp\usepackage!*?:
\def\:tempa{\@latex at e@error}
\ifx \:temp\:tempa
- % latex209.4ht (2021-06-25-13:51), generated from tex4ht-4ht.tex
+ % latex209.4ht (2021-11-23-14:54), generated from tex4ht-4ht.tex
% Copyright 1997-2009 Eitan M. Gurari
% Copyright 2009-2021 TeX Users Group
%
@@ -2309,7 +2317,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2021-06-25-13:51}
+\immediate\write-1{version 2021-11-23-14:54}
\let\:fnsymbol\@fnsymbol
\def\@fnsymbol#1{{\hbox{$\:fnsymbol{#1}$}}}
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht 2021-11-23 22:41:27 UTC (rev 61134)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/tcolorbox.4ht 2021-11-23 23:00:11 UTC (rev 61135)
@@ -1,5 +1,5 @@
-% tcolorbox.4ht (2020-12-03-13:56), generated from tex4ht-4ht.tex
-% Copyright 2020 TeX Users Group
+% tcolorbox.4ht (2021-11-23-14:59), generated from tex4ht-4ht.tex
+% Copyright 2020-2021 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2020-12-03-13:56}
+\immediate\write-1{version 2021-11-23-14:59}
% use custom counter that increments for every \tcolorbox
@@ -36,6 +36,7 @@
\a:tcolorbox%
% save label, if it is set
\ifdefined\tcolorbox:label:key%
+ \AnchorLabel% save cross-ref destination
\label{\tcolorbox:label:key}%
\fi%
% open title
More information about the tex-live-commits
mailing list.