I am new to LaTeX and I was using the amsthm package in order to write proofs by using the proof environment:
\documentclass{book}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}
Stuff in here
\end{theorem}
\begin{proof}
Proof in here
\end{proof}
\end{document}
I then decided to use the mathtools package, since it contains more symbols and corrects some of the amsthm's bugs. However, if I substitute the line
\usepackage{amsthm}
for
\usepackage{mathtools}
I get the error "! LaTeX Error: Environment proof undefined."
Is there a way to correct this? Thanks for helping!
mathtoolsloadsamsthmanyway no? – percusse Nov 08 '14 at 01:37mathtoolsdoes not loadamsthm. According to this post,amsmath,amsthmandamssymbare different packages. Even though they share the 'ams' name, they must be loaded separately. Therefore,mathtoolsonly loadsamsmath. @percusse – Guilherme Salomé Nov 08 '14 at 03:09