mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
Load amsthm after amsmath.
This follows a strong advice in the amsthm manual and fixes #7233.
This commit is contained in:
parent
20c15f45d9
commit
4a83c642f9
@ -1287,8 +1287,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) {
|
||||
@ -1301,6 +1299,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";
|
||||
|
@ -78,6 +78,9 @@ What's new
|
||||
- Fix LaTeX errors caused by too late loading of fixltx2e package
|
||||
(bugs 9452, 9361).
|
||||
|
||||
- Fix loading order of amsmath and amsthm, thereby prevent a LaTeX
|
||||
error (bug 7233).
|
||||
|
||||
- Do not output \protect unnecessarily before \caption (bug 9177).
|
||||
|
||||
- Do not output \protect unnecessarily in subfigure contents (bug 9421).
|
||||
|
Loading…
x
Reference in New Issue
Block a user