# Upright and sans-serif µ

I'm using the Arev font for text and math in my document. Everything works fine, except for the "µ". I coudn't find a solution to get an upright and sans-serif µ in my document. This is my MWE:

\documentclass[]{article}
\usepackage[utf8x]{inputenc}
\usepackage{arev}
\usepackage{siunitx}
\usepackage{upgreek}
\begin{document}
µH \textmu H $\mathrm{\mu H}$ \SI{}{\micro\henry} $\mathrm{\upmu H}$
\end{document}


And this is how the result looks like with PdfLaTeX:

• The arev package manual states: "A possible future capability of the arevmath package is the ability to choose either italic or upright Greek letters.". I would assume this means you will have no luck with this, as long as you really want to use the arevfont(s). Otherwise, check of the sfmath package, which might help you, or this answer. I'll leave this as a comment, in case someone figures out a better answer. – Timm Mar 12 '17 at 11:33

It seems to me that your problem stems from the fact that the arev package implements lowercase greek as italic only without providing any upright alternatives. Arev itself as a typeface does have upright lowercase greek glyphs available: http://tavmjong.free.fr/FONTS/

Adding to that, the µ character that many keyboards have is not the greek mu, it is the micro* symbol, which the arev package also sets in italic (which it never should be. A greek mu is useful as italic and upright, the micro symbol as unit prefix should always be used upright anyway...)

If you can, switching to XeLaTeX would allow to use typefaces that are installed on the computer, which would give you access to the upright greek of Arev. In pdfLaTeX, another hacky solution would be to get the greek mu glyph from a Arev sample PDF and insert it as a vector graphic. Maybe someone else has an easier way though.

* micro vs. mu

The micro symbol, e.g. for microhenry µH, is based on the greek mu, but is an independent unicode character. In some fonts, they look slightly different:

(this is set in Linux Libertine)

Insert both micro and mu (µμ) here to check yourself.

Finally, this comment by timothymctim (Siunitx's \micro symbol has serif) proposed to use phv (Adobe Helvetica), which looks acceptable to me:

\documentclass[]{article}
\usepackage[utf8]{inputenc}
\usepackage{arev}

\usepackage{siunitx}
\sisetup{math-micro={\usefont{T1}{phv}{m}{n}\text{µ}}}

\begin{document}
\si{\micro\henry}
\end{document}


This MWE will typeset the correct micro symbol (µ) instead of the greek letter mu. For an example of siunitx's different ...-micro-settings, see this answer.

Note that I changed inputenc's [utf8x] to [utf8], because [utf8x] changes the keyboard µ micro symbol to a italic greek mu ...

Thanks for your comment! Finally I managed to get an upright µ in Arev by unslanting the µ like recommended here:

\documentclass[]{article}
\usepackage[utf8x]{inputenc}
\usepackage{arev}
\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]{\slantbox[#1]{#2}}
\begin{document}
\unslant{µ}
\end{document}


And the result looks like this:

It is quite ridiculous how much pain it is to display a character that even every HTML browser can render.