我得到了错误
\begin{document} 以 \end{theorem} 结束。\end{theorem} 且环境定理未定义。\begin{theorem}
当尝试编译此乳胶文档时。
有问题的代码如下:
\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}
答案1
当你输入
\newtheorem{thm}{Theorem}[section]
这意味着它将按部分编号,写上“定理”,然后使用环境名称来引用它thm
。
你需要写
\begin{thm}
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{thm}
或者你可以获得相同的结果
{\thm
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}
}