I’d to set some fairly simple maths in Minion Pro (and potentially other system fonts), using LuaTeX. I’d hoped that something like the following should work:
\documentclass{minimal}
\usepackage{fontspec}
\setmainfont{Minion Pro}
\begin{document}
Here’s some text. Now some math: $x^2 + y^2 = z^2$.
\end{document}
However, the x^2 + y^2 + z^2
is set in Computer Modern. Material in \mathit
, \mathrm
etc. appears in Minion as hoped, and can be further controlled by \setmathrm
and so on, but is there any way to control the main math font?
I don’t have Minion Math, and trying to use ordinary Minion Pro as the math font via unicode-math
doesn’t help—indeed, it puts \mathit
material back into CM! MnSymbol
also doesn’t help. But in any case, I’d prefer a solution that generalises to other fonts, if possible.
Alternatively, changing to XeLaTeX, the mathspec
package does the trick, using \setmathfont(Digits,Latin){Minion Pro}
. But I’d be sad to give up microtype
and the rest of the power of LuaTeX!
unicode-math
, so it is hard to tell why it didn't work for you (it should).\usepackage{unicode-math}
,\setmathfont{Minion Pro}
to the preamble; I tried it both before and after thefontspec
/\setmainfont
lines.