I'm using the mathastext package in order not to have italic everywhere in maths formulas, in particular for function names or vectors and matrices letters.
But this leads to strange behavior with greek letters as the following MWE shows:
\documentclass{report}
\usepackage{amsmath}
\usepackage[LGRgreek,defaultmathsizes]{mathastext}
\begin{document}
\begin{equation}
\mathit{y} = \mathit{X\beta} + \mathit{\epsilon}
\end{equation}
\begin{equation}
\mathit{y} = \mathit{X}{\beta} + \epsilon
\end{equation}
\end{document}
How could I locally (i.e. within any particular equation) force some letter to be italic, especially greek letters?


mathastextonly applies one alphabet (rmorit) for greek, but not completely sure. – gnucchi Nov 15 '17 at 12:30