General ⇒ Plain Text in Math Mode
Plain Text in Math Mode
Thanks,
-mach7
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
curiouslearn
- 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: 10397
- 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