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
    Commented Apr 2, 2021 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
    Commented Apr 2, 2021 at 15:28

1 Answer 1

12

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

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

You must log in to answer this question.

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