diff options
author | Karl Berry <karl@freefriends.org> | 2022-11-02 22:28:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-11-02 22:28:54 +0000 |
commit | bb80eb14683b422a6d9f650dced93ff1c795dfd6 (patch) | |
tree | 3f74053ec413b7d441c2f6ee7e4de4d3c57e516e /Master | |
parent | 51fe613807b7e6be62212f12b2a53d37161773ca (diff) |
group \mathcal, tex4ht r1234
git-svn-id: svn://tug.org/texlive/trunk@64911 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 10 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/mathml.4ht | 6 |
3 files changed, 13 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 2c88db2ad72..f65184fe92e 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,10 +1,16 @@ +2022-11-02 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-mathml.tex (mathml.4ht): added extra group for \mathcal, to + prevent errors in subscripts etc. + https://github.com/michal-h21/make4ht/issues/95 + 2022-11-01 Michal Hoftich <michal.h21@gmail.com> - * tex4ht-4ht.tex (mathml.4ht): don't add <mdt> elements for math + * tex4ht-mathml.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 + * tex4ht-mathml.tex (mathml.4ht): prevent use of Unicode characters inside \mathcal. https://github.com/michal-h21/make4ht/issues/95 diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex index 4326b08eccf..2b498005a7d 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 1233 2022-11-01 13:36:13Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1234 2022-11-02 22:09:27Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -4493,7 +4493,7 @@ 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>}} +\def\:tempa#1{\bgroup\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{</\a:mathml mstyle>}\egroup} \HLet\mathcal\:tempa >>> diff --git a/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht b/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht index 58b2ba31040..f63269e0646 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-11-01-13:10), generated from tex4ht-mathml.tex +% mathml.4ht (2022-11-02-15:27), 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-11-01-13:10} +\immediate\write-1{version 2022-11-02-15:27} \exit:ifnot{Preamble,% accents,% @@ -1419,7 +1419,7 @@ 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>}} +\def\:tempa#1{\bgroup\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{</\a:mathml mstyle>}\egroup} \HLet\mathcal\:tempa \expandafter\ifx \csname o@everypar\endcsname\relax \else |