## LaTeX forum ⇒ Math & Science ⇒ Problem with Equation Reference

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
beth87
Posts: 6
Joined: Sat Jun 11, 2011 5:52 pm

### Problem with Equation Reference

I tried to use the following commands
\begin{equation}\label{xx} 3+4=7 \end{equation} Referring to the equation \eqref{xx}

or

\begin{equation}3+4=7 \label{xx}\end{equation} Referring to the equation \eqref{xx}

but it did not work...
it worked just if instead of \eqref{xx} I wrote \ref{xx}. Why is it so? Should I use a particular package? N.B I am using Texniccenter and Mixtek as a compiler

localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany
"It doesn't work" is an error description that is as good as useless. What is the exact error message from the log? As a random shot I would guess that you forgot to load the amsmath package.

Thorsten
LaTeX Community Moderator

¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses