Learn How to Exclude Italics in PF: Tips for Writing SI Symbols in Upright Text

  • Thread starter Thread starter Herman Trivilino
  • Start date Start date
AI Thread Summary
In LaTeX, text is typically rendered in italics, which can be problematic for writing SI symbols that require upright text. To achieve upright text for SI symbols, enclose the desired text within the \mathrm{} command. For example, writing ##\sin px\ \mathrm{kg}## will display "kg" in an upright format. This method effectively addresses the issue of italicized text in LaTeX, allowing for proper representation of scientific units.
Herman Trivilino
Science Advisor
Gold Member
Messages
3,692
Reaction score
1,728
When I type an expression in LaTeX here in a PF post the text is always in italics. I know nothing about LaTeX but am trying to learn. How do I make the text not be in italics? I want to write SI symbols in upright text, for example.

I tried to find the answer on the web but all I could find was explanations of how to make the text be in italics!
 
Physics news on Phys.org
Try enclosing them in \mathrm{ }

Like this: ##\sin px\ \mathrm{kg}##

Code:
##\sin px\ \mathrm{kg}##

EDIT by Jedi: Added a code block to show exactly what is typed...
 
Last edited by a moderator:
Thanks!
 

Similar threads

Replies
3
Views
2K
Replies
11
Views
5K
Replies
4
Views
4K
Replies
8
Views
3K
Replies
22
Views
2K
Replies
2
Views
3K
Replies
13
Views
9K
Back
Top