4

I have this MWE. How can I remove the numbering from the Proofs? Note that another alternative is to use amsthm package. However, in my case, it displays 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} 

2 Answers 2

5

Here's a possibility:

\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}
4

The amsthm package already defines proof environment, so here I call the new proof environment Proof, and the * is for a no-number theorem environment. If you want more custom, you can read texdoc amsthm, also 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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .