There are times, where I would like to repeat a theorem, for instance, if the proof goes into the appendix. In this case, I would like the two theorems to have the same number, without influencing the counter. Is there any simple way to achieve this?
What I am basically after is this:
\documentclass[a4paper,11pt]{article}
\newtheorem{thm}{Theorem}
\begin{document}
\section{Main}
\begin{thm}
This is theorem 1
\end{thm}
\section{Appendix}
\subsection{Proof of theorem 1}
To prove this theorem we need another theorem:
\begin{theorem}
This is another theorem
\end{theorem}
\setcounter{thm}{0}
\begin{theorem}
This is theorem 1
\begin{proof}
The proof of this theorem follows theorem 2...
\end{proof}
\end{theorem}
\setcounter{thm}{2}
\end{document}
But without the hassle of manually having to keep track of how far the counter has come.
\ref
to the original theorem number.begin{thm}[Theorem \ref{thm:theorem1}]
, then will only put the correct number in parenthesis.