How to reference equations (new to Latex) [duplicate]
up vote
1
down vote
favorite
This question already has an answer here:
Numbering equations
1 answer
documentclass{article}
newcommand{dd}[1]{mathrm{d}#1}
begin{document}
begin{equation}
Delta A_2 = x^2
end{equation}
This code puts a (1) next to this equation, and numbers later equations accordingly. If I want to reference this equation, say with:
And as you can see in Eq. #,
how would I link it so that if the equation number later changes, I don't have to update the text?
equations cross-referencing
marked as duplicate by CarLaTeX, Troy, Circumscribe, Phelype Oleinik, Kurt yesterday
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
up vote
1
down vote
favorite
This question already has an answer here:
Numbering equations
1 answer
documentclass{article}
newcommand{dd}[1]{mathrm{d}#1}
begin{document}
begin{equation}
Delta A_2 = x^2
end{equation}
This code puts a (1) next to this equation, and numbers later equations accordingly. If I want to reference this equation, say with:
And as you can see in Eq. #,
how would I link it so that if the equation number later changes, I don't have to update the text?
equations cross-referencing
marked as duplicate by CarLaTeX, Troy, Circumscribe, Phelype Oleinik, Kurt yesterday
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
This question already has an answer here:
Numbering equations
1 answer
documentclass{article}
newcommand{dd}[1]{mathrm{d}#1}
begin{document}
begin{equation}
Delta A_2 = x^2
end{equation}
This code puts a (1) next to this equation, and numbers later equations accordingly. If I want to reference this equation, say with:
And as you can see in Eq. #,
how would I link it so that if the equation number later changes, I don't have to update the text?
equations cross-referencing
This question already has an answer here:
Numbering equations
1 answer
documentclass{article}
newcommand{dd}[1]{mathrm{d}#1}
begin{document}
begin{equation}
Delta A_2 = x^2
end{equation}
This code puts a (1) next to this equation, and numbers later equations accordingly. If I want to reference this equation, say with:
And as you can see in Eq. #,
how would I link it so that if the equation number later changes, I don't have to update the text?
This question already has an answer here:
Numbering equations
1 answer
equations cross-referencing
equations cross-referencing
edited yesterday
Mico
271k30367755
271k30367755
asked yesterday
Jackson Hart
1203
1203
marked as duplicate by CarLaTeX, Troy, Circumscribe, Phelype Oleinik, Kurt yesterday
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by CarLaTeX, Troy, Circumscribe, Phelype Oleinik, Kurt yesterday
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
You can simply use label{...}
within the equation
environment and ref{...}
to refer to it.
For more info, see here: https://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing.
And remember to compile twice, the first time you'll get ??
instead of the ref.no., but don't worry, it's normal, the second time you'll get the correct number.
documentclass{article}
begin{document}
Equation ref{eq:myeq} blah blah blah
begin{equation}label{eq:myeq}
Delta A_2 = x^2
end{equation}
end{document}
If you add another equation, LaTeX will manage the numbering:
documentclass{article}
begin{document}
If I add another equation ref{eq:myneweq}, LaTeX{} will manage the numbering.
begin{equation}label{eq:myneweq}
Delta A_1 = x
end{equation}
Equation ref{eq:myeq} blah blah blah
begin{equation}label{eq:myeq}
Delta A_2 = x^2
end{equation}
end{document}
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@Ben No, ben LaTeX will do it for you
– CarLaTeX
yesterday
@Ben See my second example, you only have to put the alphabetical labels, LaTeX will do the correct numbering (compiling twice).
– CarLaTeX
yesterday
Great, thanks for the help!
– Jackson Hart
yesterday
@Ben This is one of the wonderful things LaTeX does for you :)
– CarLaTeX
yesterday
add a comment |
up vote
1
down vote
You can just add label{yourlabel}
after begin{equation}
:
begin{equation}label{equ1}
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@aquila: Your answer is somewhat incomplete: while you illustrate how a label should be inserted, you do not show how it can be referenced.
– Circumscribe
yesterday
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
You can simply use label{...}
within the equation
environment and ref{...}
to refer to it.
For more info, see here: https://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing.
And remember to compile twice, the first time you'll get ??
instead of the ref.no., but don't worry, it's normal, the second time you'll get the correct number.
documentclass{article}
begin{document}
Equation ref{eq:myeq} blah blah blah
begin{equation}label{eq:myeq}
Delta A_2 = x^2
end{equation}
end{document}
If you add another equation, LaTeX will manage the numbering:
documentclass{article}
begin{document}
If I add another equation ref{eq:myneweq}, LaTeX{} will manage the numbering.
begin{equation}label{eq:myneweq}
Delta A_1 = x
end{equation}
Equation ref{eq:myeq} blah blah blah
begin{equation}label{eq:myeq}
Delta A_2 = x^2
end{equation}
end{document}
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@Ben No, ben LaTeX will do it for you
– CarLaTeX
yesterday
@Ben See my second example, you only have to put the alphabetical labels, LaTeX will do the correct numbering (compiling twice).
– CarLaTeX
yesterday
Great, thanks for the help!
– Jackson Hart
yesterday
@Ben This is one of the wonderful things LaTeX does for you :)
– CarLaTeX
yesterday
add a comment |
up vote
3
down vote
accepted
You can simply use label{...}
within the equation
environment and ref{...}
to refer to it.
For more info, see here: https://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing.
And remember to compile twice, the first time you'll get ??
instead of the ref.no., but don't worry, it's normal, the second time you'll get the correct number.
documentclass{article}
begin{document}
Equation ref{eq:myeq} blah blah blah
begin{equation}label{eq:myeq}
Delta A_2 = x^2
end{equation}
end{document}
If you add another equation, LaTeX will manage the numbering:
documentclass{article}
begin{document}
If I add another equation ref{eq:myneweq}, LaTeX{} will manage the numbering.
begin{equation}label{eq:myneweq}
Delta A_1 = x
end{equation}
Equation ref{eq:myeq} blah blah blah
begin{equation}label{eq:myeq}
Delta A_2 = x^2
end{equation}
end{document}
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@Ben No, ben LaTeX will do it for you
– CarLaTeX
yesterday
@Ben See my second example, you only have to put the alphabetical labels, LaTeX will do the correct numbering (compiling twice).
– CarLaTeX
yesterday
Great, thanks for the help!
– Jackson Hart
yesterday
@Ben This is one of the wonderful things LaTeX does for you :)
– CarLaTeX
yesterday
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
You can simply use label{...}
within the equation
environment and ref{...}
to refer to it.
For more info, see here: https://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing.
And remember to compile twice, the first time you'll get ??
instead of the ref.no., but don't worry, it's normal, the second time you'll get the correct number.
documentclass{article}
begin{document}
Equation ref{eq:myeq} blah blah blah
begin{equation}label{eq:myeq}
Delta A_2 = x^2
end{equation}
end{document}
If you add another equation, LaTeX will manage the numbering:
documentclass{article}
begin{document}
If I add another equation ref{eq:myneweq}, LaTeX{} will manage the numbering.
begin{equation}label{eq:myneweq}
Delta A_1 = x
end{equation}
Equation ref{eq:myeq} blah blah blah
begin{equation}label{eq:myeq}
Delta A_2 = x^2
end{equation}
end{document}
You can simply use label{...}
within the equation
environment and ref{...}
to refer to it.
For more info, see here: https://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing.
And remember to compile twice, the first time you'll get ??
instead of the ref.no., but don't worry, it's normal, the second time you'll get the correct number.
documentclass{article}
begin{document}
Equation ref{eq:myeq} blah blah blah
begin{equation}label{eq:myeq}
Delta A_2 = x^2
end{equation}
end{document}
If you add another equation, LaTeX will manage the numbering:
documentclass{article}
begin{document}
If I add another equation ref{eq:myneweq}, LaTeX{} will manage the numbering.
begin{equation}label{eq:myneweq}
Delta A_1 = x
end{equation}
Equation ref{eq:myeq} blah blah blah
begin{equation}label{eq:myeq}
Delta A_2 = x^2
end{equation}
end{document}
edited yesterday
answered yesterday
CarLaTeX
28.3k446122
28.3k446122
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@Ben No, ben LaTeX will do it for you
– CarLaTeX
yesterday
@Ben See my second example, you only have to put the alphabetical labels, LaTeX will do the correct numbering (compiling twice).
– CarLaTeX
yesterday
Great, thanks for the help!
– Jackson Hart
yesterday
@Ben This is one of the wonderful things LaTeX does for you :)
– CarLaTeX
yesterday
add a comment |
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@Ben No, ben LaTeX will do it for you
– CarLaTeX
yesterday
@Ben See my second example, you only have to put the alphabetical labels, LaTeX will do the correct numbering (compiling twice).
– CarLaTeX
yesterday
Great, thanks for the help!
– Jackson Hart
yesterday
@Ben This is one of the wonderful things LaTeX does for you :)
– CarLaTeX
yesterday
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@Ben No, ben LaTeX will do it for you
– CarLaTeX
yesterday
@Ben No, ben LaTeX will do it for you
– CarLaTeX
yesterday
@Ben See my second example, you only have to put the alphabetical labels, LaTeX will do the correct numbering (compiling twice).
– CarLaTeX
yesterday
@Ben See my second example, you only have to put the alphabetical labels, LaTeX will do the correct numbering (compiling twice).
– CarLaTeX
yesterday
Great, thanks for the help!
– Jackson Hart
yesterday
Great, thanks for the help!
– Jackson Hart
yesterday
@Ben This is one of the wonderful things LaTeX does for you :)
– CarLaTeX
yesterday
@Ben This is one of the wonderful things LaTeX does for you :)
– CarLaTeX
yesterday
add a comment |
up vote
1
down vote
You can just add label{yourlabel}
after begin{equation}
:
begin{equation}label{equ1}
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@aquila: Your answer is somewhat incomplete: while you illustrate how a label should be inserted, you do not show how it can be referenced.
– Circumscribe
yesterday
add a comment |
up vote
1
down vote
You can just add label{yourlabel}
after begin{equation}
:
begin{equation}label{equ1}
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@aquila: Your answer is somewhat incomplete: while you illustrate how a label should be inserted, you do not show how it can be referenced.
– Circumscribe
yesterday
add a comment |
up vote
1
down vote
up vote
1
down vote
You can just add label{yourlabel}
after begin{equation}
:
begin{equation}label{equ1}
You can just add label{yourlabel}
after begin{equation}
:
begin{equation}label{equ1}
answered yesterday
aquila
184
184
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@aquila: Your answer is somewhat incomplete: while you illustrate how a label should be inserted, you do not show how it can be referenced.
– Circumscribe
yesterday
add a comment |
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@aquila: Your answer is somewhat incomplete: while you illustrate how a label should be inserted, you do not show how it can be referenced.
– Circumscribe
yesterday
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
This does not provide automatic numbering though. I don't want to manually label every equation. What if I decide to add an equation at the beginning? Then all the numbering is messed up.
– Jackson Hart
yesterday
@aquila: Your answer is somewhat incomplete: while you illustrate how a label should be inserted, you do not show how it can be referenced.
– Circumscribe
yesterday
@aquila: Your answer is somewhat incomplete: while you illustrate how a label should be inserted, you do not show how it can be referenced.
– Circumscribe
yesterday
add a comment |