I found an answer of \mathit Greek letter: https://tex.stackexchange.com/a/87239/180617
However I found \mathit Greek letter will disappear when loading fontspec package, even if no command like \setmainfont
Here is my mwe:
% compile with xelatex
\documentclass{article}
\usepackage{fontspec}
\begin{document}
$a +\Sigma + \pi$
$\mathit{a +\Sigma + \pi}$
\end{document}
will output
If I comment \usepackage{fontspec}, it will output
with both xelatex and pdflatex
Why will this happen?


\mathitis the text italic font used in math, so the input\mathit{a +\Sigma + \pi}is rather unexpected. – David Carlisle Oct 15 '21 at 15:50