]> git.lyx.org Git - lyx.git/commitdiff
- InsetMathAMSArray.cpp: load the amscd package when the command \CD was used, fixes...
authorUwe Stöhr <uwestoehr@web.de>
Sun, 27 Jul 2008 00:47:28 +0000 (00:47 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sun, 27 Jul 2008 00:47:28 +0000 (00:47 +0000)
- LaTeXFeatures.cpp: add amscd

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25909 a592a061-630c-0410-9148-cb99ea01b6c8

src/LaTeXFeatures.cpp
src/mathed/InsetMathAMSArray.cpp

index a29ee11f7b4fbffe668cb721ef08e88722aea4d8..24dba48977f2784d2c01e6d314145bbb80c3df80 100644 (file)
@@ -472,7 +472,8 @@ char const * simplefeatures[] = {
        "listings",
        "bm",
        "pdfpages",
-       "relsize"
+       "relsize",
+       "amscd"
 };
 
 int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
index 173c9bbda433347d8861fcc953842751115ed7d4..39589649780e6eabb513302c5736369fab3d204f 100644 (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);
 }