aligning equalities = one below the other
I have the following source of math text in LaTeX and I would like to ALIGN
all the equalities (=) to be one exactly below the other.
How shall I do that? See the last 2 lines of this question.
Can someone rewrite this chain of equalities into ALIGN enviroment?
I got stuck with it.
documentclass{article}
usepackage{newtxtext}
usepackage{newtxmath}
usepackage{amsmath}
begin{document}
It is clearer if you define $q_i = p_i cdot f_i cdot overline{f}_i$
This is how it should be.
Then
$p cdot f = p cdot b_i cdot f_i qquad text{(since } f = b_i cdot f_i)$
$= d^*_i cdot p_i cdot f_i qquadtext{(by naturality)}$
$= d^*_i cdot p_i cdot f_i cdot overline{f}_i cdot f_i$ = qquad (as $overline{f}_i cdot f_i = 1$)
$= d^*_i cdot q_i cdot f_i qquad text{(by the definition of} q_i)$
$= q cdot b_i cdot f_i qquad text{(by naturality)}$
$= q cdot f text{(by naturality)}$
Hope that helps.
end{document}
equations align
add a comment |
I have the following source of math text in LaTeX and I would like to ALIGN
all the equalities (=) to be one exactly below the other.
How shall I do that? See the last 2 lines of this question.
Can someone rewrite this chain of equalities into ALIGN enviroment?
I got stuck with it.
documentclass{article}
usepackage{newtxtext}
usepackage{newtxmath}
usepackage{amsmath}
begin{document}
It is clearer if you define $q_i = p_i cdot f_i cdot overline{f}_i$
This is how it should be.
Then
$p cdot f = p cdot b_i cdot f_i qquad text{(since } f = b_i cdot f_i)$
$= d^*_i cdot p_i cdot f_i qquadtext{(by naturality)}$
$= d^*_i cdot p_i cdot f_i cdot overline{f}_i cdot f_i$ = qquad (as $overline{f}_i cdot f_i = 1$)
$= d^*_i cdot q_i cdot f_i qquad text{(by the definition of} q_i)$
$= q cdot b_i cdot f_i qquad text{(by naturality)}$
$= q cdot f text{(by naturality)}$
Hope that helps.
end{document}
equations align
3
alignenvironment fromamsmathpackage
– Hafid Boukhoulda
Feb 11 at 17:47
How do I begin and end the align enviroment? "begin{align}" has failed.
– user2925716
Feb 11 at 17:50
add a comment |
I have the following source of math text in LaTeX and I would like to ALIGN
all the equalities (=) to be one exactly below the other.
How shall I do that? See the last 2 lines of this question.
Can someone rewrite this chain of equalities into ALIGN enviroment?
I got stuck with it.
documentclass{article}
usepackage{newtxtext}
usepackage{newtxmath}
usepackage{amsmath}
begin{document}
It is clearer if you define $q_i = p_i cdot f_i cdot overline{f}_i$
This is how it should be.
Then
$p cdot f = p cdot b_i cdot f_i qquad text{(since } f = b_i cdot f_i)$
$= d^*_i cdot p_i cdot f_i qquadtext{(by naturality)}$
$= d^*_i cdot p_i cdot f_i cdot overline{f}_i cdot f_i$ = qquad (as $overline{f}_i cdot f_i = 1$)
$= d^*_i cdot q_i cdot f_i qquad text{(by the definition of} q_i)$
$= q cdot b_i cdot f_i qquad text{(by naturality)}$
$= q cdot f text{(by naturality)}$
Hope that helps.
end{document}
equations align
I have the following source of math text in LaTeX and I would like to ALIGN
all the equalities (=) to be one exactly below the other.
How shall I do that? See the last 2 lines of this question.
Can someone rewrite this chain of equalities into ALIGN enviroment?
I got stuck with it.
documentclass{article}
usepackage{newtxtext}
usepackage{newtxmath}
usepackage{amsmath}
begin{document}
It is clearer if you define $q_i = p_i cdot f_i cdot overline{f}_i$
This is how it should be.
Then
$p cdot f = p cdot b_i cdot f_i qquad text{(since } f = b_i cdot f_i)$
$= d^*_i cdot p_i cdot f_i qquadtext{(by naturality)}$
$= d^*_i cdot p_i cdot f_i cdot overline{f}_i cdot f_i$ = qquad (as $overline{f}_i cdot f_i = 1$)
$= d^*_i cdot q_i cdot f_i qquad text{(by the definition of} q_i)$
$= q cdot b_i cdot f_i qquad text{(by naturality)}$
$= q cdot f text{(by naturality)}$
Hope that helps.
end{document}
equations align
equations align
edited Feb 11 at 18:31
gusbrs
7,9712840
7,9712840
asked Feb 11 at 17:34
user2925716user2925716
1645
1645
3
alignenvironment fromamsmathpackage
– Hafid Boukhoulda
Feb 11 at 17:47
How do I begin and end the align enviroment? "begin{align}" has failed.
– user2925716
Feb 11 at 17:50
add a comment |
3
alignenvironment fromamsmathpackage
– Hafid Boukhoulda
Feb 11 at 17:47
How do I begin and end the align enviroment? "begin{align}" has failed.
– user2925716
Feb 11 at 17:50
3
3
align environment from amsmath package– Hafid Boukhoulda
Feb 11 at 17:47
align environment from amsmath package– Hafid Boukhoulda
Feb 11 at 17:47
How do I begin and end the align enviroment? "begin{align}" has failed.
– user2925716
Feb 11 at 17:50
How do I begin and end the align enviroment? "begin{align}" has failed.
– user2925716
Feb 11 at 17:50
add a comment |
1 Answer
1
active
oldest
votes
Updated
Text left aligned
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align}
&text{It is clearer if you define} &q_i &= p_i cdot f_i cdot overline{f}_i\
&text{This is how it should be} & p cdot f &= p cdot b_i cdot f_i\
&text{then} &&= d^*_i cdot p_i cdot f_i qquad text{(by neutrality)}
end{align}
end{document}

Text right aligned
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align}
text{It is clearer if you define}& &q_i &= p_i cdot f_i cdot overline{f}_i\
text{This is how it should be}& & p cdot f &= p cdot b_i cdot f_i\
text{then} &&&= d^*_i cdot p_i cdot f_i qquad text{(by neutrality)}
end{align}
end{document}

WHat is wrong with this: begin{align} $p cdot f &= p cdot b_i cdot f_i text{(since)} f = b_i cdot f_i$\ $&= d^*_i cdot p_i cdot f_i text{(by naturality)}$\
– user2925716
Feb 11 at 18:10
@user2925716 remove all the $
– Hafid Boukhoulda
Feb 11 at 18:12
Align already starts display math mode. $ is for inline math.
– JPi
Feb 11 at 19:02
I've managed myself to align that text. Thank you for your help.
– user2925716
Feb 11 at 20:00
@user2925716 you're welcome!
– Hafid Boukhoulda
Feb 11 at 20:08
|
show 2 more comments
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%2f474385%2faligning-equalities-one-below-the-other%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Updated
Text left aligned
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align}
&text{It is clearer if you define} &q_i &= p_i cdot f_i cdot overline{f}_i\
&text{This is how it should be} & p cdot f &= p cdot b_i cdot f_i\
&text{then} &&= d^*_i cdot p_i cdot f_i qquad text{(by neutrality)}
end{align}
end{document}

Text right aligned
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align}
text{It is clearer if you define}& &q_i &= p_i cdot f_i cdot overline{f}_i\
text{This is how it should be}& & p cdot f &= p cdot b_i cdot f_i\
text{then} &&&= d^*_i cdot p_i cdot f_i qquad text{(by neutrality)}
end{align}
end{document}

WHat is wrong with this: begin{align} $p cdot f &= p cdot b_i cdot f_i text{(since)} f = b_i cdot f_i$\ $&= d^*_i cdot p_i cdot f_i text{(by naturality)}$\
– user2925716
Feb 11 at 18:10
@user2925716 remove all the $
– Hafid Boukhoulda
Feb 11 at 18:12
Align already starts display math mode. $ is for inline math.
– JPi
Feb 11 at 19:02
I've managed myself to align that text. Thank you for your help.
– user2925716
Feb 11 at 20:00
@user2925716 you're welcome!
– Hafid Boukhoulda
Feb 11 at 20:08
|
show 2 more comments
Updated
Text left aligned
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align}
&text{It is clearer if you define} &q_i &= p_i cdot f_i cdot overline{f}_i\
&text{This is how it should be} & p cdot f &= p cdot b_i cdot f_i\
&text{then} &&= d^*_i cdot p_i cdot f_i qquad text{(by neutrality)}
end{align}
end{document}

Text right aligned
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align}
text{It is clearer if you define}& &q_i &= p_i cdot f_i cdot overline{f}_i\
text{This is how it should be}& & p cdot f &= p cdot b_i cdot f_i\
text{then} &&&= d^*_i cdot p_i cdot f_i qquad text{(by neutrality)}
end{align}
end{document}

WHat is wrong with this: begin{align} $p cdot f &= p cdot b_i cdot f_i text{(since)} f = b_i cdot f_i$\ $&= d^*_i cdot p_i cdot f_i text{(by naturality)}$\
– user2925716
Feb 11 at 18:10
@user2925716 remove all the $
– Hafid Boukhoulda
Feb 11 at 18:12
Align already starts display math mode. $ is for inline math.
– JPi
Feb 11 at 19:02
I've managed myself to align that text. Thank you for your help.
– user2925716
Feb 11 at 20:00
@user2925716 you're welcome!
– Hafid Boukhoulda
Feb 11 at 20:08
|
show 2 more comments
Updated
Text left aligned
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align}
&text{It is clearer if you define} &q_i &= p_i cdot f_i cdot overline{f}_i\
&text{This is how it should be} & p cdot f &= p cdot b_i cdot f_i\
&text{then} &&= d^*_i cdot p_i cdot f_i qquad text{(by neutrality)}
end{align}
end{document}

Text right aligned
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align}
text{It is clearer if you define}& &q_i &= p_i cdot f_i cdot overline{f}_i\
text{This is how it should be}& & p cdot f &= p cdot b_i cdot f_i\
text{then} &&&= d^*_i cdot p_i cdot f_i qquad text{(by neutrality)}
end{align}
end{document}

Updated
Text left aligned
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align}
&text{It is clearer if you define} &q_i &= p_i cdot f_i cdot overline{f}_i\
&text{This is how it should be} & p cdot f &= p cdot b_i cdot f_i\
&text{then} &&= d^*_i cdot p_i cdot f_i qquad text{(by neutrality)}
end{align}
end{document}

Text right aligned
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align}
text{It is clearer if you define}& &q_i &= p_i cdot f_i cdot overline{f}_i\
text{This is how it should be}& & p cdot f &= p cdot b_i cdot f_i\
text{then} &&&= d^*_i cdot p_i cdot f_i qquad text{(by neutrality)}
end{align}
end{document}

edited Feb 11 at 21:27
answered Feb 11 at 17:53
Hafid BoukhouldaHafid Boukhoulda
3,6051621
3,6051621
WHat is wrong with this: begin{align} $p cdot f &= p cdot b_i cdot f_i text{(since)} f = b_i cdot f_i$\ $&= d^*_i cdot p_i cdot f_i text{(by naturality)}$\
– user2925716
Feb 11 at 18:10
@user2925716 remove all the $
– Hafid Boukhoulda
Feb 11 at 18:12
Align already starts display math mode. $ is for inline math.
– JPi
Feb 11 at 19:02
I've managed myself to align that text. Thank you for your help.
– user2925716
Feb 11 at 20:00
@user2925716 you're welcome!
– Hafid Boukhoulda
Feb 11 at 20:08
|
show 2 more comments
WHat is wrong with this: begin{align} $p cdot f &= p cdot b_i cdot f_i text{(since)} f = b_i cdot f_i$\ $&= d^*_i cdot p_i cdot f_i text{(by naturality)}$\
– user2925716
Feb 11 at 18:10
@user2925716 remove all the $
– Hafid Boukhoulda
Feb 11 at 18:12
Align already starts display math mode. $ is for inline math.
– JPi
Feb 11 at 19:02
I've managed myself to align that text. Thank you for your help.
– user2925716
Feb 11 at 20:00
@user2925716 you're welcome!
– Hafid Boukhoulda
Feb 11 at 20:08
WHat is wrong with this: begin{align} $p cdot f &= p cdot b_i cdot f_i text{(since)} f = b_i cdot f_i$\ $&= d^*_i cdot p_i cdot f_i text{(by naturality)}$\
– user2925716
Feb 11 at 18:10
WHat is wrong with this: begin{align} $p cdot f &= p cdot b_i cdot f_i text{(since)} f = b_i cdot f_i$\ $&= d^*_i cdot p_i cdot f_i text{(by naturality)}$\
– user2925716
Feb 11 at 18:10
@user2925716 remove all the $
– Hafid Boukhoulda
Feb 11 at 18:12
@user2925716 remove all the $
– Hafid Boukhoulda
Feb 11 at 18:12
Align already starts display math mode. $ is for inline math.
– JPi
Feb 11 at 19:02
Align already starts display math mode. $ is for inline math.
– JPi
Feb 11 at 19:02
I've managed myself to align that text. Thank you for your help.
– user2925716
Feb 11 at 20:00
I've managed myself to align that text. Thank you for your help.
– user2925716
Feb 11 at 20:00
@user2925716 you're welcome!
– Hafid Boukhoulda
Feb 11 at 20:08
@user2925716 you're welcome!
– Hafid Boukhoulda
Feb 11 at 20:08
|
show 2 more comments
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%2f474385%2faligning-equalities-one-below-the-other%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
alignenvironment fromamsmathpackage– Hafid Boukhoulda
Feb 11 at 17:47
How do I begin and end the align enviroment? "begin{align}" has failed.
– user2925716
Feb 11 at 17:50