]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFont.cpp
A little cleanup of the layout files.
[lyx.git] / src / mathed / InsetMathFont.cpp
index 2d73d64710223259947fa958a33ade3e7043260c..6fc49f9312a21ae7db145569f955d30d0a1e1bed 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -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");
 }