![可重述不显示定理数](https://linux22.com/image/421240/%E5%8F%AF%E9%87%8D%E8%BF%B0%E4%B8%8D%E6%98%BE%E7%A4%BA%E5%AE%9A%E7%90%86%E6%95%B0.png)
我从以下网站了解了可重述的内容这答案。但是,当我把定理放在附录中时,它的参考文献没有编号。这是一个 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}