2 x 2 lines equation on a single line separated by a text in the middle
How to write 2 x 2 rows equation on a single line separated by a text in the middle of the form:
The picture example is the result that I want to reproduce and can't (which I found in a textbook)
An imperfect try to reproduce the output would be:
begin{flalign*}
a_n &= c_n + c_{-n} && && c_n &= frac{1}{2} (a_n - ib_n)\
&& text{or} && \
b_n &= i(c_n - c_{-n}) && && c{_n} &= frac{1}{2} (a_n + ib_n)
end{flalign*}
with the following rendering:
However:
- the
or
separating the two sides takes an entire row (instead of sitting on the half row between the 2 row equations) - the 2 row equation of the right is put way to far on the right
equations subequations
add a comment |
How to write 2 x 2 rows equation on a single line separated by a text in the middle of the form:
The picture example is the result that I want to reproduce and can't (which I found in a textbook)
An imperfect try to reproduce the output would be:
begin{flalign*}
a_n &= c_n + c_{-n} && && c_n &= frac{1}{2} (a_n - ib_n)\
&& text{or} && \
b_n &= i(c_n - c_{-n}) && && c{_n} &= frac{1}{2} (a_n + ib_n)
end{flalign*}
with the following rendering:
However:
- the
or
separating the two sides takes an entire row (instead of sitting on the half row between the 2 row equations) - the 2 row equation of the right is put way to far on the right
equations subequations
I added a MWE @CarLaTeX
– ecjb
Nov 18 at 9:40
add a comment |
How to write 2 x 2 rows equation on a single line separated by a text in the middle of the form:
The picture example is the result that I want to reproduce and can't (which I found in a textbook)
An imperfect try to reproduce the output would be:
begin{flalign*}
a_n &= c_n + c_{-n} && && c_n &= frac{1}{2} (a_n - ib_n)\
&& text{or} && \
b_n &= i(c_n - c_{-n}) && && c{_n} &= frac{1}{2} (a_n + ib_n)
end{flalign*}
with the following rendering:
However:
- the
or
separating the two sides takes an entire row (instead of sitting on the half row between the 2 row equations) - the 2 row equation of the right is put way to far on the right
equations subequations
How to write 2 x 2 rows equation on a single line separated by a text in the middle of the form:
The picture example is the result that I want to reproduce and can't (which I found in a textbook)
An imperfect try to reproduce the output would be:
begin{flalign*}
a_n &= c_n + c_{-n} && && c_n &= frac{1}{2} (a_n - ib_n)\
&& text{or} && \
b_n &= i(c_n - c_{-n}) && && c{_n} &= frac{1}{2} (a_n + ib_n)
end{flalign*}
with the following rendering:
However:
- the
or
separating the two sides takes an entire row (instead of sitting on the half row between the 2 row equations) - the 2 row equation of the right is put way to far on the right
equations subequations
equations subequations
edited Nov 18 at 9:37
asked Nov 18 at 9:25
ecjb
1156
1156
I added a MWE @CarLaTeX
– ecjb
Nov 18 at 9:40
add a comment |
I added a MWE @CarLaTeX
– ecjb
Nov 18 at 9:40
I added a MWE @CarLaTeX
– ecjb
Nov 18 at 9:40
I added a MWE @CarLaTeX
– ecjb
Nov 18 at 9:40
add a comment |
4 Answers
4
active
oldest
votes
As Mico advised in the comments that the spacing is not good, I edited my answer. Thanks Mico!
documentclass{article}
usepackage{amsmath}
begin{document}
[
begin{array}{rcl}
a_n & = & c_n+c_{-n}\[1ex]
b_n & = & i(c_n-c_{-n})
end{array} qquad text{or} qquad
begin{array}{rcl}
c_n & = & frac{1}{2}(a_n-ib_n)\[1ex]
c_{-n}&=& frac{1}{2}(a_n+ib_n)
end{array}.
]
end{document}
2
If there is only one line, what is the purpose of usingalign
here?
– God Must Be Crazy
Nov 18 at 11:06
The horizontal spacing around the four=
symbols is too loose with this solution.
– Mico
Nov 18 at 11:51
1
@ArtificialStupidity Actually I triedbegin{align*} Hello & text{or} & Hello end{align*}
at first. But it failed. I changed to this one and forget changingbeginend{align*}
to something like[]
. Thanks for your feedback!
– JouleV
Nov 18 at 12:53
@Mico You know, one can always change the spacing between lines by\[1ex]
, for example. Thanks for your feedback! I will edit my answer now.
– JouleV
Nov 18 at 12:54
1
My earlier comment was meant to address the horizontal spacing around the=
symbols. The vertical distance between the rows is a separate matter.
– Mico
Nov 18 at 13:06
|
show 4 more comments
Here's a version of @DüngVü's answer that applies the correct amount of whitespace around the four =
symbols.
documentclass{article}
usepackage{array} % for "newcolumntype" macro
newcolumntype{C}{>{{}}c<{{}}}
begin{document}
[
setlengtharraycolsep{0pt}
begin{array}{rCl}
a_n & = & c_n+c_{-n} \[1ex]
b_n & = & i(c_n-c_{-n})
end{array}
qquad mbox{or} qquad
begin{array}{rCl}
c_n & = & frac{1}{2}(a_n-ib_n) \[1ex]
c_{-n}& = & frac{1}{2}(a_n+ib_n)
end{array}
]
end{document}
add a comment |
documentclass[preview,border=12pt,varwidth]{standalone}
usepackage{amsmath}
begin{document}
[
begin{aligned}
a_n &= c_n + c_{-n}\
b_n &= i(c_n - c_{-n})
end{aligned}
qquad
text{or}
qquad
begin{aligned}
c_n &= frac{a_n-ib_n}{2}\
c_{-n} &= frac{a_n+ib_n}{2}
end{aligned}
]
Is it what you are looking for?
end{document}
My proposal
documentclass[preview,border=12pt]{standalone}
usepackage[a6paper,landscape,margin=2cm]{geometry}
usepackage{mathtools}
begin{document}
I prefer the following style because it is clearer what we are grouping, how about you?
[
left{
begin{aligned}
a_n &= c_n + c_{-n}\
b_n &= i(c_n - c_{-n})
end{aligned}right.
qquad
text{or}
qquad
left{
begin{aligned}
c_n &= tfrac12(a_n-ib_n)\
c_{-n} &= tfrac12(a_n+ib_n)
end{aligned}right.
]
end{document}
add a comment |
I wouldn't use flalign*
that spreads out the equations too much.
documentclass{article}
usepackage{amsmath,mathtools}
begin{document}
begin{flalign*}
a_n &= c_n + c_{-n} & c_n &= frac{1}{2} (a_n - ib_n)\
shortintertext{centering or}
b_n &= i(c_n - c_{-n}) & c{_n} &= frac{1}{2} (a_n + ib_n)
end{flalign*}
begin{alignat*}{2}
a_n &= c_n + c_{-n} &hspace{5em} c_n &= frac{1}{2} (a_n - ib_n)\
shortintertext{centering or}
b_n &= i(c_n - c_{-n}) & c{_n} &= frac{1}{2} (a_n + ib_n)
end{alignat*}
end{document}
On the other hand, it is not really clear what “or” refers to; I'd suggest placing “or” at the left margin. Just remove centering
from the second example to get
{_n}
must be corrected as{-n}
.
– God Must Be Crazy
Nov 18 at 17:29
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%2f460561%2f2-x-2-lines-equation-on-a-single-line-separated-by-a-text-in-the-middle%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
As Mico advised in the comments that the spacing is not good, I edited my answer. Thanks Mico!
documentclass{article}
usepackage{amsmath}
begin{document}
[
begin{array}{rcl}
a_n & = & c_n+c_{-n}\[1ex]
b_n & = & i(c_n-c_{-n})
end{array} qquad text{or} qquad
begin{array}{rcl}
c_n & = & frac{1}{2}(a_n-ib_n)\[1ex]
c_{-n}&=& frac{1}{2}(a_n+ib_n)
end{array}.
]
end{document}
2
If there is only one line, what is the purpose of usingalign
here?
– God Must Be Crazy
Nov 18 at 11:06
The horizontal spacing around the four=
symbols is too loose with this solution.
– Mico
Nov 18 at 11:51
1
@ArtificialStupidity Actually I triedbegin{align*} Hello & text{or} & Hello end{align*}
at first. But it failed. I changed to this one and forget changingbeginend{align*}
to something like[]
. Thanks for your feedback!
– JouleV
Nov 18 at 12:53
@Mico You know, one can always change the spacing between lines by\[1ex]
, for example. Thanks for your feedback! I will edit my answer now.
– JouleV
Nov 18 at 12:54
1
My earlier comment was meant to address the horizontal spacing around the=
symbols. The vertical distance between the rows is a separate matter.
– Mico
Nov 18 at 13:06
|
show 4 more comments
As Mico advised in the comments that the spacing is not good, I edited my answer. Thanks Mico!
documentclass{article}
usepackage{amsmath}
begin{document}
[
begin{array}{rcl}
a_n & = & c_n+c_{-n}\[1ex]
b_n & = & i(c_n-c_{-n})
end{array} qquad text{or} qquad
begin{array}{rcl}
c_n & = & frac{1}{2}(a_n-ib_n)\[1ex]
c_{-n}&=& frac{1}{2}(a_n+ib_n)
end{array}.
]
end{document}
2
If there is only one line, what is the purpose of usingalign
here?
– God Must Be Crazy
Nov 18 at 11:06
The horizontal spacing around the four=
symbols is too loose with this solution.
– Mico
Nov 18 at 11:51
1
@ArtificialStupidity Actually I triedbegin{align*} Hello & text{or} & Hello end{align*}
at first. But it failed. I changed to this one and forget changingbeginend{align*}
to something like[]
. Thanks for your feedback!
– JouleV
Nov 18 at 12:53
@Mico You know, one can always change the spacing between lines by\[1ex]
, for example. Thanks for your feedback! I will edit my answer now.
– JouleV
Nov 18 at 12:54
1
My earlier comment was meant to address the horizontal spacing around the=
symbols. The vertical distance between the rows is a separate matter.
– Mico
Nov 18 at 13:06
|
show 4 more comments
As Mico advised in the comments that the spacing is not good, I edited my answer. Thanks Mico!
documentclass{article}
usepackage{amsmath}
begin{document}
[
begin{array}{rcl}
a_n & = & c_n+c_{-n}\[1ex]
b_n & = & i(c_n-c_{-n})
end{array} qquad text{or} qquad
begin{array}{rcl}
c_n & = & frac{1}{2}(a_n-ib_n)\[1ex]
c_{-n}&=& frac{1}{2}(a_n+ib_n)
end{array}.
]
end{document}
As Mico advised in the comments that the spacing is not good, I edited my answer. Thanks Mico!
documentclass{article}
usepackage{amsmath}
begin{document}
[
begin{array}{rcl}
a_n & = & c_n+c_{-n}\[1ex]
b_n & = & i(c_n-c_{-n})
end{array} qquad text{or} qquad
begin{array}{rcl}
c_n & = & frac{1}{2}(a_n-ib_n)\[1ex]
c_{-n}&=& frac{1}{2}(a_n+ib_n)
end{array}.
]
end{document}
edited Nov 18 at 12:56
answered Nov 18 at 9:57
JouleV
1,976425
1,976425
2
If there is only one line, what is the purpose of usingalign
here?
– God Must Be Crazy
Nov 18 at 11:06
The horizontal spacing around the four=
symbols is too loose with this solution.
– Mico
Nov 18 at 11:51
1
@ArtificialStupidity Actually I triedbegin{align*} Hello & text{or} & Hello end{align*}
at first. But it failed. I changed to this one and forget changingbeginend{align*}
to something like[]
. Thanks for your feedback!
– JouleV
Nov 18 at 12:53
@Mico You know, one can always change the spacing between lines by\[1ex]
, for example. Thanks for your feedback! I will edit my answer now.
– JouleV
Nov 18 at 12:54
1
My earlier comment was meant to address the horizontal spacing around the=
symbols. The vertical distance between the rows is a separate matter.
– Mico
Nov 18 at 13:06
|
show 4 more comments
2
If there is only one line, what is the purpose of usingalign
here?
– God Must Be Crazy
Nov 18 at 11:06
The horizontal spacing around the four=
symbols is too loose with this solution.
– Mico
Nov 18 at 11:51
1
@ArtificialStupidity Actually I triedbegin{align*} Hello & text{or} & Hello end{align*}
at first. But it failed. I changed to this one and forget changingbeginend{align*}
to something like[]
. Thanks for your feedback!
– JouleV
Nov 18 at 12:53
@Mico You know, one can always change the spacing between lines by\[1ex]
, for example. Thanks for your feedback! I will edit my answer now.
– JouleV
Nov 18 at 12:54
1
My earlier comment was meant to address the horizontal spacing around the=
symbols. The vertical distance between the rows is a separate matter.
– Mico
Nov 18 at 13:06
2
2
If there is only one line, what is the purpose of using
align
here?– God Must Be Crazy
Nov 18 at 11:06
If there is only one line, what is the purpose of using
align
here?– God Must Be Crazy
Nov 18 at 11:06
The horizontal spacing around the four
=
symbols is too loose with this solution.– Mico
Nov 18 at 11:51
The horizontal spacing around the four
=
symbols is too loose with this solution.– Mico
Nov 18 at 11:51
1
1
@ArtificialStupidity Actually I tried
begin{align*} Hello & text{or} & Hello end{align*}
at first. But it failed. I changed to this one and forget changing beginend{align*}
to something like []
. Thanks for your feedback!– JouleV
Nov 18 at 12:53
@ArtificialStupidity Actually I tried
begin{align*} Hello & text{or} & Hello end{align*}
at first. But it failed. I changed to this one and forget changing beginend{align*}
to something like []
. Thanks for your feedback!– JouleV
Nov 18 at 12:53
@Mico You know, one can always change the spacing between lines by
\[1ex]
, for example. Thanks for your feedback! I will edit my answer now.– JouleV
Nov 18 at 12:54
@Mico You know, one can always change the spacing between lines by
\[1ex]
, for example. Thanks for your feedback! I will edit my answer now.– JouleV
Nov 18 at 12:54
1
1
My earlier comment was meant to address the horizontal spacing around the
=
symbols. The vertical distance between the rows is a separate matter.– Mico
Nov 18 at 13:06
My earlier comment was meant to address the horizontal spacing around the
=
symbols. The vertical distance between the rows is a separate matter.– Mico
Nov 18 at 13:06
|
show 4 more comments
Here's a version of @DüngVü's answer that applies the correct amount of whitespace around the four =
symbols.
documentclass{article}
usepackage{array} % for "newcolumntype" macro
newcolumntype{C}{>{{}}c<{{}}}
begin{document}
[
setlengtharraycolsep{0pt}
begin{array}{rCl}
a_n & = & c_n+c_{-n} \[1ex]
b_n & = & i(c_n-c_{-n})
end{array}
qquad mbox{or} qquad
begin{array}{rCl}
c_n & = & frac{1}{2}(a_n-ib_n) \[1ex]
c_{-n}& = & frac{1}{2}(a_n+ib_n)
end{array}
]
end{document}
add a comment |
Here's a version of @DüngVü's answer that applies the correct amount of whitespace around the four =
symbols.
documentclass{article}
usepackage{array} % for "newcolumntype" macro
newcolumntype{C}{>{{}}c<{{}}}
begin{document}
[
setlengtharraycolsep{0pt}
begin{array}{rCl}
a_n & = & c_n+c_{-n} \[1ex]
b_n & = & i(c_n-c_{-n})
end{array}
qquad mbox{or} qquad
begin{array}{rCl}
c_n & = & frac{1}{2}(a_n-ib_n) \[1ex]
c_{-n}& = & frac{1}{2}(a_n+ib_n)
end{array}
]
end{document}
add a comment |
Here's a version of @DüngVü's answer that applies the correct amount of whitespace around the four =
symbols.
documentclass{article}
usepackage{array} % for "newcolumntype" macro
newcolumntype{C}{>{{}}c<{{}}}
begin{document}
[
setlengtharraycolsep{0pt}
begin{array}{rCl}
a_n & = & c_n+c_{-n} \[1ex]
b_n & = & i(c_n-c_{-n})
end{array}
qquad mbox{or} qquad
begin{array}{rCl}
c_n & = & frac{1}{2}(a_n-ib_n) \[1ex]
c_{-n}& = & frac{1}{2}(a_n+ib_n)
end{array}
]
end{document}
Here's a version of @DüngVü's answer that applies the correct amount of whitespace around the four =
symbols.
documentclass{article}
usepackage{array} % for "newcolumntype" macro
newcolumntype{C}{>{{}}c<{{}}}
begin{document}
[
setlengtharraycolsep{0pt}
begin{array}{rCl}
a_n & = & c_n+c_{-n} \[1ex]
b_n & = & i(c_n-c_{-n})
end{array}
qquad mbox{or} qquad
begin{array}{rCl}
c_n & = & frac{1}{2}(a_n-ib_n) \[1ex]
c_{-n}& = & frac{1}{2}(a_n+ib_n)
end{array}
]
end{document}
answered Nov 18 at 11:56
Mico
273k30369756
273k30369756
add a comment |
add a comment |
documentclass[preview,border=12pt,varwidth]{standalone}
usepackage{amsmath}
begin{document}
[
begin{aligned}
a_n &= c_n + c_{-n}\
b_n &= i(c_n - c_{-n})
end{aligned}
qquad
text{or}
qquad
begin{aligned}
c_n &= frac{a_n-ib_n}{2}\
c_{-n} &= frac{a_n+ib_n}{2}
end{aligned}
]
Is it what you are looking for?
end{document}
My proposal
documentclass[preview,border=12pt]{standalone}
usepackage[a6paper,landscape,margin=2cm]{geometry}
usepackage{mathtools}
begin{document}
I prefer the following style because it is clearer what we are grouping, how about you?
[
left{
begin{aligned}
a_n &= c_n + c_{-n}\
b_n &= i(c_n - c_{-n})
end{aligned}right.
qquad
text{or}
qquad
left{
begin{aligned}
c_n &= tfrac12(a_n-ib_n)\
c_{-n} &= tfrac12(a_n+ib_n)
end{aligned}right.
]
end{document}
add a comment |
documentclass[preview,border=12pt,varwidth]{standalone}
usepackage{amsmath}
begin{document}
[
begin{aligned}
a_n &= c_n + c_{-n}\
b_n &= i(c_n - c_{-n})
end{aligned}
qquad
text{or}
qquad
begin{aligned}
c_n &= frac{a_n-ib_n}{2}\
c_{-n} &= frac{a_n+ib_n}{2}
end{aligned}
]
Is it what you are looking for?
end{document}
My proposal
documentclass[preview,border=12pt]{standalone}
usepackage[a6paper,landscape,margin=2cm]{geometry}
usepackage{mathtools}
begin{document}
I prefer the following style because it is clearer what we are grouping, how about you?
[
left{
begin{aligned}
a_n &= c_n + c_{-n}\
b_n &= i(c_n - c_{-n})
end{aligned}right.
qquad
text{or}
qquad
left{
begin{aligned}
c_n &= tfrac12(a_n-ib_n)\
c_{-n} &= tfrac12(a_n+ib_n)
end{aligned}right.
]
end{document}
add a comment |
documentclass[preview,border=12pt,varwidth]{standalone}
usepackage{amsmath}
begin{document}
[
begin{aligned}
a_n &= c_n + c_{-n}\
b_n &= i(c_n - c_{-n})
end{aligned}
qquad
text{or}
qquad
begin{aligned}
c_n &= frac{a_n-ib_n}{2}\
c_{-n} &= frac{a_n+ib_n}{2}
end{aligned}
]
Is it what you are looking for?
end{document}
My proposal
documentclass[preview,border=12pt]{standalone}
usepackage[a6paper,landscape,margin=2cm]{geometry}
usepackage{mathtools}
begin{document}
I prefer the following style because it is clearer what we are grouping, how about you?
[
left{
begin{aligned}
a_n &= c_n + c_{-n}\
b_n &= i(c_n - c_{-n})
end{aligned}right.
qquad
text{or}
qquad
left{
begin{aligned}
c_n &= tfrac12(a_n-ib_n)\
c_{-n} &= tfrac12(a_n+ib_n)
end{aligned}right.
]
end{document}
documentclass[preview,border=12pt,varwidth]{standalone}
usepackage{amsmath}
begin{document}
[
begin{aligned}
a_n &= c_n + c_{-n}\
b_n &= i(c_n - c_{-n})
end{aligned}
qquad
text{or}
qquad
begin{aligned}
c_n &= frac{a_n-ib_n}{2}\
c_{-n} &= frac{a_n+ib_n}{2}
end{aligned}
]
Is it what you are looking for?
end{document}
My proposal
documentclass[preview,border=12pt]{standalone}
usepackage[a6paper,landscape,margin=2cm]{geometry}
usepackage{mathtools}
begin{document}
I prefer the following style because it is clearer what we are grouping, how about you?
[
left{
begin{aligned}
a_n &= c_n + c_{-n}\
b_n &= i(c_n - c_{-n})
end{aligned}right.
qquad
text{or}
qquad
left{
begin{aligned}
c_n &= tfrac12(a_n-ib_n)\
c_{-n} &= tfrac12(a_n+ib_n)
end{aligned}right.
]
end{document}
edited Nov 18 at 17:34
answered Nov 18 at 11:13
God Must Be Crazy
5,60511039
5,60511039
add a comment |
add a comment |
I wouldn't use flalign*
that spreads out the equations too much.
documentclass{article}
usepackage{amsmath,mathtools}
begin{document}
begin{flalign*}
a_n &= c_n + c_{-n} & c_n &= frac{1}{2} (a_n - ib_n)\
shortintertext{centering or}
b_n &= i(c_n - c_{-n}) & c{_n} &= frac{1}{2} (a_n + ib_n)
end{flalign*}
begin{alignat*}{2}
a_n &= c_n + c_{-n} &hspace{5em} c_n &= frac{1}{2} (a_n - ib_n)\
shortintertext{centering or}
b_n &= i(c_n - c_{-n}) & c{_n} &= frac{1}{2} (a_n + ib_n)
end{alignat*}
end{document}
On the other hand, it is not really clear what “or” refers to; I'd suggest placing “or” at the left margin. Just remove centering
from the second example to get
{_n}
must be corrected as{-n}
.
– God Must Be Crazy
Nov 18 at 17:29
add a comment |
I wouldn't use flalign*
that spreads out the equations too much.
documentclass{article}
usepackage{amsmath,mathtools}
begin{document}
begin{flalign*}
a_n &= c_n + c_{-n} & c_n &= frac{1}{2} (a_n - ib_n)\
shortintertext{centering or}
b_n &= i(c_n - c_{-n}) & c{_n} &= frac{1}{2} (a_n + ib_n)
end{flalign*}
begin{alignat*}{2}
a_n &= c_n + c_{-n} &hspace{5em} c_n &= frac{1}{2} (a_n - ib_n)\
shortintertext{centering or}
b_n &= i(c_n - c_{-n}) & c{_n} &= frac{1}{2} (a_n + ib_n)
end{alignat*}
end{document}
On the other hand, it is not really clear what “or” refers to; I'd suggest placing “or” at the left margin. Just remove centering
from the second example to get
{_n}
must be corrected as{-n}
.
– God Must Be Crazy
Nov 18 at 17:29
add a comment |
I wouldn't use flalign*
that spreads out the equations too much.
documentclass{article}
usepackage{amsmath,mathtools}
begin{document}
begin{flalign*}
a_n &= c_n + c_{-n} & c_n &= frac{1}{2} (a_n - ib_n)\
shortintertext{centering or}
b_n &= i(c_n - c_{-n}) & c{_n} &= frac{1}{2} (a_n + ib_n)
end{flalign*}
begin{alignat*}{2}
a_n &= c_n + c_{-n} &hspace{5em} c_n &= frac{1}{2} (a_n - ib_n)\
shortintertext{centering or}
b_n &= i(c_n - c_{-n}) & c{_n} &= frac{1}{2} (a_n + ib_n)
end{alignat*}
end{document}
On the other hand, it is not really clear what “or” refers to; I'd suggest placing “or” at the left margin. Just remove centering
from the second example to get
I wouldn't use flalign*
that spreads out the equations too much.
documentclass{article}
usepackage{amsmath,mathtools}
begin{document}
begin{flalign*}
a_n &= c_n + c_{-n} & c_n &= frac{1}{2} (a_n - ib_n)\
shortintertext{centering or}
b_n &= i(c_n - c_{-n}) & c{_n} &= frac{1}{2} (a_n + ib_n)
end{flalign*}
begin{alignat*}{2}
a_n &= c_n + c_{-n} &hspace{5em} c_n &= frac{1}{2} (a_n - ib_n)\
shortintertext{centering or}
b_n &= i(c_n - c_{-n}) & c{_n} &= frac{1}{2} (a_n + ib_n)
end{alignat*}
end{document}
On the other hand, it is not really clear what “or” refers to; I'd suggest placing “or” at the left margin. Just remove centering
from the second example to get
answered Nov 18 at 17:12
egreg
708k8618823164
708k8618823164
{_n}
must be corrected as{-n}
.
– God Must Be Crazy
Nov 18 at 17:29
add a comment |
{_n}
must be corrected as{-n}
.
– God Must Be Crazy
Nov 18 at 17:29
{_n}
must be corrected as {-n}
.– God Must Be Crazy
Nov 18 at 17:29
{_n}
must be corrected as {-n}
.– God Must Be Crazy
Nov 18 at 17:29
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%2f460561%2f2-x-2-lines-equation-on-a-single-line-separated-by-a-text-in-the-middle%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
I added a MWE @CarLaTeX
– ecjb
Nov 18 at 9:40