Minion 数学问题

Minion 数学问题

Minion Math我第一次尝试。不幸的是

\setmathfont{Minion Math}

在 XeLaTeX 下会导致以下我不明白的错误:

! Font \l_fontspec_font has only 8 fontdimen parameters.
<recently read> \l__um_font 

l.147     \setmathfont{Minion Math}

? h
To increase the number of font parameters, you must
use \fontdimen immediately after the \font is loaded.

LuaLaTeX 运行良好。完整的字体命令如下:

\usepackage{fontspec}
\defaultfontfeatures{Ligatures={TeX}}
\setmainfont{Minion Pro}
\setsansfont[Scale=MatchLowercase]{Corbel}
\setmonofont[Scale=MatchLowercase]{Myriad Pro}
\usepackage[math-style=ISO,bold-style=ISO]{unicode-math}
\setmathfont{Minion Math}

日志文件在错误发生之前提供以下信息:

\g__fontspec_family_MinionMath_int=\count276
.................................................
. fontspec info: "defining-font"
. 
. Font family 'MinionMath(0)' created for font 'Minion Math' with options
. [Ligatures={TeX},BoldItalicFont={},ItalicFont={},Script=Math,SizeFeatures={{S
ize=10.95-},{Size=8-10.95,Font=Minion
. Math,Style=MathScript},{Size=-8,Font=Minion Math,Style=MathScriptScript}}].
.  
.  This font family consists of the following NFSS series/shapes:
.  
. - 'normal' (m/n) with NFSS spec.: <10.95->"Minion
. Math/OT:script=math;language=DFLT;mapping=tex-text;"<8-10.95>"Minion
. Math/OT:script=math;language=DFLT;+ssty=0;mapping=tex-text;"<-8>"Minion
. Math/OT:script=math;language=DFLT;+ssty=1;mapping=tex-text;"
. - 'small caps'  (m/sc) with NFSS spec.: 
. - 'bold' (bx/n) with NFSS spec.: <->"Minion
. Math/B/OT:script=math;language=DFLT;mapping=tex-text;"
. - 'bold small caps'  (bx/sc) with NFSS spec.: 
.................................................

我应该在源文件中进行哪些更改?

答案1

我无法重现。我认为你使用的是盗版的 Minion Math,它已知被破坏

去买基本套装吧。看看http://typoma.de/en/fonts.html#mnm_pricing了解详情。

\documentclass{article}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures={TeX}}
\setmainfont{Minion Pro}
%\setsansfont[Scale=MatchLowercase]{Corbel} % I don't have this font
\setmonofont[Scale=MatchLowercase]{Myriad Pro}
\usepackage[math-style=ISO,bold-style=ISO]{unicode-math}
\setmathfont{Minion Math}

\begin{document}
Hello world!  $a^2 + b^2 = c^2$
\end{document}

在此处输入图片描述

相关内容