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?

1

1 Answer 1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .