how to set the left margin for all formulas in the text?
up vote
6
down vote
favorite
My text includes description of a formula and its equation right after that. But each time that I add a new item (description) the corresponding formulas have different indent. How can I change it such that when looking at the whole page, I see all the formulas having the same indent.
Here is the code:
item a
begin{align}
&sum_{k=1}^{K} ... label{bal2}&\
&sum_{k=4}^{5}... label{bal3}& label{bal3}end{align}
item b
begin{align}
&sum_{j=1}^{J}... label{bal4}& end{align}
equations lists indentation
add a comment |
up vote
6
down vote
favorite
My text includes description of a formula and its equation right after that. But each time that I add a new item (description) the corresponding formulas have different indent. How can I change it such that when looking at the whole page, I see all the formulas having the same indent.
Here is the code:
item a
begin{align}
&sum_{k=1}^{K} ... label{bal2}&\
&sum_{k=4}^{5}... label{bal3}& label{bal3}end{align}
item b
begin{align}
&sum_{j=1}^{J}... label{bal4}& end{align}
equations lists indentation
2
I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. Thealign
environment centers the equations. If you want them aligned on the left when the width of the equations changes then useflalign
.
– Peter Grill
Mar 21 '12 at 23:09
3
While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including thedocumentclass
and the appropriate packages so that those trying to help don't have to recreate it.
– Peter Grill
Mar 21 '12 at 23:10
4
the default is to have equations centered. use can usedocumentclass[fleqn]{article}
to have all equations start a given distance from the left margin. this distance can be modified using e.g.setlength{mathindent}{2cm}
– prettygully
Mar 21 '12 at 23:51
2
To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment fromalign
togather
since you're not instructingamsmath
to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting&
alignment points.
– Mico
Mar 22 '12 at 0:17
add a comment |
up vote
6
down vote
favorite
up vote
6
down vote
favorite
My text includes description of a formula and its equation right after that. But each time that I add a new item (description) the corresponding formulas have different indent. How can I change it such that when looking at the whole page, I see all the formulas having the same indent.
Here is the code:
item a
begin{align}
&sum_{k=1}^{K} ... label{bal2}&\
&sum_{k=4}^{5}... label{bal3}& label{bal3}end{align}
item b
begin{align}
&sum_{j=1}^{J}... label{bal4}& end{align}
equations lists indentation
My text includes description of a formula and its equation right after that. But each time that I add a new item (description) the corresponding formulas have different indent. How can I change it such that when looking at the whole page, I see all the formulas having the same indent.
Here is the code:
item a
begin{align}
&sum_{k=1}^{K} ... label{bal2}&\
&sum_{k=4}^{5}... label{bal3}& label{bal3}end{align}
item b
begin{align}
&sum_{j=1}^{J}... label{bal4}& end{align}
equations lists indentation
equations lists indentation
edited Jul 18 '17 at 8:58
David Carlisle
478k3811101843
478k3811101843
asked Mar 21 '12 at 23:01
anna
81124
81124
2
I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. Thealign
environment centers the equations. If you want them aligned on the left when the width of the equations changes then useflalign
.
– Peter Grill
Mar 21 '12 at 23:09
3
While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including thedocumentclass
and the appropriate packages so that those trying to help don't have to recreate it.
– Peter Grill
Mar 21 '12 at 23:10
4
the default is to have equations centered. use can usedocumentclass[fleqn]{article}
to have all equations start a given distance from the left margin. this distance can be modified using e.g.setlength{mathindent}{2cm}
– prettygully
Mar 21 '12 at 23:51
2
To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment fromalign
togather
since you're not instructingamsmath
to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting&
alignment points.
– Mico
Mar 22 '12 at 0:17
add a comment |
2
I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. Thealign
environment centers the equations. If you want them aligned on the left when the width of the equations changes then useflalign
.
– Peter Grill
Mar 21 '12 at 23:09
3
While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including thedocumentclass
and the appropriate packages so that those trying to help don't have to recreate it.
– Peter Grill
Mar 21 '12 at 23:10
4
the default is to have equations centered. use can usedocumentclass[fleqn]{article}
to have all equations start a given distance from the left margin. this distance can be modified using e.g.setlength{mathindent}{2cm}
– prettygully
Mar 21 '12 at 23:51
2
To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment fromalign
togather
since you're not instructingamsmath
to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting&
alignment points.
– Mico
Mar 22 '12 at 0:17
2
2
I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. The
align
environment centers the equations. If you want them aligned on the left when the width of the equations changes then use flalign
.– Peter Grill
Mar 21 '12 at 23:09
I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. The
align
environment centers the equations. If you want them aligned on the left when the width of the equations changes then use flalign
.– Peter Grill
Mar 21 '12 at 23:09
3
3
While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the
documentclass
and the appropriate packages so that those trying to help don't have to recreate it.– Peter Grill
Mar 21 '12 at 23:10
While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the
documentclass
and the appropriate packages so that those trying to help don't have to recreate it.– Peter Grill
Mar 21 '12 at 23:10
4
4
the default is to have equations centered. use can use
documentclass[fleqn]{article}
to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
– prettygully
Mar 21 '12 at 23:51
the default is to have equations centered. use can use
documentclass[fleqn]{article}
to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
– prettygully
Mar 21 '12 at 23:51
2
2
To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment from
align
to gather
since you're not instructing amsmath
to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting &
alignment points.– Mico
Mar 22 '12 at 0:17
To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment from
align
to gather
since you're not instructing amsmath
to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting &
alignment points.– Mico
Mar 22 '12 at 0:17
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
From the comment of prettygully: The default is to have equations centered. use can use documentclass[fleqn]{article}
to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
From the comment of prettygully: The default is to have equations centered. use can use documentclass[fleqn]{article}
to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
add a comment |
up vote
3
down vote
From the comment of prettygully: The default is to have equations centered. use can use documentclass[fleqn]{article}
to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
add a comment |
up vote
3
down vote
up vote
3
down vote
From the comment of prettygully: The default is to have equations centered. use can use documentclass[fleqn]{article}
to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
From the comment of prettygully: The default is to have equations centered. use can use documentclass[fleqn]{article}
to have all equations start a given distance from the left margin. this distance can be modified using e.g. setlength{mathindent}{2cm}
answered May 5 '12 at 21:03
community wiki
boycott.se - yo'
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%2f48902%2fhow-to-set-the-left-margin-for-all-formulas-in-the-text%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
2
I am not sure I understand exactly how you want them aligned. Your given example shows them aligned on the left. The
align
environment centers the equations. If you want them aligned on the left when the width of the equations changes then useflalign
.– Peter Grill
Mar 21 '12 at 23:09
3
While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the
documentclass
and the appropriate packages so that those trying to help don't have to recreate it.– Peter Grill
Mar 21 '12 at 23:10
4
the default is to have equations centered. use can use
documentclass[fleqn]{article}
to have all equations start a given distance from the left margin. this distance can be modified using e.g.setlength{mathindent}{2cm}
– prettygully
Mar 21 '12 at 23:51
2
To build on the comments of @PeterGrill and @prettygully, you may also want to change the equation environment from
align
togather
since you're not instructingamsmath
to align vertically the equations on any internal point (say, an equal sign). Making this change will let you get rid of the distracting&
alignment points.– Mico
Mar 22 '12 at 0:17