% varwidth --> https://tex.stackexchange.com/questions/178539
\documentclass[border=2mm,varwidth]{standalone}
% avec --> https://tex.stackexchange.com/questions/359530
\usepackage{arev}
\usepackage[latin1]{inputenc}
\usepackage{textcomp} % \textmu
\usepackage{upgreek} % \upmu
\begin{document}
\begin{itemize}
\item \texttt{\textbackslash textmu:} \textmu
\item \texttt{\$\textbackslash mu\$:} $\mu$
\item \texttt{\$\textbackslash upmu\$:} $\upmu$
\end{itemize}
\end{document}
- I want to use the
arev
package (sans serif font).
- How do I get a sans serif
\textmu
(provided by the textcomp
package)?
- Alternatively -- I just need an upright
\mu
when the main font is from the arev
package.
Solution
% varwidth --> https://tex.stackexchange.com/questions/178539
\documentclass[border=2mm,varwidth]{standalone}
% avec --> https://tex.stackexchange.com/questions/359530
\usepackage{arev}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareFontFamily{U}{myFontFamily}{}
\DeclareFontShape{U}{myFontFamily}{m}{n}{
<-> favr8r
}{}
\newcommand{\myupmu}{{\fontencoding{U}\fontfamily{myFontFamily}\selectfont\symbol{181}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[latin1]{inputenc}
\usepackage{textcomp} % \textmu
\usepackage{upgreek} % \upmu
\begin{document}
\begin{itemize}
\item \texttt{\textbackslash textmu:} \textmu m
\item Ulrike Fischer: {\fontencoding{U}\fontfamily{myFontFamily}\selectfont\symbol{181}}m
\item Ulrike Fischer Command: \myupmu m
\item \texttt{\$\textbackslash mu\$:} $\mu m$
\item \texttt{\$\textbackslash upmu\$:} $\upmu$
\end{itemize}
\end{document}