]> git.lyx.org Git - features.git/commitdiff
Do not load mathrsfs if unicode-math is required (#12734)
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 15 Apr 2023 10:35:22 +0000 (12:35 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 15 Apr 2023 10:35:22 +0000 (12:35 +0200)
The latter provides \mathscr and the packages clash

src/mathed/InsetMathFont.cpp

index 7a1a18d919ee82569e965ad6a7a4aac573941ee0..5687eed057165e1e7ed40e37ec35529568030ecb 100644 (file)
@@ -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");