[Tex/LaTex] Theorem without numbering

numberingtheorems

Is it possible to have single theorems without numbering? I would like to be able to switch them off individually with asterisk-* or have a nono-theorem environment.

\newtheorem{theorem}{Theorem}
\newtheorem{nono-theorem}{Theorem}[]

Best Answer

Using the amsthm package, you can switch numbering on and off for individual theorems just by defining environments with nearly identical names (as with equation environments):

\documentclass{article}
\usepackage{amsthm}
\theoremstyle{plain}

\newtheorem*{theorem*}{Theorem}
\newtheorem{theorem}{Theorem}

\begin{document}
\begin{theorem}  A numbered theorem.    \end{theorem}
\begin{theorem*} An unnumbered theorem. \end{theorem*}
\end{document}