]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathScript.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / mathed / InsetMathScript.cpp
index 8fde3ec81b329149c82e573ae68493acb24b8570..1af0e573459938104334cf93fa251f7cf501e6f3 100644 (file)
@@ -612,6 +612,10 @@ void InsetMathScript::mathematica(MathematicaStream & os) const
 }
 
 
+// FIXME XHTML
+// It may be worth trying to output munder, mover, and munderover
+// in certain cases, e.g., for display formulas. But then we would
+// need to know if we're in a display formula.
 void InsetMathScript::mathmlize(MathStream & os) const
 {
        bool d = hasDown() && down().size();
@@ -625,16 +629,18 @@ void InsetMathScript::mathmlize(MathStream & os) const
                os << MTag("msub");
 
        if (nuc().size())
-               os << nuc();
+               os << MTag("mrow") << nuc() << ETag("mrow");
        else
-               os << "<mrow/>";
+               os << "<mrow />";
 
        if (u && d)
-               os << down() << up() << ETag("msubsup");
+               os << MTag("mrow") << down() << ETag("mrow") 
+                  << MTag("mrow") << up() << ETag("mrow") 
+                  << ETag("msubsup");
        else if (u)
-               os << up() << ETag("msup");
+               os << MTag("mrow") << up() << ETag("mrow") << ETag("msup");
        else if (d)
-               os << down() << ETag("msub");
+               os << MTag("mrow") << down() << ETag("mrow") << ETag("msub");
 }