commit 5b5cddaaf7f6191d675b2cbf3af389380d6356cf
Author: Juergen Spitzmueller <[email protected]>
Date: Fri Oct 10 17:04:50 2025 +0200
Assure main language xref definitions are restored after switch from
secondary language
---
src/LaTeXFeatures.cpp | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp
index da0f719fd3..2beba6871d 100644
--- a/src/LaTeXFeatures.cpp
+++ b/src/LaTeXFeatures.cpp
@@ -2578,6 +2578,16 @@ docstring const
LaTeXFeatures::getTClassI18nPreamble(bool use_babel,
buffer().language(),
buffer().params().encoding(),
use_polyglossia, false));
+ if (!thmxref.empty())
+
snippets.insert(i18npreamble("\\addto\\captions$$lang{" + rtrim(thmxref, "\n")
+ "}\n",
+
buffer().language(),
+
buffer().params().encoding(),
+ use_polyglossia,
false));
+ if (!xxref.empty())
+
snippets.insert(i18npreamble("\\addto\\captions$$lang{" + rtrim(xxref, "\n") +
"}\n",
+
buffer().language(),
+
buffer().params().encoding(),
+ use_polyglossia,
false));
for (lang_it lit = lbeg; lit != lend; ++lit) {
if (!thmxref.empty())
snippets.insert(i18npreamble("\\addto\\captions$$lang{" + rtrim(thmxref, "\n")
+ "}\n",
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs