]> 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:49:29 +0000 (11:49 +0200)
src/LaTeXFeatures.cpp
status.20x

index e642bdc65ca2dd50fe7d83303e9f676c72ed2767..b94f10639fdf08abcdd3188d4c155c07d23426a4 100644 (file)
@@ -1390,7 +1390,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";
        }
 }
 
index 0a06762f16992018e981f9c4c9d49db82f57259c..ca6f011e8a60563eae6d0f0e3e0eed7ab8dbb393 100644 (file)
@@ -54,6 +54,9 @@ What's new
 
 * DOCUMENT INPUT/OUTPUT
 
+- Fix garbage in document export (and maybe other places) by making encoding
+  conversions thread-safe (bug 8854).
+
 - Fix output of ulem commands (underline etc.) which was broken as of
   LyX 2.0.6 (bug 8733).
 
@@ -68,15 +71,14 @@ What's new
 - Fix compilation of documents containing chemical equations and math
   integrals (bug 8731).
 
+- Fix compilation with nested ("sub") custom floats.
+
 - Fix import of CSV-files.
 
 - Added h5 and h6 as HTML tags for Paragraph and Subparagraph.
 
 - Include alt tag when exporting math as images (bug 8746).
 
-- Fix garbage in document export (and maybe other places) by making encoding
-  conversions thread-safe (bug 8854).
-
 
 * USER INTERFACE