- InsetMathAMSArray.cpp: load the amscd package when the command \CD was used, fixes bug 5090

- LaTeXFeatures.cpp: add amscd

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25909 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-07-27 00:47:28 +00:00
parent 180448cf14
commit 5aece0832c
2 changed files with 7 additions and 2 deletions

View File

@ -472,7 +472,8 @@ char const * simplefeatures[] = {
"listings",
"bm",
"pdfpages",
"relsize"
"relsize",
"amscd"
};
int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);

View File

@ -147,7 +147,11 @@ void InsetMathAMSArray::normalize(NormalStream & os) const
void InsetMathAMSArray::validate(LaTeXFeatures & features) const
{
features.require("amsmath");
if (name_ != "CD")
features.require("amsmath");
// amscd is independent of amsmath although it is part of the amsmath bundle
if (name_ == "CD")
features.require("amscd");
InsetMathGrid::validate(features);
}