什么时候unicode 数学使用时,例如用其变体替换希腊字符不再像以前那样有效:
\let\phi\varphi
使用unicode-math实现相同功能的方法是什么?
最小示例:
\documentclass[a4paper]{article}
\usepackage{fontspec}
\usepackage{unicode-math}
%\setmathfont{MnSymbol}
%\setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]{MinionPro-It}
\let\phi\varphi
\let\epsilon\varepsilon
\begin{document}
\noindent
varphi: $\varphi$ works!\\
phi: $\phi$ should look the same, but does not!\\
I actually want to fix the missing epsilon in MinionPro:\\
varepsilon: $\varepsilon$ works!\\
epsilon: $\epsilon$ doesn't!\\
\end{document}
答案1
正如您在其他帖子的答案中所看到的,您必须在文档开始后定义符号。
% arara: lualatex
\documentclass[a4paper]{article}
\usepackage{unicode-math}
\AtBeginDocument{%
\let\phi\varphi
\let\epsilon\varepsilon
}
\begin{document}
\noindent
varphi: $\varphi$ works!\\
phi: $\phi$ should look the same, but does not!\\
I actually want to fix the missing epsilon in MinionPro:\\
varepsilon: $\varepsilon$ works!\\
epsilon: $\epsilon$ doesn't!\\
\end{document}