void InsetMathXYMatrix::draw(PainterInfo & pi, int x, int y) const
{
- setPosCache(pi, x, y);
Changer dummy2 = pi.base.changeEnsureMath();
Changer dummy = pi.base.changeArray();
InsetMathGrid::draw(pi, x, y);
}
-void InsetMathXYMatrix::write(WriteStream & os) const
+void InsetMathXYMatrix::write(TeXMathStream & os) const
{
MathEnsurer ensurer(os);
+ if (os.fragile())
+ os << "\\protect";
os << "\\xymatrix";
bool open = os.startOuterRow();
if (equal_spacing_) {
}
-void InsetMathXYMatrix::mathmlize(MathStream &) const
+void InsetMathXYMatrix::mathmlize(MathMLStream &) const
{
throw MathExportException();
}
-void InsetMathXYMatrix::htmlize(HtmlStream &) const
+void InsetMathXYMatrix::htmlize(HtmlStream &) const
{
- throw MathExportException();
+ throw MathExportException();
}