删除校样的编号

删除校样的编号

我有这个 MWE。我怎样才能从证明中删除编号?请注意,另一种选择是使用amsthm包。但是,在我的情况下,它显示 Command \openbox already defined. \vrule\hfil}}

 \documentclass[12pt]{article}  
 \usepackage{amsmath}  
 \usepackage{amssymb}   
 %\usepackage{amsthm} % when I use this, I remove the hyperref and cleveref packages
 %\newtheorem{theorem}{Theorem}
 %\newtheorem{lemma}{Lemma}
 %\newtheorem{corollary}{Corollary}
 %\newtheorem{remark}{Remark} 
 \usepackage{hyperref}  
 \usepackage{cleveref}
 \newtheorem{thm}{Theorem}
 \newtheorem{lemma}[thm]{Lemma}
 \newtheorem{corollary}{Corollary}
 \newtheorem{remark}{Remark}
 \newtheorem{proposition}{Proposition}
 \newtheorem{example}{Example}
 \newtheorem{proof}{Proof}
 \newtheorem{definition}{Definition} 

 \begin{document}  

  \begin{lemma}   
    My lemma  
    \end{lemma}  

 \begin{proof}
   My Proof
 \end{proof}

 \end{document} 

答案1

有以下可能性:

\documentclass[12pt]{article}  
\usepackage{hyperref}  
\usepackage{cleveref}
\usepackage{ntheorem}
\newtheorem{thm}{Theorem}
\newtheorem{lemma}[thm]{Lemma}
\newtheorem{corollary}{Corollary}
\newtheorem{remark}{Remark}
\newtheorem{proposition}{Proposition}
\newtheorem{example}{Example}
\newtheorem{definition}{Definition} 
\theoremstyle{nonumberplain}
\newtheorem{proof}{Proof}
\begin{document}  

\begin{lemma}   
  My lemma  
\end{lemma}  

\begin{proof}
  My Proof
\end{proof}

\end{document}

答案2

amsthm 包已经定义了proof环境,所以这里我将新的证明环境称为Proof,而*是无数定理环境。如果您想要更多自定义,texdoc amsthm也可以阅读texdoc thmtools

\documentclass[12pt]{article}  
 \usepackage{amsmath}  
 \usepackage{amssymb}   
 \usepackage{amsthm} % when I use this, I remove the hyperref and cleveref packages
 %\newtheorem{theorem}{Theorem}
 %\newtheorem{lemma}{Lemma}
 %\newtheorem{corollary}{Corollary}
 %\newtheorem{remark}{Remark} 
 \usepackage{hyperref}  
 \usepackage{cleveref}
 \newtheorem{thm}{Theorem}
 \newtheorem{lemma}[thm]{Lemma}
 \newtheorem{corollary}{Corollary}
 \newtheorem{remark}{Remark}
 \newtheorem{proposition}{Proposition}
 \newtheorem{example}{Example}
 \newtheorem*{Proof}{Proof}
 \newtheorem{definition}{Definition} 

 \begin{document}  

  \begin{lemma}   
    My lemma  
    \end{lemma}  

 \begin{Proof}
   My Proof
 \end{Proof}

 \end{document}

相关内容