LaTeX forum ⇒ Math & ScienceProblem 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

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}
  2.  
  3. Referring to the equation \eqref{xx}

or

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

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
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.


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


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

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 2 guests