I would like to achieve something quite similar to this question, except that I would also like to reference said equations. Here's a minimal example:
\documentclass[12pt]{article}
\usepackage[hidelinks]{hyperref}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\begin{document}
\section*{Chapter A}
\begin{equation}\label{star1}\tag{$\star$}
a^2 + b^2 = c^2
\end{equation}
The main equation of this chapter is the Pythagorean theorem, \eqref{star1}.
\pagebreak
\section*{Chapter B}
\begin{equation}\label{star2}\tag{$\star$}
i^2 = -1
\end{equation}
The main equation of this chapter is the definition of the imaginary unit, \eqref{star2}.
\end{document}
The problem is that \eqref{star2}
points to the Pythagorean. I also get this warning which I am pretty sure is relevant:
destination with the same identifier (name{equation.0.1}) has been already used, duplicate ignored <to be read again>
Thanks in advance.
.aux
file and compile again..log
file of the (second) LaTeX run. (If it is too long to fit into the question, you can upload it to a text-sharing website such as pastebin.com or gist.github.com)