The \text macro does not require the full AMS package. Also load amstext

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
This commit is contained in:
Enrico Forestieri 2009-04-05 02:11:07 +00:00
parent 67cbe895fe
commit 8f52d3b7db

View 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");
}