I'm writting a simple math book but I have a problem with the pi sign. I'm using a font which doesn't have the sign so it appears like this:
This is how I wrote it:
\textbf{Perímetro:} $2\pi r$\\
\textbf{Área:} $r\pi^2$\\+
And this is how I applied the font:
\newfontfamily{\miletra}{MILETRA}[
NFSSFamily=MiLetra,
Path=./,
Extension=.ttf,
UprightFont=*,
BoldFont=*,
BoldFeatures={FakeBold=3},
]
\renewcommand{\familydefault}{MiLetra}
\DeclareSymbolFont{numbers}{TU}{MiLetra}{m}{n}
\SetSymbolFont{numbers}{bold}{TU}{MiLetra}{bx}{n}
\DeclareMathSymbol{0}\mathalpha{numbers}{"30}
\DeclareMathSymbol{1}\mathalpha{numbers}{"31}
\DeclareMathSymbol{2}\mathalpha{numbers}{"32}
\DeclareMathSymbol{3}\mathalpha{numbers}{"33}
\DeclareMathSymbol{4}\mathalpha{numbers}{"34}
\DeclareMathSymbol{5}\mathalpha{numbers}{"35}
\DeclareMathSymbol{6}\mathalpha{numbers}{"36}
\DeclareMathSymbol{7}\mathalpha{numbers}{"37}
\DeclareMathSymbol{8}\mathalpha{numbers}{"38}
\DeclareMathSymbol{9}\mathalpha{numbers}{"39}
\DeclareSymbolFont{operators}{TU}{MiLetra}{m}{n}
\DeclareSymbolFontAlphabet{\mathsf}{operators}
\DeclareSymbolFont{letters}{TU}{MiLetra}{m}{n}
\DeclareSymbolFontAlphabet{\mathsf}{letters}
How can I make LaTeX use the pi sign from its math font without changing my font?
Thanks in advance.
\pi
normally works so the problem is with code you have not shown,. Please fix your question to have an example that produces the output shown.