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

The latter provides \mathscr and the packages clash

(cherry picked from commit a15bc829d1)
This commit is contained in:
Juergen Spitzmueller 2023-04-15 12:35:22 +02:00
parent 624a1be072
commit f5457342c4
2 changed files with 3 additions and 1 deletions

View File

@ -128,7 +128,7 @@ void InsetMathFont::validate(LaTeXFeatures & features) const
if (fontname == "text" || fontname == "textnormal" if (fontname == "text" || fontname == "textnormal"
|| (fontname.length() == 6 && fontname.substr(0, 4) == "text")) || (fontname.length() == 6 && fontname.substr(0, 4) == "text"))
features.require("amstext"); features.require("amstext");
if (fontname == "mathscr") if (fontname == "mathscr" && !features.isRequired("unicode-math"))
features.require("mathrsfs"); features.require("mathrsfs");
if (fontname == "textipa") if (fontname == "textipa")
features.require("tipa"); features.require("tipa");

View File

@ -44,6 +44,8 @@ What's new
- Fix leaking of linespace settings between paragraphs if they have - Fix leaking of linespace settings between paragraphs if they have
different aligment (bug 12638). different aligment (bug 12638).
- Do not load mathrsfs if unicode-math is required (bug 12734).
* USER INTERFACE * USER INTERFACE