Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Here is my minimum example. Click from right to left 2-1-1 and notice that it jumps correctly to item 2 then item 1. But then it doesn't jump to remark 1, but instead to the entire first page, as it does when an invalid link is specified. Why is this? It must have to do with amsthm, because when I remove that, it works. But I don't want to remove it since in the real file its predefined styles are used.

\documentclass[a4paper,12pt]{article}
\usepackage{amsthm}
\usepackage[pdfstartview=FitH]{hyperref}
\newtheorem{_Remark}{Remark}
\begin{document}
\begin{_Remark}
\label{rmk:1}
\begin{enumerate}
\item \label{rmk:1a}this is a.
\item \label{rmk:1b}this is b.
\end{enumerate}
\end{_Remark}
\ref{rmk:1}-\ref{rmk:1a}-\ref{rmk:1b}
\end{document}
share|improve this question

1 Answer 1

up vote 0 down vote accepted

Apparently I only got the order wrong. Once I include amsthm after hyperref all is fine. I thought I once read somewhere always to include hyperref last. Guess that's just not true any more.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.