[Tex/LaTex] How to number theorems but not definitions

numberingtheorems

I am using LaTeX theorem style where I have at the top:

\newtheorem{theorem}{Theorem}
\newtheorem{definition}{Definition}
\newtheorem{lemma}{Lemma}

and then I use

\begin{(theorem|definition|lemma)}
...
\end{(theorem|definition|lemma)}

This numbers the theorems, definitions, and lemmas separately. Is where a way to do it where the definitions aren't numbered (but still use the rest of the theorem style)?

Best Answer

You can get unnumbered theorem-like environment loading either amsthm or ntheorem and saying

\newtheorem*{definition}{Definition}

These two packages introduce also the concept of "theorem style" that helps to get, for example, upright text inside the definition environment. For amsthm it would be

\theoremstyle{definition}
\newtheorem*{definition}{Definition}

and similarly for ntheorem

Related Question