From bb80eb14683b422a6d9f650dced93ff1c795dfd6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 2 Nov 2022 22:28:54 +0000 Subject: group \mathcal, tex4ht r1234 git-svn-id: svn://tug.org/texlive/trunk@64911 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/generic/tex4ht/ChangeLog | 10 ++++++++-- Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex | 4 ++-- Master/texmf-dist/tex/generic/tex4ht/mathml.4ht | 6 +++--- 3 files changed, 13 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist') 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 + + * 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 - * tex4ht-4ht.tex (mathml.4ht): don't add elements for math + * tex4ht-mathml.tex (mathml.4ht): don't add 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. \<<< -\def\:tempa#1{\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{}} +\def\:tempa#1{\bgroup\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{}\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;}% \egroup \fi -\def\:tempa#1{\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{}} +\def\:tempa#1{\bgroup\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{}\egroup} \HLet\mathcal\:tempa \expandafter\ifx \csname o@everypar\endcsname\relax \else -- cgit v1.2.3