]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathFactory.cpp
Native support for \smash[t] and \smash[b]
[features.git] / src / mathed / MathFactory.cpp
index d19899866fb25c7c8509107024a48ed168ef1704..85fdf478565f6fa6ad11d4562161f6ec55839932 100644 (file)
@@ -561,6 +561,11 @@ MathAtom createInsetMath(docstring const & s, Buffer * buf)
                return MathAtom(new InsetMathCancelto(buf));
        if (s == "smash")
                return MathAtom(new InsetMathPhantom(buf, InsetMathPhantom::smash));
+       // The following 2 string values are only for math toolbar use, no LaTeX names
+       if (s == "smashb")
+               return MathAtom(new InsetMathPhantom(buf, InsetMathPhantom::smashb));
+       if (s == "smasht")
+               return MathAtom(new InsetMathPhantom(buf, InsetMathPhantom::smasht));
        if (s == "mathclap")
                return MathAtom(new InsetMathPhantom(buf, InsetMathPhantom::mathclap));
        if (s == "mathllap")