* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
* \author Ling Li (InsetMathMakebox)
*
* Full author contact details are available in file CREDITS.
void InsetMathBox::write(WriteStream & os) const
{
+ ModeSpecifier specifier(os, TEXT_MODE);
os << '\\' << name_ << '{' << cell(0) << '}';
}
{
FontSetChanger dummy(mi.base, "textnormal");
cell(0).metrics(mi, dim);
- metricsMarkers(dim, 3); // 1 pixel space, 1 frame, 1 space
+ metricsMarkers2(dim, 3); // 1 pixel space, 1 frame, 1 space
}
void InsetMathFBox::write(WriteStream & os) const
{
+ ModeSpecifier specifier(os, TEXT_MODE);
os << "\\fbox{" << cell(0) << '}';
}
void InsetMathMakebox::write(WriteStream & os) const
{
+ ModeSpecifier specifier(os, TEXT_MODE);
os << (framebox_ ? "\\framebox" : "\\makebox");
if (cell(0).size() || !os.latex()) {
os << '[' << cell(0) << ']';
void InsetMathBoxed::write(WriteStream & os) const
{
+ ModeSpecifier specifier(os, MATH_MODE);
os << "\\boxed{" << cell(0) << '}';
}