我有一个声明,后面跟着它的证明(都在枚举环境中)。如您所见,只有当声明和证明位于枚举中时,它们之间才会出现一些额外的空格。原因是什么?如何消除这些烦人的空间?
梅威瑟:
\documentclass[12pt]{article}
\usepackage{amsthm}
\usepackage{enumitem}
\newtheorem*{claim}{Claim}
% \usepackage{showframe}
\begin{document}
\begin{enumerate}[label = (\alph*)]
\item This text is before the claim.
%
\begin{claim}
\let \qed \relax
Our claim goes here.
\label{clm:1.a)}
\end{claim}
%
\begin{claim}
\let \qed \relax
Our claim goes here.
\label{clm:1.b)}
\end{claim}
%
\begin{proof}
Here we prove our claim.
\end{proof}
\end{enumerate}
%
\rule{\linewidth}{2pt}
%
This text is before the claim.
%
\begin{claim}
\let \qed \relax
Our claim goes here.
\label{clm:2.a)}
\end{claim}
%
\begin{claim}
\let \qed \relax
Our claim goes here.
\label{clm:2.b)}
\end{claim}
%
\begin{proof}
Here we prove our claim.
\end{proof}
\end{document}