I would like to use a different font in inline-style math mode ($...$) and displayed equations (e.g., \begin{equation} ... \end{equation}). Currently, I set my fonts with
\setmainfont{Frutiger 45 Light}
\setmathrm{Cambria Math}
\setmathfont(Digits,Latin){Cambria Math}
but I would like to use Frutiger in mathmode as well so there is no break in font style for in-line math. I tried defining a new command
\newcommandx{\textvar}[1]{
{
\setmathrm{Frutiger 45 Light}
\setmathfont(Digits){Frutiger 45 Light}
#1
}
\setmathrm{Cambria Math}
\setmathfont(Digits,Latin){Cambria Math}
}
but \setmath* seem to work only in the preamble and not in the document itself.
Is there any way to do this?


\begin{equation}E=mc^2\end{equation} where $E$ stands for energyyou want the 2 'E' characters to match. In particular there are some notations in which sans-serif characters have a different meaning, aren't there? – Chris H Jun 11 '15 at 13:50$2.8 \pm 0.5 \mu m$in the middle of a line, it just looks better if it is in the same font as the rest, and it is pretty annoying that up to now I have to type2.8 $\pm$ 0.5 $\mu$mto get what I want, and the\muis still in the wrong font. – user3696412 Jun 11 '15 at 13:57