可重述不显示定理数

可重述不显示定理数

我从以下网站了解了可重述的内容答案。但是,当我把定理放在附录中时,它的参考文献没有编号。这是一个 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}

在此处输入图片描述

答案1

移入\label{thm}环境restatable*

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

在此处输入图片描述

相关内容