I've got a really simple question. I'd like to write a mathematical proof in LaTeX, so my document will contain both text and formulae embedded in it. For example, I want to add this to it:

How can I write this efficiently, without putting the entire text into an \mbox{} element?

-

migrated from stackoverflow.comAug 23 '11 at 22:42

This question came from our site for professional and enthusiast programmers.

@murgatroid99: You're right, I didn't know of this site! –  ryyst Aug 23 '11 at 15:44

Only wrap the equations in $...$, you can enter and leave math mode all throughout the document.

This page shows examples with formulas both inline in a paragraph and on their own lines.

-
Thanks, this is exactly what I wanted! –  ryyst Aug 23 '11 at 15:55
If most of the content is math mode, the use \text{} to imbed text within equations.
\documentclass{article}
$\text{Let } D \subseteq \mathbf{R}, D \ne 0$
or in inline mode: $\text{Let } D \subseteq \mathbf{R}, D \ne 0$