I need upright math operators such as \sin
, \tan
etc., italic uppercase greek letters and a working \partial
operator. With the code below I was able to get two out of three, but I was told that it's not the recommended way of achieving what I need (see comments). And I still need a \partial
sign.
\documentclass[convert]{standalone}
\usepackage[math-style=ISO]{unicode-math}
\usepackage{amsmath}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{TeX Gyre Pagella}
\setsansfont[Ligatures=TeX,Scale=.9]{TeX Gyre Heros}
\setmonofont[Scale=MatchLowercase]{TeX Gyre Cursor}
\setmathfont[Ligatures=TeX]{TeX Gyre Pagella Math}
\setmathfont[range=\mathup] {TeX Gyre Pagella}
\setmathfont[range=\mathbfup]{TeX Gyre Pagella Bold}
\setmathfont[range=\mathbfit]{TeX Gyre Pagella Bold Italic}
\setmathfont[range=\mathit] {TeX Gyre Pagella Italic}
\begin{document}
$x\partial x$
\end{document}
How can I get all three things working?
\sin
,\tan
etc. are printed in italic, and I found this solution on tex.sx. So, do you know why this does not work? Otherwise I have to ask a new question. Thanks anyway!amsmath
should be loaded beforeunicode-math
; see the manual just after “Getting started”.