From 36730a2f3f34361c31b6b6ae9c2cae84d6029e86 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 13 Oct 2013 11:45:59 +0200 Subject: [PATCH] fix macro order for newsubfloat --- src/LaTeXFeatures.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index 9292938c0f..b53d1a33f4 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -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"; } } -- 2.39.2