LaTeX forum ⇒ TeXworksHow to recall the equation (1)?

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
yaozhao
Posts: 57
Joined: Sat Oct 27, 2018 10:38 pm

How to recall the equation (1)?

Postby yaozhao » Mon Nov 12, 2018 5:28 am

\begin{equation}MR=MC\end{equation}


Suppose this is the equation (2). In the article, I want to say, (2) can give us ......

How to recall (2)?

Maybe "recall" is not a good word here. Maybe retrieve?

Many thanks in advance!

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10164
Joined: Mon Mar 10, 2008 9:44 pm

How to recall the equation (1)?

Postby Stefan Kottwitz » Mon Nov 12, 2018 8:39 am

It's called referencing, and done by \label (to set a marker) and \ref or \eqref to reference that marker.
\documentclass{article} 
\usepackage{amsmath}
\begin{document}
\begin{equation}
  \label{anotherone}
  x = 2y
\end{equation}
\begin{equation}
  \label{myformula}
  MR=MC
\end{equation}
\eqref{myformula} can give us...
\end{document}


Stefan
LaTeX.org admin

yaozhao
Posts: 57
Joined: Sat Oct 27, 2018 10:38 pm

How to recall the equation (1)?

Postby yaozhao » Mon Nov 12, 2018 6:13 pm

Hi Stefan,

I used your codes. But when I refer, LaTeX gives me (??).

\documentclass[a4paper, 12pt]{article}  
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[T1]{fontenc}	
\usepackage{graphicx}
\DeclareUnicodeCharacter{202F}{\,}
In this way, we have the following equation in a perfectly competitive market:
\begin{equation}\label{MR=P}MR=P\end{equation}

Remember, \eqref{MR=P} only holds in perfectly competitive market because price is only fixed in this type of market.\\

User avatar
Stefan Kottwitz
Site Admin
Posts: 10164
Joined: Mon Mar 10, 2008 9:44 pm

How to recall the equation (1)?

Postby Stefan Kottwitz » Mon Nov 12, 2018 6:41 pm

Run LaTeX two times. First time it reads all labels, the second time it inserts references.

Stefan
LaTeX.org admin


Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 3 guests