From: Enrico Forestieri Date: Sun, 5 Apr 2009 02:11:07 +0000 (+0000) Subject: The \text macro does not require the full AMS package. Also load amstext X-Git-Tag: 2.0.0~6935 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8f52d3b7db20a0c79c8295c0071eb913139931a6;p=features.git 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 --- diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp index 5cf5388b9a..6fc49f9312 100644 --- a/src/mathed/InsetMathFont.cpp +++ b/src/mathed/InsetMathFont.cpp @@ -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"); }