Equation numbering does not continue correctly in Latex
up vote
1
down vote
favorite
In my thesis, I have a problem when I want to refer to equations. Reference is basically happening based on section or subsections numbering in three digits (e.g. 1-1-1). Also, if I have more than one equation in the same subsection, all are shown by the same number! (1.1.2 in the following example!)! The number beside each equation is correctly shown, however, as (1-1) or (1-2) or ... . I want the equation number in the text be shown sequentially as 1-1, 1-2, 1-3, 1-4,
... .
Please help me solve this problem. Thanks
Here is my minimal working example:
documentclass[11pt,oneside,english,singlespacing,parskip,headsepline]{MastersDoctoralThesis}
usepackage{mathtools}
makeatletter
newcommand{mathleft}{@fleqntrue@mathmargin0pt}
newcommand{mathcenter}{@fleqnfalse}
makeatother
begin{document}
chapter{Chapter 1}
section{Section1}
subsection{Subsection 1-1}
mathleft
begin{equation}
label{eq:KE_Energy}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy} is kinetic energy.
subsection{Subsection 1-2}
mathleft
begin{equation}
label{eq:KE_Energy2}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy2} is kinetic energy.
mathleft
begin{equation}
label{eq:KE_Energy3}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy3} is kinetic energy.
section{Section2}
subsection{Subsection 2-1}
mathleft
begin{equation}
label{eq:KE_Energy4}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy4} is kinetic energy.
end{document}
An here is the output:
math-mode equations numbering
|
show 4 more comments
up vote
1
down vote
favorite
In my thesis, I have a problem when I want to refer to equations. Reference is basically happening based on section or subsections numbering in three digits (e.g. 1-1-1). Also, if I have more than one equation in the same subsection, all are shown by the same number! (1.1.2 in the following example!)! The number beside each equation is correctly shown, however, as (1-1) or (1-2) or ... . I want the equation number in the text be shown sequentially as 1-1, 1-2, 1-3, 1-4,
... .
Please help me solve this problem. Thanks
Here is my minimal working example:
documentclass[11pt,oneside,english,singlespacing,parskip,headsepline]{MastersDoctoralThesis}
usepackage{mathtools}
makeatletter
newcommand{mathleft}{@fleqntrue@mathmargin0pt}
newcommand{mathcenter}{@fleqnfalse}
makeatother
begin{document}
chapter{Chapter 1}
section{Section1}
subsection{Subsection 1-1}
mathleft
begin{equation}
label{eq:KE_Energy}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy} is kinetic energy.
subsection{Subsection 1-2}
mathleft
begin{equation}
label{eq:KE_Energy2}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy2} is kinetic energy.
mathleft
begin{equation}
label{eq:KE_Energy3}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy3} is kinetic energy.
section{Section2}
subsection{Subsection 2-1}
mathleft
begin{equation}
label{eq:KE_Energy4}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy4} is kinetic energy.
end{document}
An here is the output:
math-mode equations numbering
3
Please provide a MWE that can be used by others to replicate your problem.
– Raven
Nov 30 at 12:51
2
The equation numbering in LaTeX is always correct. It's your configuration that is incorrect. In this example you do not need thealigned
environment. If you include a complete minimal working example we can tell you how to fix your configuration.
– Andrew
Nov 30 at 12:58
2
I would expect that yourmathleft
andmathcenter
commands breakamsmath
, where did you find those definitions?
– David Carlisle
Nov 30 at 13:16
@mah65, I believe the problem might be with your .cls file. I compiled your MWE exactly as you gave it except I used thebook
document class instead of your custom class file, and I was unable to replicate your problem. When I compiled with thebook
class, theref
andlabel
numbering for the equations matched.
– Mason Malone
Dec 2 at 23:34
@MasonMalone: Thanks for your help. That is correct, although the hyperlink to equation is ruined. Anyways, I have to use thesis style, and should solve the problem in this environment. I don't know what modification I should apply in the .cls file.
– mah65
Dec 2 at 23:51
|
show 4 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
In my thesis, I have a problem when I want to refer to equations. Reference is basically happening based on section or subsections numbering in three digits (e.g. 1-1-1). Also, if I have more than one equation in the same subsection, all are shown by the same number! (1.1.2 in the following example!)! The number beside each equation is correctly shown, however, as (1-1) or (1-2) or ... . I want the equation number in the text be shown sequentially as 1-1, 1-2, 1-3, 1-4,
... .
Please help me solve this problem. Thanks
Here is my minimal working example:
documentclass[11pt,oneside,english,singlespacing,parskip,headsepline]{MastersDoctoralThesis}
usepackage{mathtools}
makeatletter
newcommand{mathleft}{@fleqntrue@mathmargin0pt}
newcommand{mathcenter}{@fleqnfalse}
makeatother
begin{document}
chapter{Chapter 1}
section{Section1}
subsection{Subsection 1-1}
mathleft
begin{equation}
label{eq:KE_Energy}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy} is kinetic energy.
subsection{Subsection 1-2}
mathleft
begin{equation}
label{eq:KE_Energy2}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy2} is kinetic energy.
mathleft
begin{equation}
label{eq:KE_Energy3}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy3} is kinetic energy.
section{Section2}
subsection{Subsection 2-1}
mathleft
begin{equation}
label{eq:KE_Energy4}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy4} is kinetic energy.
end{document}
An here is the output:
math-mode equations numbering
In my thesis, I have a problem when I want to refer to equations. Reference is basically happening based on section or subsections numbering in three digits (e.g. 1-1-1). Also, if I have more than one equation in the same subsection, all are shown by the same number! (1.1.2 in the following example!)! The number beside each equation is correctly shown, however, as (1-1) or (1-2) or ... . I want the equation number in the text be shown sequentially as 1-1, 1-2, 1-3, 1-4,
... .
Please help me solve this problem. Thanks
Here is my minimal working example:
documentclass[11pt,oneside,english,singlespacing,parskip,headsepline]{MastersDoctoralThesis}
usepackage{mathtools}
makeatletter
newcommand{mathleft}{@fleqntrue@mathmargin0pt}
newcommand{mathcenter}{@fleqnfalse}
makeatother
begin{document}
chapter{Chapter 1}
section{Section1}
subsection{Subsection 1-1}
mathleft
begin{equation}
label{eq:KE_Energy}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy} is kinetic energy.
subsection{Subsection 1-2}
mathleft
begin{equation}
label{eq:KE_Energy2}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy2} is kinetic energy.
mathleft
begin{equation}
label{eq:KE_Energy3}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy3} is kinetic energy.
section{Section2}
subsection{Subsection 2-1}
mathleft
begin{equation}
label{eq:KE_Energy4}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy4} is kinetic energy.
end{document}
An here is the output:
math-mode equations numbering
math-mode equations numbering
edited Dec 3 at 0:02
David Carlisle
479k3811121847
479k3811121847
asked Nov 30 at 12:41
mah65
63
63
3
Please provide a MWE that can be used by others to replicate your problem.
– Raven
Nov 30 at 12:51
2
The equation numbering in LaTeX is always correct. It's your configuration that is incorrect. In this example you do not need thealigned
environment. If you include a complete minimal working example we can tell you how to fix your configuration.
– Andrew
Nov 30 at 12:58
2
I would expect that yourmathleft
andmathcenter
commands breakamsmath
, where did you find those definitions?
– David Carlisle
Nov 30 at 13:16
@mah65, I believe the problem might be with your .cls file. I compiled your MWE exactly as you gave it except I used thebook
document class instead of your custom class file, and I was unable to replicate your problem. When I compiled with thebook
class, theref
andlabel
numbering for the equations matched.
– Mason Malone
Dec 2 at 23:34
@MasonMalone: Thanks for your help. That is correct, although the hyperlink to equation is ruined. Anyways, I have to use thesis style, and should solve the problem in this environment. I don't know what modification I should apply in the .cls file.
– mah65
Dec 2 at 23:51
|
show 4 more comments
3
Please provide a MWE that can be used by others to replicate your problem.
– Raven
Nov 30 at 12:51
2
The equation numbering in LaTeX is always correct. It's your configuration that is incorrect. In this example you do not need thealigned
environment. If you include a complete minimal working example we can tell you how to fix your configuration.
– Andrew
Nov 30 at 12:58
2
I would expect that yourmathleft
andmathcenter
commands breakamsmath
, where did you find those definitions?
– David Carlisle
Nov 30 at 13:16
@mah65, I believe the problem might be with your .cls file. I compiled your MWE exactly as you gave it except I used thebook
document class instead of your custom class file, and I was unable to replicate your problem. When I compiled with thebook
class, theref
andlabel
numbering for the equations matched.
– Mason Malone
Dec 2 at 23:34
@MasonMalone: Thanks for your help. That is correct, although the hyperlink to equation is ruined. Anyways, I have to use thesis style, and should solve the problem in this environment. I don't know what modification I should apply in the .cls file.
– mah65
Dec 2 at 23:51
3
3
Please provide a MWE that can be used by others to replicate your problem.
– Raven
Nov 30 at 12:51
Please provide a MWE that can be used by others to replicate your problem.
– Raven
Nov 30 at 12:51
2
2
The equation numbering in LaTeX is always correct. It's your configuration that is incorrect. In this example you do not need the
aligned
environment. If you include a complete minimal working example we can tell you how to fix your configuration.– Andrew
Nov 30 at 12:58
The equation numbering in LaTeX is always correct. It's your configuration that is incorrect. In this example you do not need the
aligned
environment. If you include a complete minimal working example we can tell you how to fix your configuration.– Andrew
Nov 30 at 12:58
2
2
I would expect that your
mathleft
and mathcenter
commands break amsmath
, where did you find those definitions?– David Carlisle
Nov 30 at 13:16
I would expect that your
mathleft
and mathcenter
commands break amsmath
, where did you find those definitions?– David Carlisle
Nov 30 at 13:16
@mah65, I believe the problem might be with your .cls file. I compiled your MWE exactly as you gave it except I used the
book
document class instead of your custom class file, and I was unable to replicate your problem. When I compiled with the book
class, the ref
and label
numbering for the equations matched.– Mason Malone
Dec 2 at 23:34
@mah65, I believe the problem might be with your .cls file. I compiled your MWE exactly as you gave it except I used the
book
document class instead of your custom class file, and I was unable to replicate your problem. When I compiled with the book
class, the ref
and label
numbering for the equations matched.– Mason Malone
Dec 2 at 23:34
@MasonMalone: Thanks for your help. That is correct, although the hyperlink to equation is ruined. Anyways, I have to use thesis style, and should solve the problem in this environment. I don't know what modification I should apply in the .cls file.
– mah65
Dec 2 at 23:51
@MasonMalone: Thanks for your help. That is correct, although the hyperlink to equation is ruined. Anyways, I have to use thesis style, and should solve the problem in this environment. I don't know what modification I should apply in the .cls file.
– mah65
Dec 2 at 23:51
|
show 4 more comments
2 Answers
2
active
oldest
votes
up vote
0
down vote
The mathleft
and mathcenter
commands defined in the preamble break amsmath
removing all use of them restores the correct numbering.
documentclass[11pt,oneside,english,singlespacing,parskip,headsepline]{MastersDoctoralThesis}
usepackage{mathtools}
makeatletter
%newcommand{mathleft}{@fleqntrue@mathmargin0pt}
%newcommand{mathcenter}{@fleqnfalse}
makeatother
begin{document}
chapter{Chapter 1}
section{Section1}
subsection{Subsection 1-1}
%mathleft
begin{equation}
label{eq:KE_Energy}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy} is kinetic energy.
subsection{Subsection 1-2}
%mathleft
begin{equation}
label{eq:KE_Energy2}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy2} is kinetic energy.
%mathleft
begin{equation}
label{eq:KE_Energy3}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy3} is kinetic energy.
section{Section2}
subsection{Subsection 2-1}
%mathleft
begin{equation}
label{eq:KE_Energy4}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy4} is kinetic energy.
end{document}
This seems to work. But this brings all the equations to the middle (centring). How to keep them in the left side?
– mah65
Dec 3 at 0:05
@mah65 use the documentedfleqn
option to the documentclass or to amsmath or mathtools package
– David Carlisle
Dec 3 at 0:06
@mah65 did you write thismathleft
command or was it suggested in some tutorial somewhere?
– David Carlisle
Dec 3 at 0:07
I think I found it somewhere in this forum when I wanted to align left the equations. I don't exactly remember.
– mah65
Dec 3 at 0:08
@mah65 well it's completely wrong, so if you recall where it came from try to ping the author to get it changed:-)
– David Carlisle
Dec 3 at 0:09
|
show 2 more comments
up vote
0
down vote
accepted
Following the previous answer, I modified the packages as following:
usepackage[fleqn]{mathtools}
makeatletter
newcommand{mathleft}{@fleqntrue@mathmargin0pt}
newcommand{mathcenter}{@fleqnfalse}
makeatother
setlength{mathindent}{0cm}
(Changes are the first and last lines).
This solved the problem, and no other modification is necessary.
New contributor
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The mathleft
and mathcenter
commands defined in the preamble break amsmath
removing all use of them restores the correct numbering.
documentclass[11pt,oneside,english,singlespacing,parskip,headsepline]{MastersDoctoralThesis}
usepackage{mathtools}
makeatletter
%newcommand{mathleft}{@fleqntrue@mathmargin0pt}
%newcommand{mathcenter}{@fleqnfalse}
makeatother
begin{document}
chapter{Chapter 1}
section{Section1}
subsection{Subsection 1-1}
%mathleft
begin{equation}
label{eq:KE_Energy}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy} is kinetic energy.
subsection{Subsection 1-2}
%mathleft
begin{equation}
label{eq:KE_Energy2}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy2} is kinetic energy.
%mathleft
begin{equation}
label{eq:KE_Energy3}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy3} is kinetic energy.
section{Section2}
subsection{Subsection 2-1}
%mathleft
begin{equation}
label{eq:KE_Energy4}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy4} is kinetic energy.
end{document}
This seems to work. But this brings all the equations to the middle (centring). How to keep them in the left side?
– mah65
Dec 3 at 0:05
@mah65 use the documentedfleqn
option to the documentclass or to amsmath or mathtools package
– David Carlisle
Dec 3 at 0:06
@mah65 did you write thismathleft
command or was it suggested in some tutorial somewhere?
– David Carlisle
Dec 3 at 0:07
I think I found it somewhere in this forum when I wanted to align left the equations. I don't exactly remember.
– mah65
Dec 3 at 0:08
@mah65 well it's completely wrong, so if you recall where it came from try to ping the author to get it changed:-)
– David Carlisle
Dec 3 at 0:09
|
show 2 more comments
up vote
0
down vote
The mathleft
and mathcenter
commands defined in the preamble break amsmath
removing all use of them restores the correct numbering.
documentclass[11pt,oneside,english,singlespacing,parskip,headsepline]{MastersDoctoralThesis}
usepackage{mathtools}
makeatletter
%newcommand{mathleft}{@fleqntrue@mathmargin0pt}
%newcommand{mathcenter}{@fleqnfalse}
makeatother
begin{document}
chapter{Chapter 1}
section{Section1}
subsection{Subsection 1-1}
%mathleft
begin{equation}
label{eq:KE_Energy}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy} is kinetic energy.
subsection{Subsection 1-2}
%mathleft
begin{equation}
label{eq:KE_Energy2}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy2} is kinetic energy.
%mathleft
begin{equation}
label{eq:KE_Energy3}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy3} is kinetic energy.
section{Section2}
subsection{Subsection 2-1}
%mathleft
begin{equation}
label{eq:KE_Energy4}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy4} is kinetic energy.
end{document}
This seems to work. But this brings all the equations to the middle (centring). How to keep them in the left side?
– mah65
Dec 3 at 0:05
@mah65 use the documentedfleqn
option to the documentclass or to amsmath or mathtools package
– David Carlisle
Dec 3 at 0:06
@mah65 did you write thismathleft
command or was it suggested in some tutorial somewhere?
– David Carlisle
Dec 3 at 0:07
I think I found it somewhere in this forum when I wanted to align left the equations. I don't exactly remember.
– mah65
Dec 3 at 0:08
@mah65 well it's completely wrong, so if you recall where it came from try to ping the author to get it changed:-)
– David Carlisle
Dec 3 at 0:09
|
show 2 more comments
up vote
0
down vote
up vote
0
down vote
The mathleft
and mathcenter
commands defined in the preamble break amsmath
removing all use of them restores the correct numbering.
documentclass[11pt,oneside,english,singlespacing,parskip,headsepline]{MastersDoctoralThesis}
usepackage{mathtools}
makeatletter
%newcommand{mathleft}{@fleqntrue@mathmargin0pt}
%newcommand{mathcenter}{@fleqnfalse}
makeatother
begin{document}
chapter{Chapter 1}
section{Section1}
subsection{Subsection 1-1}
%mathleft
begin{equation}
label{eq:KE_Energy}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy} is kinetic energy.
subsection{Subsection 1-2}
%mathleft
begin{equation}
label{eq:KE_Energy2}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy2} is kinetic energy.
%mathleft
begin{equation}
label{eq:KE_Energy3}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy3} is kinetic energy.
section{Section2}
subsection{Subsection 2-1}
%mathleft
begin{equation}
label{eq:KE_Energy4}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy4} is kinetic energy.
end{document}
The mathleft
and mathcenter
commands defined in the preamble break amsmath
removing all use of them restores the correct numbering.
documentclass[11pt,oneside,english,singlespacing,parskip,headsepline]{MastersDoctoralThesis}
usepackage{mathtools}
makeatletter
%newcommand{mathleft}{@fleqntrue@mathmargin0pt}
%newcommand{mathcenter}{@fleqnfalse}
makeatother
begin{document}
chapter{Chapter 1}
section{Section1}
subsection{Subsection 1-1}
%mathleft
begin{equation}
label{eq:KE_Energy}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy} is kinetic energy.
subsection{Subsection 1-2}
%mathleft
begin{equation}
label{eq:KE_Energy2}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy2} is kinetic energy.
%mathleft
begin{equation}
label{eq:KE_Energy3}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy3} is kinetic energy.
section{Section2}
subsection{Subsection 2-1}
%mathleft
begin{equation}
label{eq:KE_Energy4}
begin{aligned}
& langle KE rangle = frac{1}{2} langle mv^{2} rangle \
end{aligned}
end{equation}
Equation ref{eq:KE_Energy4} is kinetic energy.
end{document}
answered Dec 3 at 0:01
David Carlisle
479k3811121847
479k3811121847
This seems to work. But this brings all the equations to the middle (centring). How to keep them in the left side?
– mah65
Dec 3 at 0:05
@mah65 use the documentedfleqn
option to the documentclass or to amsmath or mathtools package
– David Carlisle
Dec 3 at 0:06
@mah65 did you write thismathleft
command or was it suggested in some tutorial somewhere?
– David Carlisle
Dec 3 at 0:07
I think I found it somewhere in this forum when I wanted to align left the equations. I don't exactly remember.
– mah65
Dec 3 at 0:08
@mah65 well it's completely wrong, so if you recall where it came from try to ping the author to get it changed:-)
– David Carlisle
Dec 3 at 0:09
|
show 2 more comments
This seems to work. But this brings all the equations to the middle (centring). How to keep them in the left side?
– mah65
Dec 3 at 0:05
@mah65 use the documentedfleqn
option to the documentclass or to amsmath or mathtools package
– David Carlisle
Dec 3 at 0:06
@mah65 did you write thismathleft
command or was it suggested in some tutorial somewhere?
– David Carlisle
Dec 3 at 0:07
I think I found it somewhere in this forum when I wanted to align left the equations. I don't exactly remember.
– mah65
Dec 3 at 0:08
@mah65 well it's completely wrong, so if you recall where it came from try to ping the author to get it changed:-)
– David Carlisle
Dec 3 at 0:09
This seems to work. But this brings all the equations to the middle (centring). How to keep them in the left side?
– mah65
Dec 3 at 0:05
This seems to work. But this brings all the equations to the middle (centring). How to keep them in the left side?
– mah65
Dec 3 at 0:05
@mah65 use the documented
fleqn
option to the documentclass or to amsmath or mathtools package– David Carlisle
Dec 3 at 0:06
@mah65 use the documented
fleqn
option to the documentclass or to amsmath or mathtools package– David Carlisle
Dec 3 at 0:06
@mah65 did you write this
mathleft
command or was it suggested in some tutorial somewhere?– David Carlisle
Dec 3 at 0:07
@mah65 did you write this
mathleft
command or was it suggested in some tutorial somewhere?– David Carlisle
Dec 3 at 0:07
I think I found it somewhere in this forum when I wanted to align left the equations. I don't exactly remember.
– mah65
Dec 3 at 0:08
I think I found it somewhere in this forum when I wanted to align left the equations. I don't exactly remember.
– mah65
Dec 3 at 0:08
@mah65 well it's completely wrong, so if you recall where it came from try to ping the author to get it changed:-)
– David Carlisle
Dec 3 at 0:09
@mah65 well it's completely wrong, so if you recall where it came from try to ping the author to get it changed:-)
– David Carlisle
Dec 3 at 0:09
|
show 2 more comments
up vote
0
down vote
accepted
Following the previous answer, I modified the packages as following:
usepackage[fleqn]{mathtools}
makeatletter
newcommand{mathleft}{@fleqntrue@mathmargin0pt}
newcommand{mathcenter}{@fleqnfalse}
makeatother
setlength{mathindent}{0cm}
(Changes are the first and last lines).
This solved the problem, and no other modification is necessary.
New contributor
add a comment |
up vote
0
down vote
accepted
Following the previous answer, I modified the packages as following:
usepackage[fleqn]{mathtools}
makeatletter
newcommand{mathleft}{@fleqntrue@mathmargin0pt}
newcommand{mathcenter}{@fleqnfalse}
makeatother
setlength{mathindent}{0cm}
(Changes are the first and last lines).
This solved the problem, and no other modification is necessary.
New contributor
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Following the previous answer, I modified the packages as following:
usepackage[fleqn]{mathtools}
makeatletter
newcommand{mathleft}{@fleqntrue@mathmargin0pt}
newcommand{mathcenter}{@fleqnfalse}
makeatother
setlength{mathindent}{0cm}
(Changes are the first and last lines).
This solved the problem, and no other modification is necessary.
New contributor
Following the previous answer, I modified the packages as following:
usepackage[fleqn]{mathtools}
makeatletter
newcommand{mathleft}{@fleqntrue@mathmargin0pt}
newcommand{mathcenter}{@fleqnfalse}
makeatother
setlength{mathindent}{0cm}
(Changes are the first and last lines).
This solved the problem, and no other modification is necessary.
New contributor
New contributor
answered Dec 3 at 0:56
mah65
63
63
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462556%2fequation-numbering-does-not-continue-correctly-in-latex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
Please provide a MWE that can be used by others to replicate your problem.
– Raven
Nov 30 at 12:51
2
The equation numbering in LaTeX is always correct. It's your configuration that is incorrect. In this example you do not need the
aligned
environment. If you include a complete minimal working example we can tell you how to fix your configuration.– Andrew
Nov 30 at 12:58
2
I would expect that your
mathleft
andmathcenter
commands breakamsmath
, where did you find those definitions?– David Carlisle
Nov 30 at 13:16
@mah65, I believe the problem might be with your .cls file. I compiled your MWE exactly as you gave it except I used the
book
document class instead of your custom class file, and I was unable to replicate your problem. When I compiled with thebook
class, theref
andlabel
numbering for the equations matched.– Mason Malone
Dec 2 at 23:34
@MasonMalone: Thanks for your help. That is correct, although the hyperlink to equation is ruined. Anyways, I have to use thesis style, and should solve the problem in this environment. I don't know what modification I should apply in the .cls file.
– mah65
Dec 2 at 23:51