I found a bug with these three settings used together.
Basically, I need to use subequations for (only) one equation.
In this example, it is on page 1.
I also need to use \numberwithin{equation}{section} to number my equations.
Finally I use the package cleverref to get things like Theorem 1 without
type Theorem myself.
Compile the code below, go to page 4 and click link there. It goes to page 1. But it is expected to go to page 3.
If I comment out \numberwithin{equation}{section}, it is fine, but this style of numbering equations is not what I want.
If I don't use the package cleveref and just use \ref instead of \Cref,
it goes to page 3 which is correct. But I lose the advantage of using this package.
I need a solution to this problem but still to have the desired result (style of numbering, the advantage of cleveref...etc).
\documentclass{article}
\usepackage{amsmath}
\usepackage{hyperref}
\usepackage{cleveref}
\numberwithin{equation}{section}
\begin{document}
\section{Section 1}
This is a list of equations in page 1.
\begin{subequations}
\begin{align}
a &= b \label{aaaa} \\
a &= b \label{bbbb}
\end{align}
\end{subequations}
\newpage
This is an equation in page 2.
\begin{equation} \label{cccc}
abcd
\end{equation}
\newpage
\section{Section 2}
This is section 2 in page 3.
\begin{equation} \label{dddd}
abc
\end{equation}
\newpage
\Cref{dddd}. Click the link here will go to page 1, which is not
expected.
\end{document}
\numberwithin{equation}{section}? – user565739 Sep 09 '15 at 09:44hyperrefhas been loaded, changing their representation should too. – egreg Sep 09 '15 at 09:51\theHcounterstuff meant for? (Not desirable as well, I know) But the basic 'criminal' here iscleveref, in my point of view – Sep 09 '15 at 09:54