diff options
author | Karl Berry <karl@freefriends.org> | 2022-12-20 22:18:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-12-20 22:18:14 +0000 |
commit | 549a9d444e6a87183cd26f70ce772aa73512fd89 (patch) | |
tree | b02f0530a24d768a6dbbe0b324f08b0857fa8875 | |
parent | da5ba7f71fefc2c87da99d8b1df350f72889b9ad (diff) |
\dfrac and \dbinom support, tex4ht r1272
git-svn-id: svn://tug.org/texlive/trunk@65320 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 6 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex | 9 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/mathml.4ht | 8 |
3 files changed, 20 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 55f2c52c61b..2e48cb83762 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,9 @@ +2022-12-20 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-mathml.tex (mathml.4ht): use correct displayformat for + \dfrac and \dbinom. + https://tex.stackexchange.com/a/669031/2891 + 2022-12-17 Michal Hoftich <michal.h21@gmail.com> * tex4ht-html4.tex (html4.4ht): removed large left margin from diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex index adef32e00b8..4900483fae1 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-mathml.tex 1267 2022-12-15 21:43:11Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1272 2022-12-20 14:01:40Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -1595,7 +1595,14 @@ 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>}}} +>>> \<mathml latex\><<< \Configure{frac} diff --git a/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht b/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht index 98c0900430d..cdb38f7a81f 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht @@ -1,4 +1,4 @@ -% mathml.4ht (2022-12-15-13:46), generated from tex4ht-mathml.tex +% mathml.4ht (2022-12-20-13:20), generated from tex4ht-mathml.tex % Copyright 2009-2022 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 2022-12-15-13:46} +\immediate\write-1{version 2022-12-20-13:20} \exit:ifnot{Preamble,% accents,% @@ -2075,6 +2075,10 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% mrow></\a:mathml mfrac></\a:mathml mfenced>} \fi } +\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>}}} \def\:tempc{\ifDisplayMath\mathop:prefix{}\fi\o:n:iint::} \HLet\n:iint:\:tempc \def\:tempc{\ifDisplayMath\mathop:prefix{}\fi\o:n:iiint::} |