Math & ScienceCross-Referencing an equation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
amegahed3
Posts: 15
Joined: Wed Feb 25, 2009 11:20 am

Cross-Referencing an equation

Post by amegahed3 »

Hi All,

I'm a beginner in latex, and I have the following question:

How can I cross-reference a certain equation?

Also, if I have one number for a set of equations, how can I cross-reference them?

Thanks.

Aly

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Cross-Referencing an equation

Post by Stefan Kottwitz »

Hi Aly,

use \label and \ref. With amsmath, recommendable for all math texts, you could use \eqref. Here's an example:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
  ax + by +c = 0 \label{eq1}
\end{equation}
See \eqref{eq1}.
\end{document}
Stefan
LaTeX.org admin
amegahed3
Posts: 15
Joined: Wed Feb 25, 2009 11:20 am

Re: Cross-Referencing an equation

Post by amegahed3 »

Great. It worked perfectly. Thanks.

Aly
Post Reply