diff options
author | Karl Berry <karl@freefriends.org> | 2022-11-01 20:54:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-11-01 20:54:17 +0000 |
commit | 1740d3c7c1b9562a18c9bbd34398f3f25a60cfd9 (patch) | |
tree | 58ce2db867c7771b27f737bec2397b2e253d0a20 | |
parent | b463468875bf7024bfd99ddf0d81364b1f8e2665 (diff) |
avoid Unicode for \mathcal, tex4ht r1232; avoid <mdt>, tex4ht r1233
git-svn-id: svn://tug.org/texlive/trunk@64895 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 10 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex | 14 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/mathml.4ht | 9 |
3 files changed, 26 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index a58e929657b..2c88db2ad72 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,13 @@ +2022-11-01 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-4ht.tex (mathml.4ht): don't add <mdt> elements for math + array vspace, as it can lead to wrong size of the table. + https://github.com/michal-h21/make4ht/issues/91 + + * tex4ht-mathml.tex(mathml.4ht): prevent use of Unicode characters + inside \mathcal. + https://github.com/michal-h21/make4ht/issues/95 + 2022-10-31 Michal Hoftich <michal.h21@gmail.com> * tex4ht-mathml.tex (mathml.4ht, html-mml.4ht): fixed output of the diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex index e5e09fd63dc..4326b08eccf 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 1231 2022-10-31 12:34:12Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1233 2022-11-01 13:36:13Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -629,6 +629,7 @@ We reserve code 254 (and 255) for unknown symbols. |<math fonts utilities|> |<set mathcal class|> |<set mathcal symbols|> +|<redefine mathcal|> |<mathml plain,fontmath|> >>> @@ -1241,7 +1242,7 @@ space, without having them ignored, must use or other {</\a:mathml mtr>} {<\a:mathml mtr\Hnewline \mml:class="array-vspace" style="font-size:\HBorderspace">} - {<\a:mathml mtd\Hnewline></\a:mathml mtd>} + {} {</\a:mathml mtr>} } @@ -4487,9 +4488,14 @@ catching of left subscripts and superscripts. \fi >>> +This version of mathcal will prevent conversion of letters to Unicode Script values. +The Script style is required using the mathvariant attribute, so it should be +rendered correctly. - - +\<redefine mathcal\><<< +\def\:tempa#1{\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{</\a:mathml mstyle>}} +\HLet\mathcal\:tempa +>>> \<configure mathml amssymb\><<< diff --git a/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht b/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht index eb41750a12d..58b2ba31040 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-10-31-13:02), generated from tex4ht-mathml.tex +% mathml.4ht (2022-11-01-13:10), 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-10-31-13:02} +\immediate\write-1{version 2022-11-01-13:10} \exit:ifnot{Preamble,% accents,% @@ -613,7 +613,7 @@ vanilla} {</\a:mathml mtr>} {<\a:mathml mtr\Hnewline \mml:class="array-vspace" style="font-size:\HBorderspace">} - {<\a:mathml mtd\Hnewline></\a:mathml mtd>} + {} {</\a:mathml mtr>} } @@ -1419,6 +1419,9 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% \egroup \fi +\def\:tempa#1{\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{</\a:mathml mstyle>}} +\HLet\mathcal\:tempa + \expandafter\ifx \csname o@everypar\endcsname\relax \else \expandafter\ifx \csname ht:everypar\endcsname\relax \let\ht:everypar\o@everypar |