
私は再定式化についてこれ答え。しかし、付録に定理を記載すると、その参照に番号が付きません。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}