diff options
Diffstat (limited to 'support/TeX4ht')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 6 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-mathml.tex | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index 2e48cb8376..b6b6404e2a 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,9 @@ +2022-12-21 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-mathml.tex (mathml.4ht): use <mstyle> instead of <mrow> for + \dfrac and \dbinom, because MathJax had issues with <mrow> + https://tex.stackexchange.com/a/669031/2891 + 2022-12-20 Michal Hoftich <michal.h21@gmail.com> * tex4ht-mathml.tex (mathml.4ht): use correct displayformat for diff --git a/support/TeX4ht/source/tex4ht-mathml.tex b/support/TeX4ht/source/tex4ht-mathml.tex index 4900483fae..98e02e637d 100644 --- a/support/TeX4ht/source/tex4ht-mathml.tex +++ b/support/TeX4ht/source/tex4ht-mathml.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-mathml.tex 1272 2022-12-20 14:01:40Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1273 2022-12-21 17:00:19Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -1598,10 +1598,10 @@ configurations, respectively. Use correct math style for Amsmath's variants of inline fractions. \<configure mathml amsmath\><<< -\pend:def\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mrow \mathchoice{\a:mathml displaystyle="true"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mrow>}}} -\pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mrow \mathchoice{\a:mathml displaystyle="false"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mrow>}}} -\pend:def\dbinom{\Configure{genfrac}{\HCode{<\a:mathml mrow \mathchoice{\a:mathml displaystyle="true"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mrow>}}} -\pend:def\tbinom{\Configure{genfrac}{\HCode{<\a:mathml mrow \mathchoice{\a:mathml displaystyle="false"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mrow>}}} +\pend:def\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="true"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}} +\pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="false"}{}{}{}>}}{}{}{}{}{\HCode{</\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>}}} >>> \<mathml latex\><<< |