void InsetMathOverset::write(WriteStream & os) const
{
MathEnsurer ensurer(os);
+ if (os.fragile())
+ os << "\\protect";
os << "\\overset{" << 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.overset{display: inline-block; vertical-align: bottom; text-align:center;}\n"
"span.overset span {display: block;}\n"
- "span.top{font-size: 66%;}\n"
- "</style>");
+ "span.top{font-size: 66%;}");
InsetMathNest::validate(features);
}