X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathUnderset.cpp;h=7632b0c6af2e6e9c1d01906163314a3e8f0560af;hb=2c5c2a66833a0c2aefdfdb8f465a83a912e40e4b;hp=0da62f915535cb8a1ed5736b8de67b0a9aeaf994;hpb=36e2a2c95f3757fff6a734bad18b05f2e8d10eb1;p=lyx.git diff --git a/src/mathed/InsetMathUnderset.cpp b/src/mathed/InsetMathUnderset.cpp index 0da62f9155..7632b0c6af 100644 --- a/src/mathed/InsetMathUnderset.cpp +++ b/src/mathed/InsetMathUnderset.cpp @@ -85,6 +85,8 @@ bool InsetMathUnderset::idxUpDown(Cursor & cur, bool up) const void InsetMathUnderset::write(WriteStream & os) const { MathEnsurer ensurer(os); + if (os.fragile()) + os << "\\protect"; os << "\\underset{" << cell(0) << "}{" << cell(1) << '}'; } @@ -115,11 +117,10 @@ void InsetMathUnderset::validate(LaTeXFeatures & features) const if (features.runparams().isLaTeX()) features.require("amsmath"); else if (features.runparams().math_flavor == OutputParams::MathAsHTML) - features.addPreambleSnippet(""); + "span.bottom{font-size: 66%;}"); InsetMathNest::validate(features); }