]> git.lyx.org Git - features.git/commitdiff
Load rotfloat and rotating after graphicx.
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 14 Aug 2019 13:16:10 +0000 (15:16 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:43 +0000 (15:48 +0200)
Fixes: #11502
src/LaTeXFeatures.cpp

index 7a74291b759b8f70f34d5cb2d35dccd835e86f46..251f5bf8f23931e7afb70f7cefe37a281c138b2b 100644 (file)
@@ -956,7 +956,6 @@ char const * simplefeatures[] = {
        "verbatim",
        "cprotect",
        "longtable",
-       "rotating",
        "latexsym",
        "pifont",
        // subfig is handled in BufferParams.cpp
@@ -968,7 +967,6 @@ char const * simplefeatures[] = {
          the `float' package. See the caption package documentation
          for explanation.*/
        "float",
-       "rotfloat",
        "wrapfig",
        "booktabs",
        "dvipost",
@@ -1244,6 +1242,13 @@ string const LaTeXFeatures::getPackages() const
                                 << "]{graphicx}\n";
        }
 
+       // These must be loaded after graphicx, since they try
+       // to load graphicx without options
+       if (mustProvide("rotating"))
+               packages << "\\usepackage{rotating}\n";
+       if (mustProvide("rotfloat"))
+               packages << "\\usepackage{rotfloat}\n";
+
        // lyxskak.sty --- newer chess support based on skak.sty
        if (mustProvide("chess"))
                packages << "\\usepackage[ps,mover]{lyxskak}\n";