]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFrac.cpp
Fix regression of 18779013 for \smash
[lyx.git] / src / mathed / InsetMathFrac.cpp
index 2a00e1c573461d972e25cfc32aac8d5159f71f13..6a175fad31ac26e0568c24684ef557917ee5a5c9 100644 (file)
@@ -512,11 +512,10 @@ void InsetMathFrac::validate(LaTeXFeatures & features) const
                features.require("amsmath");
        if (features.runparams().math_flavor == OutputParams::MathAsHTML)
                // CSS adapted from eLyXer
-               features.addPreambleSnippet("<style type=\"text/css\">\n"
+               features.addCSSSnippet(
                        "span.frac{display: inline-block; vertical-align: middle; text-align:center;}\n"
                        "span.numer{display: block;}\n"
-                       "span.denom{display: block; border-top: thin solid #000040;}\n"
-                       "</style>");
+                       "span.denom{display: block; border-top: thin solid #000040;}");
        InsetMathNest::validate(features);
 }
 
@@ -717,11 +716,10 @@ void InsetMathBinom::validate(LaTeXFeatures & features) const
                if (kind_ == DBINOM || kind_ == TBINOM)
                        features.require("amsmath");
        } else if (features.runparams().math_flavor == OutputParams::MathAsHTML)
-               features.addPreambleSnippet("<style type=\"text/css\">\n"
+               features.addCSSSnippet(
                        "span.binom{display: inline-block; vertical-align: bottom; text-align:center;}\n"
                        "span.binom span{display: block;}\n"
-                       "span.binomdelim{font-size: 2em;}\n"
-                       "</style>");
+                       "span.binomdelim{font-size: 2em;}");
        InsetMathNest::validate(features);
 }