Math & ScienceProblem with Equation Reference

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

Problem with Equation Reference

Post by beth87 »

I tried to use the following commands

Code: Select all

\begin{equation}\label{xx} 3+4=7 \end{equation}

Referring to the equation \eqref{xx}
or

Code: Select all

\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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with Equation Reference

Post by localghost »

"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
Post Reply