commit d4d4654d6325e92aff96523b64e1d403655a71cc
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu Oct 13 16:05:03 2022 +0200

    Only load subscript package with LaTeX < 2005/12/01 (#12387)
---
 lib/chkconfig.ltx     |    2 ++
 src/LaTeXFeatures.cpp |    3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lib/chkconfig.ltx b/lib/chkconfig.ltx
index 3f5427c..957ea22 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 ad50374..7e65c42 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
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to