]> git.lyx.org Git - features.git/commitdiff
The \text macro does not require the full AMS package. Also load amstext
authorEnrico Forestieri <forenr@lyx.org>
Sun, 5 Apr 2009 02:11:07 +0000 (02:11 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 5 Apr 2009 02:11:07 +0000 (02:11 +0000)
when a text-in-math environment is used, such that super and subscripts
are typeset in the correct size.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29098 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathFont.cpp

index 5cf5388b9a19b386a1313f9534b47601baa5604f..6fc49f9312a21ae7db145569f955d30d0a1e1bed 100644 (file)
@@ -88,8 +88,9 @@ void InsetMathFont::validate(LaTeXFeatures & features) const
        // Fraktur used:
        if (key_->name == "mathfrak" || key_->name == "mathbb")
                features.require("amssymb");
-       if (key_->name == "text")
-               features.require("amsmath");
+       if (key_->name == "text" || key_->name == "textnormal"
+           || (key_->name.length() == 6 && key_->name.substr(0, 4) == "text"))
+               features.require("amstext");
        if (key_->name == "textipa")
                features.require("tipa");
 }