[Tex/LaTex] Citing equations from equation environment

citingequations

Suppose I have an equation at some point in my document say

\begin{equation}
equation 1
\end{equation}

and latter in my document I reference the equation writing (1). Is there a way to reference this equation so that if I add a new equation before it my reference will automatically update to (2)?

Best Answer

Follow this:

         \begin{equation}
         \label{eq:equation1}
          equation 1
         \end{equation}

         The formula of X is shown in equation \eqref{eq:equation1}.
Related Question