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?

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.