summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-07-01 03:01:35 +0000
committerNorbert Preining <norbert@preining.info>2022-07-01 03:01:35 +0000
commit360c779f505ae5d8baf567f534861a7a9c7afcb2 (patch)
tree837de52204d635131e7f9b319401fedfa8782e41 /support
parentfe3dca04dca5358c6fb9463cfadf9079600e911d (diff)
CTAN sync 202207010301
Diffstat (limited to 'support')
-rw-r--r--support/TeX4ht/source/ChangeLog6
-rw-r--r--support/TeX4ht/source/tex4ht-mathml.tex16
2 files changed, 21 insertions, 1 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 8e07dd1e80..5190ec8992 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,9 @@
+2022-06-30 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-mathml.tex (mathml.4ht): retain text formatting inside
+ \mathop.
+ https://tug.org/pipermail/tex4ht/2016q4/001631.html
+
2022-06-29 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-jats.4ht (jats.4ht): added support for list environments.
diff --git a/support/TeX4ht/source/tex4ht-mathml.tex b/support/TeX4ht/source/tex4ht-mathml.tex
index 29e6292bdf..3eb9443076 100644
--- a/support/TeX4ht/source/tex4ht-mathml.tex
+++ b/support/TeX4ht/source/tex4ht-mathml.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathml.tex 1135 2022-05-19 15:28:47Z michal_h21 $$
+% $Id: tex4ht-mathml.tex 1163 2022-06-30 15:37:22Z michal_h21 $$
% compile 3 times: latex tex4ht-mathltx
% or xhlatex tex4ht-mathltx "html,3,sections+"
%
@@ -3468,6 +3468,20 @@ Extra brackets are used in order to support subscripts and superscripts.
\section{Sized Operations}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+This code tries to prevent discarding of math formatting inside of
+mathop. See \Link{https://tug.org/pipermail/tex4ht/2016q4/001631.html}{}this bug report\EndLink.
+
+I use AtBeginDocument because it doesn't seem to have any effect otherwise. The code comes
+from tex4ht-info.tex.
+
+\<configure mathml latex\><<<
+\AtBeginDocument{%
+\Configure{mathop*}{*}{}{}
+ { \Configure{mathop}{*}{<mo>}{</mo>}{} }
+}
+>>>
+
+
\<plain,latex mathml\><<<
\def\mathop:prefix#1{%
\Configure{mathop}{*}{<\a:mathml mo #1\Hnewline>}{</\a:mathml mo>}%