
Ich habe von Restatable erfahren vonDasAntwort. Wenn ich den Satz jedoch in den Anhang stelle, hat seine Referenz keine Nummer. Hier ist ein MWE:
\documentclass{amsart}
\usepackage{thmtools}
\usepackage{thm-restate}
\newtheorem{theorem}{Theorem}[section]
\usepackage{hyperref}
\begin{document}
\begin{restatable*}{theorem}{thm}
Everybody knows that $1 + 1 = 2$.
\end{restatable*}
I would like this \ref{thm} to display A.1.
\appendix
\section{Proofs}
\thm\label{thm}
\begin{proof}
Proof is trivial.
\end{proof}
\end{document}
Antwort1
Verschieben Sie \label{thm}
in restatable*
die Umgebung:
\documentclass{amsart}
\usepackage{thmtools}
\usepackage{thm-restate}
\newtheorem{theorem}{Theorem}[section]
\usepackage{hyperref}
\begin{document}
\begin{restatable*}{theorem}{thm}\label{thm} % <<< \label moved to here
Everybody knows that $1 + 1 = 2$.
\end{restatable*}
I would like this \ref{thm} to display A.1.
\appendix
\section{Proofs}
\thm
\begin{proof}
Proof is trivial.
\end{proof}
\end{document}