Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}[]
share|improve this question
add comment

2 Answers

up vote 22 down vote accepted

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}
share|improve this answer
1  
I have a question, and I didn't want to open another topic of the same type. I have defined, like here the definition, but when I use it I have a dot afterwards. Like: Definition. Bla bla bla... How to get rid of that dot? –  dingo_d Nov 11 '11 at 12:05
1  
@dingo_d: Check out the \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. –  Niel de Beaudrap Nov 11 '11 at 16:43
    
@ Niel de Beaudrap: After a bit of searching (like few min after I posted this) I found that I can very easily manipulate with much more than just dot or no dot in the theorem environment :D So the problem is solved :D –  dingo_d Nov 11 '11 at 18:09
add comment

(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}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.