I need to write a document with the Helvetica font and found sansmathfonts to be good matching counterpart for math, but I'm open for other suggestions.
Now I'm really struggling to get sans serif upright greek letters in math-mode. Is there any way to achieve that?
For serif fonts I was previously using either upgreek or this great answer. Both are not working for helvet+sansmathfonts.
\documentclass{article}
\usepackage[utf8]{luainputenc}
\usepackage[T1]{fontenc}
\usepackage{siunitx}
\usepackage{sansmathfonts}
\usepackage[scaled=0.95]{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{upgreek}
\begin{document}
Upright greek in math mode:
$\mathrm{\mu\alpha\beta\gamma}$, $\upmu\upalpha\upbeta\upgamma$,
\end{document}
MWE regarding Steven B. Segletes comment:
\documentclass{article}
\usepackage[utf8]{luainputenc}
\usepackage[T1]{fontenc}
\usepackage{siunitx}
\usepackage{sansmathfonts}
\usepackage[scaled=0.95]{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{tikz}
\usepackage{scalerel}
\newsavebox{\foobox}
\newcommand{\slantbox}[2][0]{\mbox{%
\sbox{\foobox}{#2}%
\hskip\wd\foobox
\pdfsave
\pdfsetmatrix{1 0 #1 1}%
\llap{\usebox{\foobox}}%
\pdfrestore
}}
\newcommand\unslant[2][-.2]{%
\mkern1mu%
\ThisStyle{\slantbox[#1]{$\SavedStyle#2$}}%
\mkern-1mu%
}
\newcommand\upmu{\unslant\mu}
\begin{document}
Upright greek in math mode: $\mathrm{\mu}$, $\upmu$,
\begin{tikzpicture}
\node[color=red,] {$\upmu$$\mu$};
\end{tikzpicture}
\end{document}



\unslantoptional argument value to-.2) – Steven B. Segletes Jun 09 '16 at 16:59\node {\textcolor{red}{$\upmu$$\mu$}};– Steven B. Segletes Jun 09 '16 at 17:27\slantboxdoes not take on atikznode's color. It obeys\textcolorand\coloroutside oftikz, For something real interesting, try\node[color=red,] {$\upmu$$\mu$ and \textcolor{red}{$\upmu$}$\mu$};– Steven B. Segletes Jun 09 '16 at 17:37pgfbug can be fixed, a workaround/fix for\slantboxthat works intikzis this:\newcommand{\slantbox}[2][0]{\colorlet{slantcolor}{.}\mbox{% \sbox{\foobox}{\color{slantcolor}#2}% \hskip\wd\foobox \pdfsave \pdfsetmatrix{1 0 #1 1}% \llap{\usebox{\foobox}}% \pdfrestore }}, using the technique described by Heiko here: http://tex.stackexchange.com/questions/218090/how-to-save-the-current-colour – Steven B. Segletes Jun 09 '16 at 17:48