arev + 文本计算:\textmu

arev + 文本计算:\textmu
% 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} 

在此处输入图片描述


  • 我想使用该arev包(无衬线字体)。
  • 如何获取无衬线字体\textmu(由包提供textcomp)?
  • 或者——\mu当主字体来自arev包时,我只需要一个直立的字体。

解决方案

% 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} 

在此处输入图片描述

答案1

字体中有一个直立的 mu,但似乎没有被编码。你可以像这样访问它:

\documentclass[border=2mm,varwidth]{standalone}
\usepackage{arev}
\DeclareFontFamily{U}{arev}{}

\DeclareFontShape{U}{arev}{m}{n}{
   <-> favr8r
}{}



\begin{document}
textmu: {\fontencoding{U}\fontfamily{arev}\selectfont\symbol{181}}

\end{document}

在此处输入图片描述

相关内容