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.

This question already has an answer here:

I want to start using LaTeX to organize my proofs into a readable fashion. This motif is due to my professors preferring e-mail communication instead of reading a chicken-scratch proof. I know enough LaTeX such that I can post on math.SE and make my question readable, but I do not know how to include LaTeX in a document.

How do I make my proof into a LaTeX document?

share|improve this question

marked as duplicate by Werner, dustin, Heiko Oberdiek, Claudio Fiandrino, Guido Aug 26 '13 at 6:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Just as you would with mathjax's but now you need to declare your packages and the document type. –  dustin Aug 26 '13 at 2:13
1  
Have a look at Best Way to Start Using LaTeX/TeX? –  texenthusiast Aug 26 '13 at 2:16
1  
Good resources for math: mathmode by Her­bert Voß and Short Math Guide for LATEX by Michael Downes. Full detailed math-into-latex-4 by Ge­orge Grätzer. Remember to use AMS developed LaTeX classes specifically for math amsart amsbook and amsproc which are part of major TeX distributions –  texenthusiast Aug 26 '13 at 4:49

1 Answer 1

up vote 2 down vote accepted

The skeleton is as follows,

\documentclass[preview,border=12pt,varwidth]{standalone}
%\documentclass{article}
\usepackage{mathtools}
\usepackage{amsthm}
\title{My Title}
\author{My Name}
\date{\today}

\newtheorem{thm}{Theorem}
\begin{document}
\maketitle

\begin{thm}
$ax^2+bx+c=0$ has 2 real roots if $D>0$.
\end{thm}

\begin{proof}
This is my proof that $ax^2+bx+c=0$ has 2 real roots if $D>0$.
\[
x_{1,2}=\frac{-b\pm\sqrt{D}}{4ac}
\]
\end{proof}
\end{document}

enter image description here

For more detailed at a glance tutorial, visit Theorem.

share|improve this answer
    
Forgot to mention above. You have to switch the document class from standalone to article because the former is used just for creating the image above. –  Please don't touch Aug 26 '13 at 3:06
    
I know there is a typo in the quadratic formula. Ignore it! –  Please don't touch Aug 26 '13 at 3:39
    
Does amsart load amsthm package ? if not why (very strange though) ? –  texenthusiast Aug 26 '13 at 4:40

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