From a15bc829d10e73fd89d2d4baacb63bd34fc9d966 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 15 Apr 2023 12:35:22 +0200 Subject: [PATCH] Do not load mathrsfs if unicode-math is required (#12734) The latter provides \mathscr and the packages clash --- src/mathed/InsetMathFont.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp index 7a1a18d919..5687eed057 100644 --- a/src/mathed/InsetMathFont.cpp +++ b/src/mathed/InsetMathFont.cpp @@ -126,7 +126,7 @@ void InsetMathFont::validate(LaTeXFeatures & features) const if (fontname == "text" || fontname == "textnormal" || (fontname.length() == 6 && fontname.substr(0, 4) == "text")) features.require("amstext"); - if (fontname == "mathscr") + if (fontname == "mathscr" && !features.isRequired("unicode-math")) features.require("mathrsfs"); if (fontname == "textipa") features.require("tipa"); -- 2.39.5