2 x 2 lines equation on a single line separated by a text in the middle
up vote
3
down vote
favorite
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 |
up vote
3
down vote
favorite
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 |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
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
694
694
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
up vote
4
down vote
accepted
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?
– Artificial Stupidity
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!
– Dũng Vũ
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.
– Dũng Vũ
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
up vote
6
down vote
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 |
up vote
6
down vote
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 |
up vote
3
down vote
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}
.
– Artificial Stupidity
Nov 18 at 17:29
add a comment |
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
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?
– Artificial Stupidity
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!
– Dũng Vũ
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.
– Dũng Vũ
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
up vote
4
down vote
accepted
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?
– Artificial Stupidity
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!
– Dũng Vũ
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.
– Dũng Vũ
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
up vote
4
down vote
accepted
up vote
4
down vote
accepted
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
Dũng Vũ
1,12720
1,12720
2
If there is only one line, what is the purpose of usingalign
here?
– Artificial Stupidity
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!
– Dũng Vũ
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.
– Dũng Vũ
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?
– Artificial Stupidity
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!
– Dũng Vũ
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.
– Dũng Vũ
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?– Artificial Stupidity
Nov 18 at 11:06
If there is only one line, what is the purpose of using
align
here?– Artificial Stupidity
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!– Dũng Vũ
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!– Dũng Vũ
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.– Dũng Vũ
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.– Dũng Vũ
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
up vote
6
down vote
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 |
up vote
6
down vote
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 |
up vote
6
down vote
up vote
6
down vote
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
270k30367752
270k30367752
add a comment |
add a comment |
up vote
6
down vote
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 |
up vote
6
down vote
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 |
up vote
6
down vote
up vote
6
down vote
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
Artificial Stupidity
4,8711833
4,8711833
add a comment |
add a comment |
up vote
3
down vote
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}
.
– Artificial Stupidity
Nov 18 at 17:29
add a comment |
up vote
3
down vote
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}
.
– Artificial Stupidity
Nov 18 at 17:29
add a comment |
up vote
3
down vote
up vote
3
down vote
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
700k8518623136
700k8518623136
{_n}
must be corrected as{-n}
.
– Artificial Stupidity
Nov 18 at 17:29
add a comment |
{_n}
must be corrected as{-n}
.
– Artificial Stupidity
Nov 18 at 17:29
{_n}
must be corrected as {-n}
.– Artificial Stupidity
Nov 18 at 17:29
{_n}
must be corrected as {-n}
.– Artificial Stupidity
Nov 18 at 17:29
add a comment |
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