Here is the code:
\documentclass{article}
\usepackage{amssymb,latexsym,amsmath}
\usepackage{ntheorem}
\theorembodyfont{\upshape}
\newtheorem*{theorem}{Theorem:}
\newtheorem*{lemma}{Lemma:}
\newenvironment{proof}{\paragraph{\ Proof:}}{\hfill$\square$}
\RequirePackage{hyperref}
\usepackage[nameinlink]{cleveref}
\begin{document}
\begin{lemma} Here is the statement of the lemma.\label{lemma}
\end{lemma}
\begin{theorem}Here is the statement of the theorem.
\end{theorem}
\begin{proof}This is the proof of the theorem using \Cref{lemma}
\end{proof}
\end{document}
Though I have not numbered the lemma using \newtheorem*
while referring to the lemma in the proof of the theorem, Lemma 1
comes up. I want to see Lemma
, no numbering after that.
I really appreciate any help you can provide.
ntheorem
, you'd normally use\theoremstyle{empty}
and then define it as a theorem like the others\newtheorem{proof}{Proof}
onto which the normalntheorem
stylings then apply.\newheorem*
does not do what you think inntheorem
. Why are you even usingntheorem
with the settings you show in this example it sounds more like you are looking for amsthm` in which\newtheorem*
does what you think and theproof
env is already defined for you.proof
env you provide is broken, the tombstore is not always at the right edge. I cannot help you withcleveref
as I personnally never use it. Again you are problably better of usingamsthm
(note that my suggestion forproof
withntheorem
above was missing thethmmarks
option forntheorem
)