]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.C
Alfredo's second patch
[lyx.git] / src / LaTeXFeatures.C
index 3fd615848002e728ae19946b1a33c2901dd1ebfb..8f6dc0597cd30064e28ed85ce7432e8ec8b9c917 100644 (file)
@@ -197,7 +197,8 @@ string const LaTeXFeatures::getPackages() const
        //
 
        if (isRequired("amsmath")
-           && ! tclass.provides(LyXTextClass::amsmath)) {
+           && !tclass.provides(LyXTextClass::amsmath)
+           && params.use_amsmath != BufferParams::AMS_OFF) {
                packages << "\\usepackage{amsmath}\n";
        }
 
@@ -263,7 +264,7 @@ string const LaTeXFeatures::getPackages() const
        }
 
        // amssymb.sty
-       if (isRequired("amssymb") || params.use_amsmath)
+       if (isRequired("amssymb") || params.use_amsmath == BufferParams::AMS_ON)
                packages << "\\usepackage{amssymb}\n";
        // url.sty
        if (isRequired("url") && ! tclass.provides(LyXTextClass::url))