commit 7b99c70fb5adcf309aba6224c995a4f5658c846b
Author: Juergen Spitzmueller <[email protected]>
Date:   Sun Apr 27 10:26:02 2025 +0200

    Output theorem definitions late in general
---
 src/BufferParams.cpp  | 4 ++--
 src/LaTeXFeatures.cpp | 3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp
index d325534406..3a82cb909a 100644
--- a/src/BufferParams.cpp
+++ b/src/BufferParams.cpp
@@ -3054,8 +3054,8 @@ bool BufferParams::writeLaTeX(otexstream & os, 
LaTeXFeatures & features,
                os << "{cleveref}\n";
        }
 
-       if (features.mustProvide("cleveref") || features.mustProvide("zref"))
-               os << features.getThmDefinitions();
+       // theorem definitions
+       os << features.getThmDefinitions();
 
        // Since menukeys uses catoptions, which does some heavy changes on 
key-value options,
        // it is recommended to load menukeys as the last package (even after 
hyperref)
diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp
index a7e51d51e5..cfa06f747a 100644
--- a/src/LaTeXFeatures.cpp
+++ b/src/LaTeXFeatures.cpp
@@ -2011,9 +2011,6 @@ string const LaTeXFeatures::loadAMSPackages() const
        if (mustProvide("amsthm"))
                tmp << "\\usepackage{amsthm}\n";
 
-       if (!mustProvide("cleveref") && !mustProvide("zref"))
-               tmp << getThmDefinitions();
-
        if (mustProvide("amssymb")
            && params_.use_package("amssymb") != BufferParams::package_off)
                tmp << "\\usepackage{amssymb}\n";
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to