List of equation aligned on the left and which return to the line
up vote
5
down vote
favorite
I am trying to write different equations aligned on the left (that's ok) and which go back to the line after the =
sign. Also, I do not want any numeration of the equation: that's why there is a *
.
documentclass{article}
usepackage{amsmath}
begin{document}
begin{flalign*}
4 &= 2 + 2\nonumber
A &= B + C + D + E + F + G + H + I + J + K + L + M + N + O + P + Q + R + S + T + U + W + X + Y + Z \nonumber
6 &= 3 + 3&&
end{flalign*}
end{document}
As you can imagine the long equation will not fit in one line. The problem is that in my case it continues even after the end of the page and I do not see the end. As you can see:
Does someone know how to force it to go to the line, after the =
sign of the previous line ?
equations alignment
|
show 7 more comments
up vote
5
down vote
favorite
I am trying to write different equations aligned on the left (that's ok) and which go back to the line after the =
sign. Also, I do not want any numeration of the equation: that's why there is a *
.
documentclass{article}
usepackage{amsmath}
begin{document}
begin{flalign*}
4 &= 2 + 2\nonumber
A &= B + C + D + E + F + G + H + I + J + K + L + M + N + O + P + Q + R + S + T + U + W + X + Y + Z \nonumber
6 &= 3 + 3&&
end{flalign*}
end{document}
As you can imagine the long equation will not fit in one line. The problem is that in my case it continues even after the end of the page and I do not see the end. As you can see:
Does someone know how to force it to go to the line, after the =
sign of the previous line ?
equations alignment
2
it makes it a lot easier for people to see the issue if you provide a complete small document. In particular show how big your page is. Also why do you have&&
at the end of each row? you can just linebreak with\
and use aquad
space to indent the wrapped line, or use a nestedaligned
environment or several other alternatives (you don't neednonumber
in a starred environment.
– David Carlisle
yesterday
1
well you didn't do the main thing i suggested which is to provide a test document (see the code in Bernard's answer which is a complete document, so you can test it without guessing needed packages and page size)
– David Carlisle
yesterday
1
Three comments about your preamble. (1) Thehyperref
package should be loaded last. (2) Thesubfigure
package is deprecated and shouldn't be used any longer. Since you're using thecaption
package, I suggest you load thesubcaption
package instead of thesubfigure
package. (3) Theamsfonts
package is loaded automatically by theamssymb
package -- no need to loadamsfonts
separately.
– Mico
yesterday
1
@Mico Ok, I did (1), (2) and (3) ! It's working. Thanks for the additional help !
– Agape Gal'lo
yesterday
2
See as it is now (a) anyone can copy the code and see the issue and (b) they know a target width for line wrapping. If you wanted two column a4 add[a4paper,twocolumn]
and then the width would be much less and possibly the answers would suggest a different layout, and (c) by generating the image from exactly the posted code, you avoid typos (which you did not have, but I always have if I type untested tex fragments....)
– David Carlisle
yesterday
|
show 7 more comments
up vote
5
down vote
favorite
up vote
5
down vote
favorite
I am trying to write different equations aligned on the left (that's ok) and which go back to the line after the =
sign. Also, I do not want any numeration of the equation: that's why there is a *
.
documentclass{article}
usepackage{amsmath}
begin{document}
begin{flalign*}
4 &= 2 + 2\nonumber
A &= B + C + D + E + F + G + H + I + J + K + L + M + N + O + P + Q + R + S + T + U + W + X + Y + Z \nonumber
6 &= 3 + 3&&
end{flalign*}
end{document}
As you can imagine the long equation will not fit in one line. The problem is that in my case it continues even after the end of the page and I do not see the end. As you can see:
Does someone know how to force it to go to the line, after the =
sign of the previous line ?
equations alignment
I am trying to write different equations aligned on the left (that's ok) and which go back to the line after the =
sign. Also, I do not want any numeration of the equation: that's why there is a *
.
documentclass{article}
usepackage{amsmath}
begin{document}
begin{flalign*}
4 &= 2 + 2\nonumber
A &= B + C + D + E + F + G + H + I + J + K + L + M + N + O + P + Q + R + S + T + U + W + X + Y + Z \nonumber
6 &= 3 + 3&&
end{flalign*}
end{document}
As you can imagine the long equation will not fit in one line. The problem is that in my case it continues even after the end of the page and I do not see the end. As you can see:
Does someone know how to force it to go to the line, after the =
sign of the previous line ?
equations alignment
equations alignment
edited yesterday
David Carlisle
480k3811121848
480k3811121848
asked yesterday
Agape Gal'lo
606
606
2
it makes it a lot easier for people to see the issue if you provide a complete small document. In particular show how big your page is. Also why do you have&&
at the end of each row? you can just linebreak with\
and use aquad
space to indent the wrapped line, or use a nestedaligned
environment or several other alternatives (you don't neednonumber
in a starred environment.
– David Carlisle
yesterday
1
well you didn't do the main thing i suggested which is to provide a test document (see the code in Bernard's answer which is a complete document, so you can test it without guessing needed packages and page size)
– David Carlisle
yesterday
1
Three comments about your preamble. (1) Thehyperref
package should be loaded last. (2) Thesubfigure
package is deprecated and shouldn't be used any longer. Since you're using thecaption
package, I suggest you load thesubcaption
package instead of thesubfigure
package. (3) Theamsfonts
package is loaded automatically by theamssymb
package -- no need to loadamsfonts
separately.
– Mico
yesterday
1
@Mico Ok, I did (1), (2) and (3) ! It's working. Thanks for the additional help !
– Agape Gal'lo
yesterday
2
See as it is now (a) anyone can copy the code and see the issue and (b) they know a target width for line wrapping. If you wanted two column a4 add[a4paper,twocolumn]
and then the width would be much less and possibly the answers would suggest a different layout, and (c) by generating the image from exactly the posted code, you avoid typos (which you did not have, but I always have if I type untested tex fragments....)
– David Carlisle
yesterday
|
show 7 more comments
2
it makes it a lot easier for people to see the issue if you provide a complete small document. In particular show how big your page is. Also why do you have&&
at the end of each row? you can just linebreak with\
and use aquad
space to indent the wrapped line, or use a nestedaligned
environment or several other alternatives (you don't neednonumber
in a starred environment.
– David Carlisle
yesterday
1
well you didn't do the main thing i suggested which is to provide a test document (see the code in Bernard's answer which is a complete document, so you can test it without guessing needed packages and page size)
– David Carlisle
yesterday
1
Three comments about your preamble. (1) Thehyperref
package should be loaded last. (2) Thesubfigure
package is deprecated and shouldn't be used any longer. Since you're using thecaption
package, I suggest you load thesubcaption
package instead of thesubfigure
package. (3) Theamsfonts
package is loaded automatically by theamssymb
package -- no need to loadamsfonts
separately.
– Mico
yesterday
1
@Mico Ok, I did (1), (2) and (3) ! It's working. Thanks for the additional help !
– Agape Gal'lo
yesterday
2
See as it is now (a) anyone can copy the code and see the issue and (b) they know a target width for line wrapping. If you wanted two column a4 add[a4paper,twocolumn]
and then the width would be much less and possibly the answers would suggest a different layout, and (c) by generating the image from exactly the posted code, you avoid typos (which you did not have, but I always have if I type untested tex fragments....)
– David Carlisle
yesterday
2
2
it makes it a lot easier for people to see the issue if you provide a complete small document. In particular show how big your page is. Also why do you have
&&
at the end of each row? you can just linebreak with \
and use a quad
space to indent the wrapped line, or use a nested aligned
environment or several other alternatives (you don't need nonumber
in a starred environment.– David Carlisle
yesterday
it makes it a lot easier for people to see the issue if you provide a complete small document. In particular show how big your page is. Also why do you have
&&
at the end of each row? you can just linebreak with \
and use a quad
space to indent the wrapped line, or use a nested aligned
environment or several other alternatives (you don't need nonumber
in a starred environment.– David Carlisle
yesterday
1
1
well you didn't do the main thing i suggested which is to provide a test document (see the code in Bernard's answer which is a complete document, so you can test it without guessing needed packages and page size)
– David Carlisle
yesterday
well you didn't do the main thing i suggested which is to provide a test document (see the code in Bernard's answer which is a complete document, so you can test it without guessing needed packages and page size)
– David Carlisle
yesterday
1
1
Three comments about your preamble. (1) The
hyperref
package should be loaded last. (2) The subfigure
package is deprecated and shouldn't be used any longer. Since you're using the caption
package, I suggest you load the subcaption
package instead of the subfigure
package. (3) The amsfonts
package is loaded automatically by the amssymb
package -- no need to load amsfonts
separately.– Mico
yesterday
Three comments about your preamble. (1) The
hyperref
package should be loaded last. (2) The subfigure
package is deprecated and shouldn't be used any longer. Since you're using the caption
package, I suggest you load the subcaption
package instead of the subfigure
package. (3) The amsfonts
package is loaded automatically by the amssymb
package -- no need to load amsfonts
separately.– Mico
yesterday
1
1
@Mico Ok, I did (1), (2) and (3) ! It's working. Thanks for the additional help !
– Agape Gal'lo
yesterday
@Mico Ok, I did (1), (2) and (3) ! It's working. Thanks for the additional help !
– Agape Gal'lo
yesterday
2
2
See as it is now (a) anyone can copy the code and see the issue and (b) they know a target width for line wrapping. If you wanted two column a4 add
[a4paper,twocolumn]
and then the width would be much less and possibly the answers would suggest a different layout, and (c) by generating the image from exactly the posted code, you avoid typos (which you did not have, but I always have if I type untested tex fragments....)– David Carlisle
yesterday
See as it is now (a) anyone can copy the code and see the issue and (b) they know a target width for line wrapping. If you wanted two column a4 add
[a4paper,twocolumn]
and then the width would be much less and possibly the answers would suggest a different layout, and (c) by generating the image from exactly the posted code, you avoid typos (which you did not have, but I always have if I type untested tex fragments....)– David Carlisle
yesterday
|
show 7 more comments
3 Answers
3
active
oldest
votes
up vote
7
down vote
accepted
Is it one of these you want?
documentclass{article}
usepackage{mathtoolsh}
usepackage{showframe}
renewcommand{ShowFrameLinethickness}{0.3pt}
begin{document}
begin{flalign*}
4 &= 2 + 2&&\
A &= begin{multlined}[t]B + C + D + E + F + G + H + I + J + K+ L \+ M + N + O + P + Q + R + S + T + U + W
end{multlined} \
6 &= 3 + 3
end{flalign*}
vskip1cm
begin{flalign*}
4 &= 2 + 2&&\
A &=B + C + D + E + F + G + H + I + J + K+ L \
& + M + N + O + P + Q + R + S + T + U + W \
6 &= 3 + 3
end{flalign*}
end{document}
Yes !! That would be that. But is it compulsary to import the new packages ? @Bernard
– Agape Gal'lo
yesterday
It works perfectly. But could I aligned the+ M + N + O + P + Q + R + S + T + U + W
to the=
ont the left? Right now it's aligned on the right. @Bernard
– Agape Gal'lo
yesterday
2
@AgapeGal'lo: Your original request didn't make it explicit, but it seemed like you were after an automated breaking of the equation. Is this the case?
– Werner
yesterday
1
@AgapeGal'lo: I've added another solution.
– Bernard
yesterday
@Bernard Perfect: Both of you solutions work perfectly!! Thank you, and sorry, may be my question wasn't asked well.
– Agape Gal'lo
yesterday
add a comment |
up vote
4
down vote
Here's a solution that uses a parbox
for the material to the right of the =
symbol in the 2nd equation. An advantage of this approach is that it allows automatic line breaking.
The macro mybox
takes two arguments: the first, optional, argument gives the width of the box (0.9textwidth
by default); the second, mandatory, argument gives the material to be placed (in displaystyle math mode) in the "box". If you wanted to make the box occupy, say, a width of 0.93textwidth
, you'd simply write mybox[0.93]{B + C + ... + Z}
.
documentclass{article}
usepackage{amsmath}
% default width of parbox = 0.9textwidth
newcommandmybox[2][0.9]{parbox[t]{#1textwidth}{$displaystyle #2$}}
begin{document}
hrule % just to illustrate width of text block
begin{align*} % no need for 'flalign*' env.
4 &= 2 + 2\
A &= mybox{B + C + D + E + F + G + H + I + J + K + L + M +
N + O + P + Q + R + S + T + U + W + X + Y + Z}\
6 &= 3 + 3
end{align*}
end{document}
Thanks for the answerre. That's working !
– Agape Gal'lo
yesterday
add a comment |
up vote
4
down vote
You can pass the fleqn
option to amsmath to left align all your equations automatically. Also, I would align the +
sign after the =
sign above using the align*
environment.
documentclass{article}
usepackage[fleqn]{amsmath}
begin{document}
begin{align*}
4 &= 2 + 2\
A &= B + C + D + E + F + G + H + I + J + K+ L \
&phantom{{}=} + M + N + O + P + Q + R + S + T + U + W \
6 &= 3 + 3
end{align*}
end{document}
Thanks, in fact that's working.
– Agape Gal'lo
yesterday
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2f464584%2flist-of-equation-aligned-on-the-left-and-which-return-to-the-line%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
7
down vote
accepted
Is it one of these you want?
documentclass{article}
usepackage{mathtoolsh}
usepackage{showframe}
renewcommand{ShowFrameLinethickness}{0.3pt}
begin{document}
begin{flalign*}
4 &= 2 + 2&&\
A &= begin{multlined}[t]B + C + D + E + F + G + H + I + J + K+ L \+ M + N + O + P + Q + R + S + T + U + W
end{multlined} \
6 &= 3 + 3
end{flalign*}
vskip1cm
begin{flalign*}
4 &= 2 + 2&&\
A &=B + C + D + E + F + G + H + I + J + K+ L \
& + M + N + O + P + Q + R + S + T + U + W \
6 &= 3 + 3
end{flalign*}
end{document}
Yes !! That would be that. But is it compulsary to import the new packages ? @Bernard
– Agape Gal'lo
yesterday
It works perfectly. But could I aligned the+ M + N + O + P + Q + R + S + T + U + W
to the=
ont the left? Right now it's aligned on the right. @Bernard
– Agape Gal'lo
yesterday
2
@AgapeGal'lo: Your original request didn't make it explicit, but it seemed like you were after an automated breaking of the equation. Is this the case?
– Werner
yesterday
1
@AgapeGal'lo: I've added another solution.
– Bernard
yesterday
@Bernard Perfect: Both of you solutions work perfectly!! Thank you, and sorry, may be my question wasn't asked well.
– Agape Gal'lo
yesterday
add a comment |
up vote
7
down vote
accepted
Is it one of these you want?
documentclass{article}
usepackage{mathtoolsh}
usepackage{showframe}
renewcommand{ShowFrameLinethickness}{0.3pt}
begin{document}
begin{flalign*}
4 &= 2 + 2&&\
A &= begin{multlined}[t]B + C + D + E + F + G + H + I + J + K+ L \+ M + N + O + P + Q + R + S + T + U + W
end{multlined} \
6 &= 3 + 3
end{flalign*}
vskip1cm
begin{flalign*}
4 &= 2 + 2&&\
A &=B + C + D + E + F + G + H + I + J + K+ L \
& + M + N + O + P + Q + R + S + T + U + W \
6 &= 3 + 3
end{flalign*}
end{document}
Yes !! That would be that. But is it compulsary to import the new packages ? @Bernard
– Agape Gal'lo
yesterday
It works perfectly. But could I aligned the+ M + N + O + P + Q + R + S + T + U + W
to the=
ont the left? Right now it's aligned on the right. @Bernard
– Agape Gal'lo
yesterday
2
@AgapeGal'lo: Your original request didn't make it explicit, but it seemed like you were after an automated breaking of the equation. Is this the case?
– Werner
yesterday
1
@AgapeGal'lo: I've added another solution.
– Bernard
yesterday
@Bernard Perfect: Both of you solutions work perfectly!! Thank you, and sorry, may be my question wasn't asked well.
– Agape Gal'lo
yesterday
add a comment |
up vote
7
down vote
accepted
up vote
7
down vote
accepted
Is it one of these you want?
documentclass{article}
usepackage{mathtoolsh}
usepackage{showframe}
renewcommand{ShowFrameLinethickness}{0.3pt}
begin{document}
begin{flalign*}
4 &= 2 + 2&&\
A &= begin{multlined}[t]B + C + D + E + F + G + H + I + J + K+ L \+ M + N + O + P + Q + R + S + T + U + W
end{multlined} \
6 &= 3 + 3
end{flalign*}
vskip1cm
begin{flalign*}
4 &= 2 + 2&&\
A &=B + C + D + E + F + G + H + I + J + K+ L \
& + M + N + O + P + Q + R + S + T + U + W \
6 &= 3 + 3
end{flalign*}
end{document}
Is it one of these you want?
documentclass{article}
usepackage{mathtoolsh}
usepackage{showframe}
renewcommand{ShowFrameLinethickness}{0.3pt}
begin{document}
begin{flalign*}
4 &= 2 + 2&&\
A &= begin{multlined}[t]B + C + D + E + F + G + H + I + J + K+ L \+ M + N + O + P + Q + R + S + T + U + W
end{multlined} \
6 &= 3 + 3
end{flalign*}
vskip1cm
begin{flalign*}
4 &= 2 + 2&&\
A &=B + C + D + E + F + G + H + I + J + K+ L \
& + M + N + O + P + Q + R + S + T + U + W \
6 &= 3 + 3
end{flalign*}
end{document}
edited yesterday
answered yesterday
Bernard
164k769192
164k769192
Yes !! That would be that. But is it compulsary to import the new packages ? @Bernard
– Agape Gal'lo
yesterday
It works perfectly. But could I aligned the+ M + N + O + P + Q + R + S + T + U + W
to the=
ont the left? Right now it's aligned on the right. @Bernard
– Agape Gal'lo
yesterday
2
@AgapeGal'lo: Your original request didn't make it explicit, but it seemed like you were after an automated breaking of the equation. Is this the case?
– Werner
yesterday
1
@AgapeGal'lo: I've added another solution.
– Bernard
yesterday
@Bernard Perfect: Both of you solutions work perfectly!! Thank you, and sorry, may be my question wasn't asked well.
– Agape Gal'lo
yesterday
add a comment |
Yes !! That would be that. But is it compulsary to import the new packages ? @Bernard
– Agape Gal'lo
yesterday
It works perfectly. But could I aligned the+ M + N + O + P + Q + R + S + T + U + W
to the=
ont the left? Right now it's aligned on the right. @Bernard
– Agape Gal'lo
yesterday
2
@AgapeGal'lo: Your original request didn't make it explicit, but it seemed like you were after an automated breaking of the equation. Is this the case?
– Werner
yesterday
1
@AgapeGal'lo: I've added another solution.
– Bernard
yesterday
@Bernard Perfect: Both of you solutions work perfectly!! Thank you, and sorry, may be my question wasn't asked well.
– Agape Gal'lo
yesterday
Yes !! That would be that. But is it compulsary to import the new packages ? @Bernard
– Agape Gal'lo
yesterday
Yes !! That would be that. But is it compulsary to import the new packages ? @Bernard
– Agape Gal'lo
yesterday
It works perfectly. But could I aligned the
+ M + N + O + P + Q + R + S + T + U + W
to the =
ont the left? Right now it's aligned on the right. @Bernard– Agape Gal'lo
yesterday
It works perfectly. But could I aligned the
+ M + N + O + P + Q + R + S + T + U + W
to the =
ont the left? Right now it's aligned on the right. @Bernard– Agape Gal'lo
yesterday
2
2
@AgapeGal'lo: Your original request didn't make it explicit, but it seemed like you were after an automated breaking of the equation. Is this the case?
– Werner
yesterday
@AgapeGal'lo: Your original request didn't make it explicit, but it seemed like you were after an automated breaking of the equation. Is this the case?
– Werner
yesterday
1
1
@AgapeGal'lo: I've added another solution.
– Bernard
yesterday
@AgapeGal'lo: I've added another solution.
– Bernard
yesterday
@Bernard Perfect: Both of you solutions work perfectly!! Thank you, and sorry, may be my question wasn't asked well.
– Agape Gal'lo
yesterday
@Bernard Perfect: Both of you solutions work perfectly!! Thank you, and sorry, may be my question wasn't asked well.
– Agape Gal'lo
yesterday
add a comment |
up vote
4
down vote
Here's a solution that uses a parbox
for the material to the right of the =
symbol in the 2nd equation. An advantage of this approach is that it allows automatic line breaking.
The macro mybox
takes two arguments: the first, optional, argument gives the width of the box (0.9textwidth
by default); the second, mandatory, argument gives the material to be placed (in displaystyle math mode) in the "box". If you wanted to make the box occupy, say, a width of 0.93textwidth
, you'd simply write mybox[0.93]{B + C + ... + Z}
.
documentclass{article}
usepackage{amsmath}
% default width of parbox = 0.9textwidth
newcommandmybox[2][0.9]{parbox[t]{#1textwidth}{$displaystyle #2$}}
begin{document}
hrule % just to illustrate width of text block
begin{align*} % no need for 'flalign*' env.
4 &= 2 + 2\
A &= mybox{B + C + D + E + F + G + H + I + J + K + L + M +
N + O + P + Q + R + S + T + U + W + X + Y + Z}\
6 &= 3 + 3
end{align*}
end{document}
Thanks for the answerre. That's working !
– Agape Gal'lo
yesterday
add a comment |
up vote
4
down vote
Here's a solution that uses a parbox
for the material to the right of the =
symbol in the 2nd equation. An advantage of this approach is that it allows automatic line breaking.
The macro mybox
takes two arguments: the first, optional, argument gives the width of the box (0.9textwidth
by default); the second, mandatory, argument gives the material to be placed (in displaystyle math mode) in the "box". If you wanted to make the box occupy, say, a width of 0.93textwidth
, you'd simply write mybox[0.93]{B + C + ... + Z}
.
documentclass{article}
usepackage{amsmath}
% default width of parbox = 0.9textwidth
newcommandmybox[2][0.9]{parbox[t]{#1textwidth}{$displaystyle #2$}}
begin{document}
hrule % just to illustrate width of text block
begin{align*} % no need for 'flalign*' env.
4 &= 2 + 2\
A &= mybox{B + C + D + E + F + G + H + I + J + K + L + M +
N + O + P + Q + R + S + T + U + W + X + Y + Z}\
6 &= 3 + 3
end{align*}
end{document}
Thanks for the answerre. That's working !
– Agape Gal'lo
yesterday
add a comment |
up vote
4
down vote
up vote
4
down vote
Here's a solution that uses a parbox
for the material to the right of the =
symbol in the 2nd equation. An advantage of this approach is that it allows automatic line breaking.
The macro mybox
takes two arguments: the first, optional, argument gives the width of the box (0.9textwidth
by default); the second, mandatory, argument gives the material to be placed (in displaystyle math mode) in the "box". If you wanted to make the box occupy, say, a width of 0.93textwidth
, you'd simply write mybox[0.93]{B + C + ... + Z}
.
documentclass{article}
usepackage{amsmath}
% default width of parbox = 0.9textwidth
newcommandmybox[2][0.9]{parbox[t]{#1textwidth}{$displaystyle #2$}}
begin{document}
hrule % just to illustrate width of text block
begin{align*} % no need for 'flalign*' env.
4 &= 2 + 2\
A &= mybox{B + C + D + E + F + G + H + I + J + K + L + M +
N + O + P + Q + R + S + T + U + W + X + Y + Z}\
6 &= 3 + 3
end{align*}
end{document}
Here's a solution that uses a parbox
for the material to the right of the =
symbol in the 2nd equation. An advantage of this approach is that it allows automatic line breaking.
The macro mybox
takes two arguments: the first, optional, argument gives the width of the box (0.9textwidth
by default); the second, mandatory, argument gives the material to be placed (in displaystyle math mode) in the "box". If you wanted to make the box occupy, say, a width of 0.93textwidth
, you'd simply write mybox[0.93]{B + C + ... + Z}
.
documentclass{article}
usepackage{amsmath}
% default width of parbox = 0.9textwidth
newcommandmybox[2][0.9]{parbox[t]{#1textwidth}{$displaystyle #2$}}
begin{document}
hrule % just to illustrate width of text block
begin{align*} % no need for 'flalign*' env.
4 &= 2 + 2\
A &= mybox{B + C + D + E + F + G + H + I + J + K + L + M +
N + O + P + Q + R + S + T + U + W + X + Y + Z}\
6 &= 3 + 3
end{align*}
end{document}
edited yesterday
answered yesterday
Mico
272k30369756
272k30369756
Thanks for the answerre. That's working !
– Agape Gal'lo
yesterday
add a comment |
Thanks for the answerre. That's working !
– Agape Gal'lo
yesterday
Thanks for the answerre. That's working !
– Agape Gal'lo
yesterday
Thanks for the answerre. That's working !
– Agape Gal'lo
yesterday
add a comment |
up vote
4
down vote
You can pass the fleqn
option to amsmath to left align all your equations automatically. Also, I would align the +
sign after the =
sign above using the align*
environment.
documentclass{article}
usepackage[fleqn]{amsmath}
begin{document}
begin{align*}
4 &= 2 + 2\
A &= B + C + D + E + F + G + H + I + J + K+ L \
&phantom{{}=} + M + N + O + P + Q + R + S + T + U + W \
6 &= 3 + 3
end{align*}
end{document}
Thanks, in fact that's working.
– Agape Gal'lo
yesterday
add a comment |
up vote
4
down vote
You can pass the fleqn
option to amsmath to left align all your equations automatically. Also, I would align the +
sign after the =
sign above using the align*
environment.
documentclass{article}
usepackage[fleqn]{amsmath}
begin{document}
begin{align*}
4 &= 2 + 2\
A &= B + C + D + E + F + G + H + I + J + K+ L \
&phantom{{}=} + M + N + O + P + Q + R + S + T + U + W \
6 &= 3 + 3
end{align*}
end{document}
Thanks, in fact that's working.
– Agape Gal'lo
yesterday
add a comment |
up vote
4
down vote
up vote
4
down vote
You can pass the fleqn
option to amsmath to left align all your equations automatically. Also, I would align the +
sign after the =
sign above using the align*
environment.
documentclass{article}
usepackage[fleqn]{amsmath}
begin{document}
begin{align*}
4 &= 2 + 2\
A &= B + C + D + E + F + G + H + I + J + K+ L \
&phantom{{}=} + M + N + O + P + Q + R + S + T + U + W \
6 &= 3 + 3
end{align*}
end{document}
You can pass the fleqn
option to amsmath to left align all your equations automatically. Also, I would align the +
sign after the =
sign above using the align*
environment.
documentclass{article}
usepackage[fleqn]{amsmath}
begin{document}
begin{align*}
4 &= 2 + 2\
A &= B + C + D + E + F + G + H + I + J + K+ L \
&phantom{{}=} + M + N + O + P + Q + R + S + T + U + W \
6 &= 3 + 3
end{align*}
end{document}
answered yesterday
AboAmmar
32k22781
32k22781
Thanks, in fact that's working.
– Agape Gal'lo
yesterday
add a comment |
Thanks, in fact that's working.
– Agape Gal'lo
yesterday
Thanks, in fact that's working.
– Agape Gal'lo
yesterday
Thanks, in fact that's working.
– Agape Gal'lo
yesterday
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%2f464584%2flist-of-equation-aligned-on-the-left-and-which-return-to-the-line%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
it makes it a lot easier for people to see the issue if you provide a complete small document. In particular show how big your page is. Also why do you have
&&
at the end of each row? you can just linebreak with\
and use aquad
space to indent the wrapped line, or use a nestedaligned
environment or several other alternatives (you don't neednonumber
in a starred environment.– David Carlisle
yesterday
1
well you didn't do the main thing i suggested which is to provide a test document (see the code in Bernard's answer which is a complete document, so you can test it without guessing needed packages and page size)
– David Carlisle
yesterday
1
Three comments about your preamble. (1) The
hyperref
package should be loaded last. (2) Thesubfigure
package is deprecated and shouldn't be used any longer. Since you're using thecaption
package, I suggest you load thesubcaption
package instead of thesubfigure
package. (3) Theamsfonts
package is loaded automatically by theamssymb
package -- no need to loadamsfonts
separately.– Mico
yesterday
1
@Mico Ok, I did (1), (2) and (3) ! It's working. Thanks for the additional help !
– Agape Gal'lo
yesterday
2
See as it is now (a) anyone can copy the code and see the issue and (b) they know a target width for line wrapping. If you wanted two column a4 add
[a4paper,twocolumn]
and then the width would be much less and possibly the answers would suggest a different layout, and (c) by generating the image from exactly the posted code, you avoid typos (which you did not have, but I always have if I type untested tex fragments....)– David Carlisle
yesterday