# How to get started to typeset mathematical proofs with LaTeX? [duplicate]

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?

-

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

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
Have a look at Best Way to Start Using LaTeX/TeX? – texenthusiast Aug 26 '13 at 2:16
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

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}


For more detailed at a glance tutorial, visit Theorem.

-
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. – kiss my armpit Aug 26 '13 at 3:06
I know there is a typo in the quadratic formula. Ignore it! – kiss my armpit Aug 26 '13 at 3:39
Does amsart load amsthm package ? if not why (very strange though) ? – texenthusiast Aug 26 '13 at 4:40