From d4d4654d6325e92aff96523b64e1d403655a71cc Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 13 Oct 2022 16:05:03 +0200 Subject: [PATCH] Only load subscript package with LaTeX < 2005/12/01 (#12387) --- lib/chkconfig.ltx | 2 ++ src/LaTeXFeatures.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/chkconfig.ltx b/lib/chkconfig.ltx index 3f5427c440..957ea22d08 100644 --- a/lib/chkconfig.ltx +++ b/lib/chkconfig.ltx @@ -235,6 +235,8 @@ \AddVariable{fmtversion}{\fmtversion} %%% Crucial versions +% This one introduces \textsubscript +\TestLaTeXVersion{2005/12/01} % This one introduces path encoding changes \TestLaTeXVersion{2019/10/01} % This introduces all math and text spaces diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index ad50374d47..7e65c4280f 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -1511,7 +1511,8 @@ string const LaTeXFeatures::getPackages() const } // fixltx2e provides subscript - if (mustProvide("subscript") && !isRequired("fixltx2e")) + if (mustProvide("subscript") && !isRequired("fixltx2e") + && !isAvailable("LaTeX-2005/12/01")) packages << "\\usepackage{subscript}\n"; // footmisc must be loaded after setspace -- 2.39.5