2 x 2 lines equation on a single line separated by a text in the middle












3














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


















3














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
















3












3








3


0





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

1156




1156












  • 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


















4














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






  • 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



















6














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





























    6














    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































      3














      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}.
        – God Must Be Crazy
        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',
      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
      });


      }
      });














      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









      4














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






      • 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
















      4














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






      • 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














      4












      4








      4






      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









      JouleV

      1,976425




      1,976425








      • 2




        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






      • 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












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




        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






      • 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












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











      6














      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


























        6














        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
























          6












          6








          6






          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

          273k30369756




          273k30369756























              6














              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




























                6














                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


























                  6












                  6








                  6






                  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









                  God Must Be Crazy

                  5,60511039




                  5,60511039























                      3














                      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}.
                        – God Must Be Crazy
                        Nov 18 at 17:29
















                      3














                      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}.
                        – God Must Be Crazy
                        Nov 18 at 17:29














                      3












                      3








                      3






                      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

                      708k8618823164




                      708k8618823164












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




                      {_n} must be corrected as {-n}.
                      – God Must Be Crazy
                      Nov 18 at 17:29


















                      draft saved

                      draft discarded




















































                      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.




                      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

                      AnyDesk - Fatal Program Failure

                      How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

                      QoS: MAC-Priority for clients behind a repeater