void InsetMathBoldSymbol::write(WriteStream & os) const
{
- bool brace = os.pendingBrace();
- os.pendingBrace(false);
- if (os.latex() && os.textMode()) {
- os << "\\ensuremath{";
- os.textMode(false);
- brace = true;
- }
+ MathEnsurer ensurer(os);
switch (kind_) {
case AMS_BOLD:
os << "\\boldsymbol{" << cell(0) << "}";
os << "\\hm{" << cell(0) << "}";
break;
}
- os.pendingBrace(brace);
}