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:



enter image description here



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:



enter image description here



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










share|improve this question
























  • I added a MWE @CarLaTeX
    – ecjb
    Nov 18 at 9:40

















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:



enter image description here



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:



enter image description here



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










share|improve this question
























  • I added a MWE @CarLaTeX
    – ecjb
    Nov 18 at 9:40















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:



enter image description here



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:



enter image description here



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










share|improve this question















How to write 2 x 2 rows equation on a single line separated by a text in the middle of the form:



enter image description here



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:



enter image description here



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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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




















  • 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












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}


enter image description here






share|improve this answer



















  • 2




    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






  • 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












  • @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


















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.



enter image description here



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}





share|improve this answer




























    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}


    enter image description here



    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}


    enter image description here






    share|improve this answer






























      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}


      enter image description here



      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



      enter image description here






      share|improve this answer





















      • {_n} must be corrected as {-n}.
        – Artificial Stupidity
        Nov 18 at 17:29











      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
      });


      }
      });














       

      draft saved


      draft discarded


















      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








      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}


      enter image description here






      share|improve this answer



















      • 2




        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






      • 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












      • @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















      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}


      enter image description here






      share|improve this answer



















      • 2




        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






      • 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












      • @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













      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}


      enter image description here






      share|improve this answer














      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}


      enter image description here







      share|improve this answer














      share|improve this answer



      share|improve this answer








      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 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






      • 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












      • @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




        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






      • 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












      • @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










      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.



      enter image description here



      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}





      share|improve this answer

























        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.



        enter image description here



        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}





        share|improve this answer























          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.



          enter image description here



          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}





          share|improve this answer












          Here's a version of @DüngVü's answer that applies the correct amount of whitespace around the four = symbols.



          enter image description here



          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}






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 18 at 11:56









          Mico

          270k30367752




          270k30367752






















              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}


              enter image description here



              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}


              enter image description here






              share|improve this answer



























                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}


                enter image description here



                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}


                enter image description here






                share|improve this answer

























                  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}


                  enter image description here



                  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}


                  enter image description here






                  share|improve this answer














                  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}


                  enter image description here



                  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}


                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 18 at 17:34

























                  answered Nov 18 at 11:13









                  Artificial Stupidity

                  4,8711833




                  4,8711833






















                      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}


                      enter image description here



                      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



                      enter image description here






                      share|improve this answer





















                      • {_n} must be corrected as {-n}.
                        – Artificial Stupidity
                        Nov 18 at 17:29















                      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}


                      enter image description here



                      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



                      enter image description here






                      share|improve this answer





















                      • {_n} must be corrected as {-n}.
                        – Artificial Stupidity
                        Nov 18 at 17:29













                      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}


                      enter image description here



                      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



                      enter image description here






                      share|improve this answer












                      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}


                      enter image description here



                      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



                      enter image description here







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Nov 18 at 17:12









                      egreg

                      700k8518623136




                      700k8518623136












                      • {_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




                      {_n} must be corrected as {-n}.
                      – Artificial Stupidity
                      Nov 18 at 17:29


















                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                      Alcedinidae

                      Origin of the phrase “under your belt”?