I tried to label a specific inline math formula in the paragraph. For a simple example,
\section{This is the third section}
$a^{2}+b^{2}=c^{2}$\label{formula:1}
Formula \ref{formula:1} is useful!
However, I found that \ref{formula:1} corresponds to the number of the section.
So the output by the above codes is 'Formula 3 is useful!' But What I want to label is $a^{2}+b^{2}=c^{2}$, and what I want to get is 'Formula 1 is useful!'. How can I realize it?
\hyperref
and\hypertarget
?