How to align equations to the left
I have this equation on Overleaf that aligns to the right instead of the left. I have followed instructions on other questions found here but it doesn't work.
{setlength{abovedisplayskip}{0pt}%
begin{flalign}
-frac{tau}{2} sum (x_n - mu)^2 -b_0tau -frac{lambda_0tau}{2} (mu - mu_0)^2 \
= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
= -frac{tau}{2}(sum x_n^2 + Nmu^2 - 2musum x_n) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)
end{flalign}%
}%
How can I align to the left?
overleaf
add a comment |
I have this equation on Overleaf that aligns to the right instead of the left. I have followed instructions on other questions found here but it doesn't work.
{setlength{abovedisplayskip}{0pt}%
begin{flalign}
-frac{tau}{2} sum (x_n - mu)^2 -b_0tau -frac{lambda_0tau}{2} (mu - mu_0)^2 \
= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
= -frac{tau}{2}(sum x_n^2 + Nmu^2 - 2musum x_n) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)
end{flalign}%
}%
How can I align to the left?
overleaf
2
Please make your given code snippet compilable ...
– Kurt
Dec 23 '18 at 17:17
add a comment |
I have this equation on Overleaf that aligns to the right instead of the left. I have followed instructions on other questions found here but it doesn't work.
{setlength{abovedisplayskip}{0pt}%
begin{flalign}
-frac{tau}{2} sum (x_n - mu)^2 -b_0tau -frac{lambda_0tau}{2} (mu - mu_0)^2 \
= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
= -frac{tau}{2}(sum x_n^2 + Nmu^2 - 2musum x_n) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)
end{flalign}%
}%
How can I align to the left?
overleaf
I have this equation on Overleaf that aligns to the right instead of the left. I have followed instructions on other questions found here but it doesn't work.
{setlength{abovedisplayskip}{0pt}%
begin{flalign}
-frac{tau}{2} sum (x_n - mu)^2 -b_0tau -frac{lambda_0tau}{2} (mu - mu_0)^2 \
= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
= -frac{tau}{2}(sum x_n^2 + Nmu^2 - 2musum x_n) - b_0tau - frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)
end{flalign}%
}%
How can I align to the left?
overleaf
overleaf
asked Dec 23 '18 at 17:15
SahandSahand
1184
1184
2
Please make your given code snippet compilable ...
– Kurt
Dec 23 '18 at 17:17
add a comment |
2
Please make your given code snippet compilable ...
– Kurt
Dec 23 '18 at 17:17
2
2
Please make your given code snippet compilable ...
– Kurt
Dec 23 '18 at 17:17
Please make your given code snippet compilable ...
– Kurt
Dec 23 '18 at 17:17
add a comment |
2 Answers
2
active
oldest
votes
i guess that you are looking for the following:
documentclass{article}
usepackage{mathtools}
begin{document}
begin{equation}
begin{split}
MoveEqLeft
-frac{tau}{2}sum (x_n-mu)^2-b_0tau
-frac{lambda_0tau}{2}(mu-mu_0)^2 \
& = - frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
& = -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0))
end{split}
end{equation}
end{document}
@Mico, thank you very much. i consider your suggestion.
– Zarko
Dec 23 '18 at 17:38
Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
– Mico
Dec 23 '18 at 18:20
@Mico, thank you very much. i should see, which parenthesis are in pair.
– Zarko
Dec 23 '18 at 18:47
add a comment |
documentclass{article}
usepackage{amsmath}
begin{document}
begin{flalign}
-& frac{tau}{2}sum (x_n-mu)^2-b_0tau -frac{lambda_0tau}{2}(mu-mu_0)^2 notag \
&= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0) \
&= -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)) notag
end{flalign}
end{document}
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',
autoActivateHeartbeat: false,
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%2f467113%2fhow-to-align-equations-to-the-left%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
i guess that you are looking for the following:
documentclass{article}
usepackage{mathtools}
begin{document}
begin{equation}
begin{split}
MoveEqLeft
-frac{tau}{2}sum (x_n-mu)^2-b_0tau
-frac{lambda_0tau}{2}(mu-mu_0)^2 \
& = - frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
& = -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0))
end{split}
end{equation}
end{document}
@Mico, thank you very much. i consider your suggestion.
– Zarko
Dec 23 '18 at 17:38
Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
– Mico
Dec 23 '18 at 18:20
@Mico, thank you very much. i should see, which parenthesis are in pair.
– Zarko
Dec 23 '18 at 18:47
add a comment |
i guess that you are looking for the following:
documentclass{article}
usepackage{mathtools}
begin{document}
begin{equation}
begin{split}
MoveEqLeft
-frac{tau}{2}sum (x_n-mu)^2-b_0tau
-frac{lambda_0tau}{2}(mu-mu_0)^2 \
& = - frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
& = -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0))
end{split}
end{equation}
end{document}
@Mico, thank you very much. i consider your suggestion.
– Zarko
Dec 23 '18 at 17:38
Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
– Mico
Dec 23 '18 at 18:20
@Mico, thank you very much. i should see, which parenthesis are in pair.
– Zarko
Dec 23 '18 at 18:47
add a comment |
i guess that you are looking for the following:
documentclass{article}
usepackage{mathtools}
begin{document}
begin{equation}
begin{split}
MoveEqLeft
-frac{tau}{2}sum (x_n-mu)^2-b_0tau
-frac{lambda_0tau}{2}(mu-mu_0)^2 \
& = - frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
& = -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0))
end{split}
end{equation}
end{document}
i guess that you are looking for the following:
documentclass{article}
usepackage{mathtools}
begin{document}
begin{equation}
begin{split}
MoveEqLeft
-frac{tau}{2}sum (x_n-mu)^2-b_0tau
-frac{lambda_0tau}{2}(mu-mu_0)^2 \
& = - frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)\
& = -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0))
end{split}
end{equation}
end{document}
edited Dec 23 '18 at 18:19
Mico
285k31388778
285k31388778
answered Dec 23 '18 at 17:30
ZarkoZarko
129k868169
129k868169
@Mico, thank you very much. i consider your suggestion.
– Zarko
Dec 23 '18 at 17:38
Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
– Mico
Dec 23 '18 at 18:20
@Mico, thank you very much. i should see, which parenthesis are in pair.
– Zarko
Dec 23 '18 at 18:47
add a comment |
@Mico, thank you very much. i consider your suggestion.
– Zarko
Dec 23 '18 at 17:38
Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
– Mico
Dec 23 '18 at 18:20
@Mico, thank you very much. i should see, which parenthesis are in pair.
– Zarko
Dec 23 '18 at 18:47
@Mico, thank you very much. i consider your suggestion.
– Zarko
Dec 23 '18 at 17:38
@Mico, thank you very much. i consider your suggestion.
– Zarko
Dec 23 '18 at 17:38
Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
– Mico
Dec 23 '18 at 18:20
Sorry for not being sufficiently clear earlier about where the large parentheses should go. I've taken the liberty of providing an update.
– Mico
Dec 23 '18 at 18:20
@Mico, thank you very much. i should see, which parenthesis are in pair.
– Zarko
Dec 23 '18 at 18:47
@Mico, thank you very much. i should see, which parenthesis are in pair.
– Zarko
Dec 23 '18 at 18:47
add a comment |
documentclass{article}
usepackage{amsmath}
begin{document}
begin{flalign}
-& frac{tau}{2}sum (x_n-mu)^2-b_0tau -frac{lambda_0tau}{2}(mu-mu_0)^2 notag \
&= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0) \
&= -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)) notag
end{flalign}
end{document}
add a comment |
documentclass{article}
usepackage{amsmath}
begin{document}
begin{flalign}
-& frac{tau}{2}sum (x_n-mu)^2-b_0tau -frac{lambda_0tau}{2}(mu-mu_0)^2 notag \
&= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0) \
&= -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)) notag
end{flalign}
end{document}
add a comment |
documentclass{article}
usepackage{amsmath}
begin{document}
begin{flalign}
-& frac{tau}{2}sum (x_n-mu)^2-b_0tau -frac{lambda_0tau}{2}(mu-mu_0)^2 notag \
&= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0) \
&= -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)) notag
end{flalign}
end{document}
documentclass{article}
usepackage{amsmath}
begin{document}
begin{flalign}
-& frac{tau}{2}sum (x_n-mu)^2-b_0tau -frac{lambda_0tau}{2}(mu-mu_0)^2 notag \
&= -frac{tau}{2}sum(x_n^2 + mu^2 - 2x_nmu) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0) \
&= -frac{tau}{2}Bigl(sum x_n^2 + Nmu^2 - 2musum x_nBigr) - b_0tau -
frac{lambda_0tau}{2}(mu^2 + mu_0^2 - 2mumu_0)) notag
end{flalign}
end{document}
answered Dec 23 '18 at 18:46
AboAmmarAboAmmar
34.5k32985
34.5k32985
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.
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%2f467113%2fhow-to-align-equations-to-the-left%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
Please make your given code snippet compilable ...
– Kurt
Dec 23 '18 at 17:17