7

After using the Pi symbol (\Pi), my text changes to a different font and goes to italic. How can I resolve this?

  • 6
    Neither \Pi nor \pi should even work in text mode, unless the command has been redefined and producing something ( completely different?) –  Apr 18 '16 at 14:10
  • 1
    Probably you forgot a closing $. Could you post a minimal example? – Bernard Apr 18 '16 at 14:43
  • 1
    If you want to write the mathematical symbol, try putting dollar signs around \pi. If you want to write text in the Greek language, not mathematics, consider http://tex.stackexchange.com/questions/100690/how-can-we-write-in-greek-with-computer-modern-font – Benjamin McKay Apr 19 '16 at 07:33

2 Answers2

9

Use $\Pi$. In this case, math expressions have to be between dollar signs.

Karlo
  • 3,257
  • 1
    This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review – Romain Picot Apr 18 '16 at 14:29
  • 2
    @Romain Picot - Imho this provides an answer to the question. – Karlo Apr 18 '16 at 14:38
  • 3
    It might be. However, since the OP does'nt provide any MWE, it could be due to a missing $ or a redefinition of \pi as pointed by ChristianHupfer. My comment is more, that we should wait for clarification from the OP before to guess as solution – Romain Picot Apr 18 '16 at 14:57
  • OK, I understand. – Karlo Apr 18 '16 at 15:22
  • @RomainPicot: Perhaps some black magic with \ensuremath ... ;-) –  Apr 18 '16 at 15:49
1

The command for Π in text mode is \textPi, or you could put a literal Π in your UTF-8 source.

In a modern TeX engine that supports Unicode, you can load fontspec and a font that supports Greek. In 8-bit TeX, you would want to add the packages

\usepackage[LGR,T1]{fontenc}
\usepackage{textalpha}

and optionally change the font, or enable a LGR-encoded Greek font with substitutefont.

Davislor
  • 44,045