Only load subscript package with LaTeX < 2005/12/01 (#12387)

This commit is contained in:
Juergen Spitzmueller 2022-10-13 16:05:03 +02:00
parent ac3562dbc9
commit d4d4654d63
2 changed files with 4 additions and 1 deletions

View File

@ -235,6 +235,8 @@
\AddVariable{fmtversion}{\fmtversion} \AddVariable{fmtversion}{\fmtversion}
%%% Crucial versions %%% Crucial versions
% This one introduces \textsubscript
\TestLaTeXVersion{2005/12/01}
% This one introduces path encoding changes % This one introduces path encoding changes
\TestLaTeXVersion{2019/10/01} \TestLaTeXVersion{2019/10/01}
% This introduces all math and text spaces % This introduces all math and text spaces

View File

@ -1511,7 +1511,8 @@ string const LaTeXFeatures::getPackages() const
} }
// fixltx2e provides subscript // fixltx2e provides subscript
if (mustProvide("subscript") && !isRequired("fixltx2e")) if (mustProvide("subscript") && !isRequired("fixltx2e")
&& !isAvailable("LaTeX-2005/12/01"))
packages << "\\usepackage{subscript}\n"; packages << "\\usepackage{subscript}\n";
// footmisc must be loaded after setspace // footmisc must be loaded after setspace