General ⇒ Plain Text in Math Mode
Plain Text in Math Mode
Thanks,
-mach7
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Posts: 105
- Joined: Fri Nov 30, 2007 11:32 pm
Re: Plain Text in Math Mode
Plain Text in Math Mode
Code: Select all
\text{}
spaces...in math mode spaces are automatic, so the text will be pushed right up against your equations...so you need to include spaces
Code: Select all
$2 \times \text{dumb\,example\,}=4$
good luck
dpc
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Plain Text in Math Mode
welcome to the LaTeX Community board!
\text{} is the right way like both members above said. I just want to add that \text needs the amsmath package (or at least amstext).
Without amsmath text inside math would be possible using \mbox{...}, but \text is the better choice, it respects current font size.
Stefan