2

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

TeX output

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.

  • Is MinionMath-Regular an OpenType font? – egreg Mar 21 '15 at 14:20
  • 1
    As Manuel says, when you remap an alphabet using range, this just causes unicode-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. – Jura Pintar Mar 21 '15 at 17:52
  • 1
    @sps If you look where \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 that luaotfload 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? – egreg Mar 21 '15 at 19:03
  • 1
    @sps A faulty copy of Minion Math would be my guess also at this point. Other than the erroneous fontdimens in your log that egreg pointed out, I can't find any relevant differences in our logs. You can open 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. – Jura Pintar Mar 21 '15 at 20:03
  • 1
    Were there any solutions to this, or? – blubbafett Apr 23 '15 at 15:54
5

Your MWE works just fine here, with LuaLaTeX as well as with XeLaTeX. With identical, correctly typeset results.

Obviously you do have a faulty version of Minion Math fonts. From where did you get the fonts?

Please do send me (as I'm the creator of Minion Math fonts) your font file and your resulting PDF.

MWE typeset with LuaLaTeX and Minion Math

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.