5

How do I get straight letters while assigning variables? For a variable P, I currently use \text{P} to straighten it but syntactically speaking, it doesn't seem like the right way to do this.

  • Welcome to TeX.SE! Do you mean this: https://tex.stackexchange.com/questions/3415/what-is-the-correct-way-of-embedding-text-into-math-mode? – CarLaTeX Apr 02 '21 at 08:58
  • If you're not stuck to Computer (or Latin) Modern, the fourier package, based on Adobe Utopia, has an upright option which uses the French style: uppercase letters are upright, as well as lowercase and uppercase greek letters. – Bernard Apr 02 '21 at 15:28

1 Answers1

12

I believe \mathrm may be what you're looking for:

\documentclass{article}
\begin{document}
\[ \mathrm{ ABC} \]
\end{document}
egreg
  • 1,121,712
chsk
  • 3,667