]> git.lyx.org Git - features.git/commitdiff
fix macro order for newsubfloat
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 13 Oct 2013 09:45:59 +0000 (11:45 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 13 Oct 2013 09:45:59 +0000 (11:45 +0200)
src/LaTeXFeatures.cpp

index 9292938c0f36d7ce71181eaceb073040ebd02d94..b53d1a33f4df74d712fa6a8df9a99800cbdc216f 100644 (file)
@@ -1680,7 +1680,8 @@ void LaTeXFeatures::getFloatDefinitions(odocstream & os) const
                        // effect. (Lgb)
                }
                if (cit->second)
-                       os << "\n\\newsubfloat{" << from_ascii(fl.floattype()) << "}\n";
+                       // The subfig package is loaded later
+                       os << "\n\\AtBeginDocument{\\newsubfloat{" << from_ascii(fl.floattype()) << "}}\n";
        }
 }