I would like to have different versions of $\pi$, to distinguish between them.
However, commands like $\mathsf{\pi}$ don't alter the appearance of pi as compared to just $\pi$. Similarly for $\texttt{\pi}$.
Could you tell me if there is any way to get different pi's?
Asked
Active
Viewed 541 times
1
-
Relevant: http://tex.stackexchange.com/questions/313934/sans-serif-upright-greek-in-math-mode – Steven B. Segletes Jul 06 '16 at 10:49
1 Answers
4
Adapting the solution by [egreg (2016)], we define \sfpi.
\documentclass{article}
\DeclareFontEncoding{LGR}{}{}
\DeclareSymbolFont{sfitgreek}{LGR}{cmss}{m}{it}
\SetSymbolFont{sfitgreek}{bold}{LGR}{cmss}{bx}{it}
\DeclareMathSymbol{\sfpi}{\mathord}{sfitgreek}{`p}
\begin{document}
$\pi \sfpi$
\end{document}
Henri Menke
- 109,596
