1

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?

Cfun
  • 1,840
Bear
  • 11

1 Answers1

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}

enter image description here

Henri Menke
  • 109,596