TeXworksHow to recall the equation (1)?

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

How to recall the equation (1)?

Post by yaozhao »

Code: Select all

\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 2024:

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

How to recall the equation (1)?

Post by Stefan Kottwitz »

It's called referencing, and done by \label (to set a marker) and \ref or \eqref to reference that marker.

Code: Select all

\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)?

Post by yaozhao »

Hi Stefan,

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

Code: Select all

\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: 10283
Joined: Mon Mar 10, 2008 9:44 pm

How to recall the equation (1)?

Post by Stefan Kottwitz »

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

Stefan
LaTeX.org admin
Post Reply