commit 3cca821140cc7afbf55d6822b852da58f6a33ff0
Author: Juergen Spitzmueller <[email protected]>
Date:   Mon Nov 24 17:26:07 2025 +0100

    Do not load mathtools if user selected not to
---
 src/LaTeXFeatures.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp
index da905cb057..6f7957a199 100644
--- a/src/LaTeXFeatures.cpp
+++ b/src/LaTeXFeatures.cpp
@@ -1358,7 +1358,8 @@ string const LaTeXFeatures::getPackages() const
                if (mustProvide(feature)) {
                        if (before_simplefeature_.find(feature) != 
before_simplefeature_.end())
                                packages << before_simplefeature_[feature];
-                       packages << "\\usepackage{" << feature << "}\n";
+                       if (params_.use_package(feature) != 
BufferParams::package_off)
+                               packages << "\\usepackage{" << feature << "}\n";
                        if (after_simplefeature_.find(feature) != 
after_simplefeature_.end())
                                packages << after_simplefeature_[feature];
                }
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to