I cannot get the font Minion Math to display correctly in LuaLaTeX. Several posts on here and the official font support page all say to use the package unicode-math
. And so I try:
\documentclass{article}
\usepackage{fontspec,unicode-math}
\setromanfont{Minion Pro}
\setmathfont{MinionMath-Regular}
\begin{document}
Example math:
$$\int_{0}^{\infty} \frac{x^{2}-3\phi}{2\pi\chi} \left(\frac{1}{x}-3\right)$$
\end{document}
but I end up with
where the symbols are all messed up or not even displayed (e.g. the fraction bar).
Do I need to take any additional steps here? I couldn't find this explained anywhere. Here is the \listfiles
log.
EDIT: Apparently the problem with fractions can be fixed with something like
\setmathfont[range={\mathfrak}]{texgyrepagella-math.otf}
so it looks like a problem with the font itself. The \left
-\right
brackets and integral sign still stay the same size.
\LaTeX{}
to typeset little pictures of minions, in an effort to teach kids arithmetic.range
, this just causesunicode-math
to use the parameters of the last maths font so invoked. Before we conclude that you've got a corrupt copy of Minion Math, why don't you add\listfiles
to your preamble and post the log. That way we can make sure that there isn't a difference in our TeX configurations that could still be causing you to have the problem and me not.\fontdimen
parameters are set, you'll see that several of them are set to zero. The missing fraction line with no space between numerator and denominator is caused by those wrong values. Note thatluaotfload
gets the values from the OpenType font parameters, so the conjecture is that you have a bad copy of Minion Math. What's the output if you use XeLaTeX?MinionMath-Regular.otf
in FontForge and examine the MATH table directly to confirm (all the MathConstants should have non-zero values). And, naturally, contact Johannes Kuester of Typoma to get replacement font files.