I have a theorem that consists entirely of an enumerated list. I want to give the theorem a label (as opposed to giving items in the list labels), and link to it later in the document. I'm using the "hyperref" package but cannot get the label to associate to the start of the theorem.
I find that if I put the label before the "enumerate" environment, the reference links to the start of the document and the display box when I hover over the link is blank. I can put the label at the end of one of the items on the list, or after the list, in which case the reference links to that precise place. But I really want the link to take you to the heading (or first line) of the theorem.
In the simplified example that follows, it doesn't really matter if you put the label after the list, or after the item. But in my actual document the items in my list are long and it makes a difference (also in my doc I have a blank \item[]
before the first real one so that all numbers are aligned, but this is inconsequential to the problem).
\documentclass{amsart}
\usepackage{lipsum,hyperref}
\hypersetup{colorlinks=true}
\newtheorem{thm}{Theorem}
\begin{document}
\lipsum
\begin{thm}\label{theorem}
\begin{enumerate}
\item An item.
\end{enumerate}
\end{thm}
Check out Theorem \ref{theorem}.
\end{document}
I noticed some discussions about similar things in other environments but was unable to translate that to an answer to this question. If this question is considered a duplicate, would you do me the favor of pointing out where in the other question I can find my answer?
\begin{thm}\begin{enumerate}\label{lem:Py1y2}
?