From 8f52d3b7db20a0c79c8295c0071eb913139931a6 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 5 Apr 2009 02:11:07 +0000 Subject: [PATCH] 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 --- src/mathed/InsetMathFont.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"); } -- 2.39.2