包 mathspec 错误

包 mathspec 错误

我正在尝试使用 mathspec 包,但由于配置文件中的某些内容导致 fontspec 错误,我无法加载它。我不知道如何更简单

MWE 如下。

\documentclass[12pt]{report}
\usepackage{mathspec}
\setallmainfonts[Scale=MatchLowercase]{NewCenturySchlbk}
\setallsansfonts[Scale=1]{Arial} % primarily used for captions
\setallmonofonts{Courier New}

\begin{document}

The quadratic formula is:
\begin{equation}
x = \frac{-\beta\pm\sqrt{4\times A\times \delta}}{2A}
\end{equation}

when $\sqrt{4\times A\times \Delta} >0$ there are two real roots. 
\end{document}

这是日志文件

这是 XeTeX,版本 3.14159265-2.6-0.999992(MiKTeX 2.9.7300 64 位)进入扩展模式(C:/TEMP/MathFont/MathFont.tex LaTeX2e <2020-02-02> 补丁级别 1 L3 编程层 <2020-02-08>(“C:\Program Files\MiKTeX 2.9\tex/latex/base\report.cls” 文档类:报告 2019/12/20 v1.4l 标准 LaTeX 文档类
(“C:\Program Files\MiKTeX 2.9\tex/latex/base\size12.clo”))
(“C:\Program Files\MiKTeX 2.9\tex/xelatex/mathspec\mathspec.sty”
(“C:\Program Files\MiKTeX 2.9\tex/latex/etoolbox\etoolbox.sty”)
(“C:\Program Files\MiKTeX 2.9\tex/latex/amsmath\amstext.sty”
(“C:\Program Files\MiKTeX 2.9\tex/latex/amsmath\amsgen.sty”))
(“C:\Program Files\MiKTeX 2.9\tex/generic/iftex\ifxetex.sty”
(“C:\Program Files\MiKTeX 2.9\tex/generic/iftex\iftex.sty”))
(“C:\Program Files\MiKTeX 2.9\tex/latex/fontspec\fontspec.sty”
(“C:\Program Files\MiKTeX 2.9\tex/latex/l3packages/xparse\xparse.sty”
(“C:\Program Files\MiKTeX 2.9\tex/latex/l3kernel\expl3.sty”
("C:\Program Files\MiKTeX 2.9\tex/latex/l3backend\l3backend-xdvipdfmx.def")))
("C:\Program Files\MiKTeX 2.9\tex/latex/fontspec\fontspec-xetex.sty"
("C:\Program Files\MiKTeX 2.9\tex/latex/base\fontenc.sty")
("C:\Program Files\MiKTeX 2.9\tex/latex/fontspec\fontspec.cfg")))
! 未定义控制序列。l.642
\define@choicekey
[eu]
?

相关内容