I get the error
\begin{document} ended by \end{theorem}. \end{theorem} and Environment theorem undefined. \begin{theorem}
when trying to compile this latex document.
Here is the problematic code:
\documentclass[a4paper, 12pt, notitlepage]{report}
\usepackage{amsfonts} % if you want blackboard bold symbols e.g. for real numbers
\usepackage{graphicx} % if you want to include jpeg or pdf pictures
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{float}
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{Def}[thm]{Definition}
\newtheorem{cond}[thm]{Condition}
\newtheorem{rem}[thm]{Remark}
\newtheorem{conj}[]{Conjecture}
\newtheorem*{post}{Postulate 1}
\newtheorem*{post2}{Postulate 2}
\newtheorem*{ex}{Exercise}
\newtheorem{exa}[thm]{Example}
\title{An Introduction to Geometric Measure Theory} % change this
\author{x} % change this
\date{\today} % change this
\numberwithin{equation}{subsection}
\begin{document}
\appendix
\chapter{Covering Theorems}
\begin{theorem}
Let $X$ be boundedly compact metric space and $\mathcal{B}$ a family of closed balls in $X$ such that
\begin{equation}
sup\{d(B):B \in \mathcal{B}\}
\end{equation}
\end{theorem}
\end{document}
\documentclass...\begin{document}...\end{document}
, it should compile and contain close to the minimal amount of code needed to explain/demonstrate what you are asking. This saves a lot of time for everyone. – user30471 Oct 19 '14 at 11:47theorem
environment is not defined in preamble – only athm
, which displays ‘theorem’. Replacing theorem with thm compiles perfectly. – Bernard Oct 19 '14 at 12:15Environment theorem undefined
error; always look at the first error message, not the last one. – egreg Oct 19 '14 at 12:24