Am Samstag, dem 22.11.2025 um 14:50 +0100 schrieb Jürgen Spitzmüller:
> LaTeXFeatures::isProvided() does not add a package to
> features_loaded_ if it is provided. This might be the reason for it
> to be loaded when it shouldn't.
The attached patch would fix this.
--
Jürgen
diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp
index b854a4f4c7..91eaecccc5 100644
--- a/src/LaTeXFeatures.cpp
+++ b/src/LaTeXFeatures.cpp
@@ -755,6 +755,15 @@ bool LaTeXFeatures::isRequired(string const & name) const
bool LaTeXFeatures::isProvided(string const & name) const
+{
+ bool const res = checkProvided(name);
+ if (res)
+ features_loaded_.insert(name);
+ return res;
+}
+
+
+bool LaTeXFeatures::checkProvided(string const & name) const
{
// Currently, this is only features provided by babel languages
// (such as textgreek)
diff --git a/src/LaTeXFeatures.h b/src/LaTeXFeatures.h
index 101fe87730..6656bbb290 100644
--- a/src/LaTeXFeatures.h
+++ b/src/LaTeXFeatures.h
@@ -232,6 +232,8 @@ private:
///
bool refPrefixUsed(docstring const & pr) const;
///
+ bool checkProvided(std::string const & name) const;
+ ///
std::list<docstring> usedLayouts_;
///
std::list<docstring> usedInsetLayouts_;
--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel