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.

2
  • Welcome to TeX.SE! Do you mean this: tex.stackexchange.com/questions/3415/…?
    – CarLaTeX
    Apr 2 '21 at 8: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 2 '21 at 15:28
12

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

\documentclass{article}
\begin{document}
\[ \mathrm{ ABC} \]
\end{document}
10

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.