When I process the file below either with pdflatex, or with latex and then dvipdf, the link on page 1 of the resulting PDF file does not take me to Lemma 1 as expected.
\documentclass{amsart}
\usepackage{hyperref}
\newtheorem{lem}{Lemma}
\begin{document}
See Lemma~\ref{testlemma} below.
\pagebreak
\begin{lem}\label{testlemma}
\begin{enumerate}
\item Testing!
\end{enumerate}
\end{lem}
\end{document}
When I use pdflatex then I get a warning:
pdfTeX warning (dest): name
{lem.1} has been referenced but does not exist, replaced by a fixed one
If I replace \documentclass{amsart}
with \documentclass{article}
then the link works as expected.
How can I fix this test file to get working hyperref links in PDF files with amsart
?
I am using pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian).
article
andamsthm
is loaded beforehyperref
.