Reestablecible no muestra el número del teorema

Reestablecible no muestra el número del teorema

Aprendí sobre reestablecible deesterespuesta. Sin embargo, cuando pongo el teorema en el apéndice, su referencia no tiene número. Aquí hay un 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}

ingrese la descripción de la imagen aquí

Respuesta1

Mueva el \label{thm}al restatable*entorno:

\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}

ingrese la descripción de la imagen aquí

información relacionada