]> git.lyx.org Git - lyx.git/commitdiff
Do not export the content of InsetMathBoxed as text in MathML
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 Jul 2024 21:44:58 +0000 (23:44 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 24 Jul 2024 16:26:53 +0000 (18:26 +0200)
\boxed{} is the only box in LaTeX that contains math. It is amusing
that the example file that we had for ticket #13609 should not have
been a problem since there is no reason to force <mtext> there.

(cherry picked from commit 1186d90edf9a6702573f296d5642c5e61ceaaedf)

src/mathed/InsetMathBox.cpp
status.24x

index f06ffcf95d747e29ab30a22500313108f694805b..62a11a15aad5555374d61c8fa1a5bdf87660e1c0 100644 (file)
@@ -402,7 +402,9 @@ void InsetMathBoxed::infoize(odocstream & os) const
 
 void InsetMathBoxed::mathmlize(MathMLStream & ms) const
 {
-       mathmlizeHelper(ms, cell(0), "class='boxed'");
+       ms << MTag("mrow", "class='boxed'");
+       ms << cell(0);
+       ms << ETag("mrow");
 }
 
 
index f4186c577c0bed22d14e4f19eefb82b399cfd36c..8a9d1ea3ec700a380106ea35e909e9425ef25ac2 100644 (file)
@@ -49,6 +49,8 @@ What's new
 
 * DOCUMENT INPUT/OUTPUT
 
+- When exporting to MathML, the argument of the \boxed{} macro is now
+  correctly treated as math.
 
 
 * USER INTERFACE