[LyX/2.4.x] Do not export the content of InsetMathBoxed as text in MathML
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Wed Jul 24 16:27:21 UTC 2024
commit 2baa292314cad5255f6779339de3f646dc9d8a2a
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Tue Jul 23 23:44:58 2024 +0200
Do not export the content of InsetMathBoxed as text in MathML
\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 | 4 +++-
status.24x | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/mathed/InsetMathBox.cpp b/src/mathed/InsetMathBox.cpp
index f06ffcf95d..62a11a15aa 100644
--- a/src/mathed/InsetMathBox.cpp
+++ b/src/mathed/InsetMathBox.cpp
@@ -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");
}
diff --git a/status.24x b/status.24x
index f4186c577c..8a9d1ea3ec 100644
--- a/status.24x
+++ b/status.24x
@@ -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
More information about the lyx-cvs
mailing list