]> git.lyx.org Git - lyx.git/commitdiff
Load amsthm after amsmath.
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 22 Mar 2015 10:14:08 +0000 (11:14 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 22 Mar 2015 10:14:08 +0000 (11:14 +0100)
This follows a strong advice in the masthm manual and fixes #7233.

src/LaTeXFeatures.cpp

index cf67cab22dd69c7e9a19dcf06b25bc555003bf2d..7491ef3757294cc5fe4cfca213652fa1930ba0f7 100644 (file)
@@ -1299,8 +1299,6 @@ bool LaTeXFeatures::needBabelLangOptions() const
 string const LaTeXFeatures::loadAMSPackages() const
 {
        ostringstream tmp;
-       if (mustProvide("amsthm"))
-               tmp << "\\usepackage{amsthm}\n";
 
        if (mustProvide("amsmath")
            && params_.use_package("amsmath") != BufferParams::package_off) {
@@ -1313,6 +1311,9 @@ string const LaTeXFeatures::loadAMSPackages() const
                        tmp << "\\usepackage{amstext}\n";
        }
 
+       if (mustProvide("amsthm"))
+               tmp << "\\usepackage{amsthm}\n";
+
        if (mustProvide("amssymb")
            && params_.use_package("amssymb") != BufferParams::package_off)
                tmp << "\\usepackage{amssymb}\n";