From 880715c5a542221d318d2846f625ec34f205335d Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 22 Mar 2015 11:14:08 +0100 Subject: [PATCH] Load amsthm after amsmath. This follows a strong advice in the masthm manual and fixes #7233. --- src/LaTeXFeatures.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index cf67cab22d..7491ef3757 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -1299,8 +1299,6 @@ bool LaTeXFeatures::needBabelLangOptions() const string const LaTeXFeatures::loadAMSPackages() const { ostringstream tmp; - if (mustProvide("amsthm")) - tmp << "\\usepackage{amsthm}\n"; if (mustProvide("amsmath") && params_.use_package("amsmath") != BufferParams::package_off) { @@ -1313,6 +1311,9 @@ string const LaTeXFeatures::loadAMSPackages() const tmp << "\\usepackage{amstext}\n"; } + if (mustProvide("amsthm")) + tmp << "\\usepackage{amsthm}\n"; + if (mustProvide("amssymb") && params_.use_package("amssymb") != BufferParams::package_off) tmp << "\\usepackage{amssymb}\n"; -- 2.39.2