texlive[68458] Master/texmf-dist: eliminate \mathchoice from some
commits+karl at tug.org
commits+karl at tug.org
Thu Oct 5 23:15:14 CEST 2023
Revision: 68458
https://tug.org/svn/texlive?view=revision&revision=68458
Author: karl
Date: 2023-10-05 23:15:13 +0200 (Thu, 05 Oct 2023)
Log Message:
-----------
eliminate \mathchoice from some configurations, tex4ht r1377
Revision Links:
--------------
https://tug.org/svn/texlive?view=revision&revision=1377
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-10-05 19:40:44 UTC (rev 68457)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-10-05 21:15:13 UTC (rev 68458)
@@ -1,5 +1,11 @@
2023-10-04 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-mathml.tex (mathml.4ht): removed \mathchoice from
+ configurations of \dfrac, \tfrac, \tbinom and \dbinom. It caused
+ output of verbatim TeX code in the ODT output.
+
+2023-10-04 Michal Hoftich <michal.h21 at gmail.com>
+
* tex4ht-sty.tex (tex4ht.sty): disable the \DocumentMetadata
command, in order to prevent invocation of the LaTeX tagging system,
which clashes with TeX4ht.
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex 2023-10-05 19:40:44 UTC (rev 68457)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex 2023-10-05 21:15:13 UTC (rev 68458)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathml.tex 1374 2023-09-25 14:17:53Z michal_h21 $$
+% $Id: tex4ht-mathml.tex 1377 2023-10-05 10:14:06Z michal_h21 $$
% compile 3 times: latex tex4ht-mathltx
% or xhlatex tex4ht-mathltx "html,3,sections+"
%
@@ -1603,14 +1603,14 @@
support their use \Link[https://github.com/michal-h21/make4ht/issues/129]{}{}inside of fractions\EndLink.
\<configure mathml amsmath\><<<
-\pend:def\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="true"}{}{}{}><mfrac><mrow>}
+\pend:def\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="true"><mfrac><mrow>}
\Configure{over}{}{}}{}{}{\HCode{</mrow><mrow>}
} {}{\HCode{</mrow></mfrac></\a:mathml mstyle>}}}
-\pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="false"}{}{}{}><mfrac><mrow>}
+\pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="false"><mfrac><mrow>}
\Configure{over}{}{}}{}{}{\HCode{</mrow><mrow>}
}{}{\HCode{</mrow></mfrac></\a:mathml mstyle>}}}
-\pend:def\dbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="true"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
-\pend:def\tbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="false"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
+\pend:def\dbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="true">}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
+\pend:def\tbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="false">}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
>>>
\<mathml latex\><<<
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht 2023-10-05 19:40:44 UTC (rev 68457)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht 2023-10-05 21:15:13 UTC (rev 68458)
@@ -1,4 +1,4 @@
-% mathml.4ht (2023-09-26-13:26), generated from tex4ht-mathml.tex
+% mathml.4ht (2023-10-05-13:12), generated from tex4ht-mathml.tex
% Copyright 2009-2023 TeX Users Group
% Copyright 1999-2009 Eitan M. Gurari
%
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2023-09-26-13:26}
+\immediate\write-1{version 2023-10-05-13:12}
\exit:ifnot{Preamble,%
accents,%
@@ -2093,14 +2093,14 @@
mrow></\a:mathml mfrac></\a:mathml mfenced>}
\fi
}
-\pend:def\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="true"}{}{}{}><mfrac><mrow>}
+\pend:def\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="true"><mfrac><mrow>}
\Configure{over}{}{}}{}{}{\HCode{</mrow><mrow>}
} {}{\HCode{</mrow></mfrac></\a:mathml mstyle>}}}
-\pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="false"}{}{}{}><mfrac><mrow>}
+\pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="false"><mfrac><mrow>}
\Configure{over}{}{}}{}{}{\HCode{</mrow><mrow>}
}{}{\HCode{</mrow></mfrac></\a:mathml mstyle>}}}
-\pend:def\dbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="true"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
-\pend:def\tbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="false"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
+\pend:def\dbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="true">}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
+\pend:def\tbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \a:mathml displaystyle="false">}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
\def\:tempc{\ifDisplayMath\mathop:prefix{}\fi\o:n:iint::}
\HLet\n:iint:\:tempc
\def\:tempc{\ifDisplayMath\mathop:prefix{}\fi\o:n:iiint::}
More information about the tex-live-commits
mailing list.