LuaLatex + Unicode-math, can't get upright greek with "\up*" commands
How greek letter are typeset depends on the option math-style
. With e.g. french
both \upmu
and \mu
will be upright, with ISO
both are italic. (I do find this confusing too, that \upXXX
ends up italic ...). If you want to force upright mode for a single instance use a markup command like \mathup
.
\documentclass{article}
\usepackage{amsmath}
\usepackage[math-style=ISO]{unicode-math} %or french, TeX, literal, upright
\begin{document}
$\upmu \mu x $
$\mathup{\mu}$
$\mathit{\Alpha}$
\end{document}
\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont{XITS Math}
\setmathfont[math-style=literal,range={"00F0-"03D6}]{XITS Math}
\begin{document}
This will work: $\upmu\upalpha x$ $\mitAlpha$
But this will work: $\mathrm{\mu}$ $\mathit{\Alpha}$
\end{document}