]> git.lyx.org Git - features.git/commitdiff
Fix bug #7233: amsthm does not work with the redefined \[ command of fixltx2e.
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 12 Jan 2011 19:54:46 +0000 (19:54 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 12 Jan 2011 19:54:46 +0000 (19:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37187 a592a061-630c-0410-9148-cb99ea01b6c8

src/LaTeXFeatures.cpp

index 6593960241658de5b8969f8ffcee7ca5315d4adc..090a1d84d70328e58d753c86305f3c4cb6da23e0 100644 (file)
@@ -581,7 +581,6 @@ char const * simplefeatures[] = {
        "framed",
        "soul",
        "textcomp",
-       "fixltx2e",
        "pmboxdraw",
        "bbding",
        "ifsym",
@@ -701,6 +700,12 @@ string const LaTeXFeatures::getPackages() const
        if (!params_.useNonTeXFonts && !loadAMSPackages().empty())
                packages << loadAMSPackages();
 
+       // fixltx2e must be loaded after amsthm, since amsthm produces an error with
+       // the redefined \[ command (bug 7233). Load is as early as possible, since
+       // other packages might profit from it.
+       if (mustProvide("fixltx2e"))
+               packages << "\\usepackage{fixltx2e}\n";
+
        // wasysym is a simple feature, but it must be after amsmath if both
        // are used
        // wasysym redefines some integrals (e.g. iint) from amsmath. That