mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
- 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:
parent
180448cf14
commit
5aece0832c
@ -472,7 +472,8 @@ char const * simplefeatures[] = {
|
||||
"listings",
|
||||
"bm",
|
||||
"pdfpages",
|
||||
"relsize"
|
||||
"relsize",
|
||||
"amscd"
|
||||
};
|
||||
|
||||
int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user