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

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

How to recall the equation (1)?

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

  1. \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!

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

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.
  1. \documentclass{article}
  2. \usepackage{amsmath}
  3. \begin{document}
  4. \begin{equation}
  5. \label{anotherone}
  6. x = 2y
  7. \end{equation}
  8. \begin{equation}
  9. \label{myformula}
  10. MR=MC
  11. \end{equation}
  12. \eqref{myformula} can give us...
  13. \end{document}


Stefan
Site admin

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

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

Hi Stefan,

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

  1. \documentclass[a4paper, 12pt]{article}
  2. \usepackage{amsmath}
  3. \usepackage{amssymb}
  4. \usepackage[T1]{fontenc}
  5. \usepackage{graphicx}
  6. \DeclareUnicodeCharacter{202F}{\,}
  7. In this way, we have the following equation in a perfectly competitive market:
  8. \begin{equation}\label{MR=P}MR=P\end{equation}
  9.  
  10. 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: 9244
Joined: Mon Mar 10, 2008 9:44 pm

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
Site admin


Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 1 guest