Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

enter image description here

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

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

migrated from stackoverflow.com Aug 23 '11 at 22:42

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

2 Answers

up vote 2 down vote accepted

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.

share|improve this answer
    
Thanks, this is exactly what I wanted! –  ryyst Aug 23 '11 at 15:55
add comment

If most of the content is math mode, the use \text{} to imbed text within equations.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\text{Let } D \subseteq \mathbf{R}, D \ne 0
\]

or in inline mode: $\text{Let } D \subseteq \mathbf{R}, D \ne 0$
\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.