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}[]
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityUsing 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}
\newtheoremstyle
command provided by the amsthm
package; that will allow you to define new "styles" for theorems (e.g. change the punctuation, as you're asking for) in a reasonably flexible way.
Nov 11, 2011 at 16:43
(It's more of a comment.)
You can define a new theorem with a star:
\documentclass{article}
\usepackage{lipsum}
\usepackage{ntheorem}
\newtheorem{theorem}{Theorem}
\newtheorem*{theorem-non}{Theorem}
\begin{document}
\begin{theorem}
\lipsum[1]
\end{theorem}
\begin{theorem-non}
\lipsum[1]
\end{theorem-non}
\end{document}
An alternative I've used goes as follows. Include this at the top of your file:
\def\theorem{\par\noindent{\bf Theorem.\ } \ignorespaces}
\def\endtheorem{}
Then create a theorem with:
\begin{theorem}
\end{theorem}
Nice for things like
\def\problemstatement{\par\noindent{\bf Problem Statement.\ } \ignorespaces}
\def\endproblemstatement{}
or
\newcommand{\bBox}{\hbox{\vrule width1.3ex height1.3ex}}
\def\proof{\par\noindent{\bf Proof.\ } \ignorespaces}
\def\endproof{{\ \hspace*{\fill}\bBox \parfillskip 0pt}\smallskip\noindent}