commit a15bc829d10e73fd89d2d4baacb63bd34fc9d966
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sat Apr 15 12:35:22 2023 +0200

    Do not load mathrsfs if unicode-math is required (#12734)
    
    The latter provides \mathscr and the packages clash
---
 src/mathed/InsetMathFont.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp
index 7a1a18d..5687eed 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");
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to