#include "LaTeXFeatures.h"
#include "MetricsInfo.h"
+#include "support/lassert.h"
using namespace std;
}
-void InsetMathUnderset::write(WriteStream & os) const
+bool InsetMathUnderset::idxFirst(Cursor & cur) const
+{
+ LASSERT(&cur.inset() == this, return false);
+ cur.idx() = 0;
+ cur.pos() = 0;
+ return true;
+}
+
+
+bool InsetMathUnderset::idxLast(Cursor & cur) const
+{
+ LASSERT(&cur.inset() == this, return false);
+ cur.idx() = 0;
+ cur.pos() = cur.lastpos();
+ return true;
+}
+
+
+void InsetMathUnderset::write(TeXMathStream & os) const
{
MathEnsurer ensurer(os);
if (os.fragile())
}
-void InsetMathUnderset::mathmlize(MathStream & ms) const
+void InsetMathUnderset::mathmlize(MathMLStream & ms) const
{
- ms << "<munder accent='false'>" << cell(0) << cell(1) << "</munder>";
+ ms << "<" << from_ascii(ms.namespacedTag("munder")) << " accent='false'>"
+ << cell(0) << cell(1)
+ << "</" << from_ascii(ms.namespacedTag("munder")) << ">";
}