Suppose I have a theorem that is defined a certain way, as follows.
\newtheorem*{mytheorem}{Foo}
And I want to redefine it another way further down in my document, as below.
\newtheorem*{mytheorem}{Bar}
What is the easiest way to go about this?
I would like something like this, but I get undefined control sequence on \renewtheorem.
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsthm}
\begin{document}
\theoremstyle{definition}
\newtheorem*{thmTemp}{Foo}
\begin{thmTemp} First one. \end{thmTemp}
\renewtheorem*{thmTemp}{Bar}
\begin{thmTemp} Second one. \end{thmTemp}
\end{document}
When I run pdflatex on this, I get the following:
! Undefined control sequence.
l.10 \renewtheorem
*{thmTemp}{Bar}
I am avoiding ntheorem because it does not preserve the theorem styles defined by amstheorem, even when the amsthm option is passed to it, and I would prefer not to redefine those styles.

\renewtheorem? It would be helpful if you composed a fully compilable MWE including\documentclassand the appropriate packages that sets up the problem. That way we would know which packages you are using as some solutions may be package specific. – Peter Grill Mar 18 '13 at 06:13amsthmwithntheorem. – Peter Grill Mar 18 '13 at 06:22\theoremstyle{definition}among others. – merlin2011 Mar 18 '13 at 06:23ntheoremis. It is not obvious to me, but perhaps to those who are more knowledgeable it would be. Once your objection is understood perhaps there is a way to usentheoremthat overcomes that objection. – Peter Grill Mar 18 '13 at 06:54\let\thmTemp\relax\newtheorem*..., but I object to using the\new...and\renew...family as in-document (as opposed to preamble) commands, so I won't. – Ulrich Schwarz Mar 18 '13 at 07:00