Do not load mathrsfs if unicode-math is required (#12734)

The latter provides \mathscr and the packages clash
This commit is contained in:
Juergen Spitzmueller 2023-04-15 12:35:22 +02:00
parent 3dd79b1c4e
commit a15bc829d1

View 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");