void InsetMathUnderset::write(WriteStream & os) const
{
MathEnsurer ensurer(os);
+ if (os.fragile())
+ os << "\\protect";
os << "\\underset{" << cell(0) << "}{" << cell(1) << '}';
}
if (features.runparams().isLaTeX())
features.require("amsmath");
else if (features.runparams().math_flavor == OutputParams::MathAsHTML)
- features.addPreambleSnippet("<style type=\"text/css\">\n"
+ features.addCSSSnippet(
"span.underset{display: inline-block; vertical-align: top; text-align:center;}\n"
"span.underset span {display: block;}\n"
- "span.bottom{font-size: 66%;}\n"
- "</style>");
+ "span.bottom{font-size: 66%;}");
InsetMathNest::validate(features);
}