LaTeX forum ⇒ Math & ScienceProblem with Equation Reference

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

Problem with Equation Reference

Postby beth87 » Fri Jul 01, 2011 10:09 am

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


  1. \begin{equation}3+4=7 \label{xx}\end{equation}
  3. 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

User avatar
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Fri Jul 01, 2011 10:18 am

"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.

LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 5 guests