X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathUnderset.cpp;h=0da62f915535cb8a1ed5736b8de67b0a9aeaf994;hb=573500dd04f154f27318ac5ec469a337f97fe9f0;hp=a447cac7f7959eb37f10a377ff38deab2ef85c22;hpb=f29db33e695d6cd8dd3dd33c62832ec681df2675;p=lyx.git diff --git a/src/mathed/InsetMathUnderset.cpp b/src/mathed/InsetMathUnderset.cpp index a447cac7f7..0da62f9155 100644 --- a/src/mathed/InsetMathUnderset.cpp +++ b/src/mathed/InsetMathUnderset.cpp @@ -101,9 +101,26 @@ void InsetMathUnderset::mathmlize(MathStream & ms) const } +void InsetMathUnderset::htmlize(HtmlStream & os) const +{ + os << MTag("span", "class='underset'") + << MTag("span") << cell(0) << ETag("span") + << MTag("span", "class='bottom'") << cell(1) << ETag("span") + << ETag("span"); +} + + void InsetMathUnderset::validate(LaTeXFeatures & features) const { - features.require("amsmath"); + if (features.runparams().isLaTeX()) + features.require("amsmath"); + else if (features.runparams().math_flavor == OutputParams::MathAsHTML) + features.addPreambleSnippet(""); + InsetMathNest::validate(features); }