Alignment of six matrices












5















I'm currently facing a problem with the align environment. I'd like to write six matrices in two rows, aligned on each equal sign per column. The problem is that I can't figure out how to do this with the align environment for some reason. I've read the related posts here and here, where [1] seems to be a bit of an overkill for my problem and [2] doesn't work for some reason...



An MWE to the problem:



documentclass{article}
usepackage[margin=2.5cm]{geometry}
usepackage{amssymb, amsthm, mathtools}
begin{document}
begin{align*}
I _ { 1 } &=
begin{pmatrix}
{ 0 } & { 0 } & { 0 } & { 0 } \
{ 0 } & { 0 } & { 0 } & { 0 } \
{ 0 } & { 0 } & { 0 } & { 1 } \
{ 0 } & { 0 } & { - 1 } & { 0 }
end{pmatrix},
I _ { 2 } &&=
begin{pmatrix}
{ 0 } & { 0 } & { 0 } & { 0 } \
{ 0 } & { 0 } & { 0 } & { 1 } \
{ 0 } & { 0 } & { 0 } & { 0 } \
{ 0 } & { -1} & { 0 } & { 0 }
end{pmatrix},
I _ { 3 } &&=
begin{pmatrix}
{ 0 } & { 0 } & { 0 } & { 0 } \
{ 0 } & { 0 } & { 1 } & { 0 } \
{ 0 } & { -1 } & { 0 } & { 0 } \
{ 0 } & { 0 } & { 0 } & { 0 }
end{pmatrix}, \
J _ { 1 } &=
begin{pmatrix}
{ 0 } & { -1} & { 0 } & { 0 } \
{ -1} & { 0 } & { 0 } & { 0 } \
{ 0 } & { 0 } & { 0 } & { 0 } \
{ 0 } & { 0 } & { 0 } & { 0 }
end{pmatrix},
J _ { 2 } &&=
begin{pmatrix}
{ 0 } & { 0 } & { -1} & { 0 } \
{ 0 } & { 0 } & { 0 } & { 0 } \
{ -1} & { 0 } & { 0 } & { 0 } \
{ 0 } & { 0 } & { 0 } & { 0 }
end{pmatrix},
J _ { 3 } &&=
begin{pmatrix}
{ 0 } & { 0 } & { 0 } & { - 1 } \
{ 0 } & { 0 } & { 0 } & { 0 } \
{ 0 } & { 0 } & { 0 } & { 0 } \
{ - 1 } & { 0 } & { 0 } & { 0 }
end{pmatrix}.
end{align*}
end{document}


Note: I'm aware that most of the {} are useless here but the matrices were generated by Mathpix....










share|improve this question









New contributor




Marius Jaeger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    5















    I'm currently facing a problem with the align environment. I'd like to write six matrices in two rows, aligned on each equal sign per column. The problem is that I can't figure out how to do this with the align environment for some reason. I've read the related posts here and here, where [1] seems to be a bit of an overkill for my problem and [2] doesn't work for some reason...



    An MWE to the problem:



    documentclass{article}
    usepackage[margin=2.5cm]{geometry}
    usepackage{amssymb, amsthm, mathtools}
    begin{document}
    begin{align*}
    I _ { 1 } &=
    begin{pmatrix}
    { 0 } & { 0 } & { 0 } & { 0 } \
    { 0 } & { 0 } & { 0 } & { 0 } \
    { 0 } & { 0 } & { 0 } & { 1 } \
    { 0 } & { 0 } & { - 1 } & { 0 }
    end{pmatrix},
    I _ { 2 } &&=
    begin{pmatrix}
    { 0 } & { 0 } & { 0 } & { 0 } \
    { 0 } & { 0 } & { 0 } & { 1 } \
    { 0 } & { 0 } & { 0 } & { 0 } \
    { 0 } & { -1} & { 0 } & { 0 }
    end{pmatrix},
    I _ { 3 } &&=
    begin{pmatrix}
    { 0 } & { 0 } & { 0 } & { 0 } \
    { 0 } & { 0 } & { 1 } & { 0 } \
    { 0 } & { -1 } & { 0 } & { 0 } \
    { 0 } & { 0 } & { 0 } & { 0 }
    end{pmatrix}, \
    J _ { 1 } &=
    begin{pmatrix}
    { 0 } & { -1} & { 0 } & { 0 } \
    { -1} & { 0 } & { 0 } & { 0 } \
    { 0 } & { 0 } & { 0 } & { 0 } \
    { 0 } & { 0 } & { 0 } & { 0 }
    end{pmatrix},
    J _ { 2 } &&=
    begin{pmatrix}
    { 0 } & { 0 } & { -1} & { 0 } \
    { 0 } & { 0 } & { 0 } & { 0 } \
    { -1} & { 0 } & { 0 } & { 0 } \
    { 0 } & { 0 } & { 0 } & { 0 }
    end{pmatrix},
    J _ { 3 } &&=
    begin{pmatrix}
    { 0 } & { 0 } & { 0 } & { - 1 } \
    { 0 } & { 0 } & { 0 } & { 0 } \
    { 0 } & { 0 } & { 0 } & { 0 } \
    { - 1 } & { 0 } & { 0 } & { 0 }
    end{pmatrix}.
    end{align*}
    end{document}


    Note: I'm aware that most of the {} are useless here but the matrices were generated by Mathpix....










    share|improve this question









    New contributor




    Marius Jaeger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      5












      5








      5


      1






      I'm currently facing a problem with the align environment. I'd like to write six matrices in two rows, aligned on each equal sign per column. The problem is that I can't figure out how to do this with the align environment for some reason. I've read the related posts here and here, where [1] seems to be a bit of an overkill for my problem and [2] doesn't work for some reason...



      An MWE to the problem:



      documentclass{article}
      usepackage[margin=2.5cm]{geometry}
      usepackage{amssymb, amsthm, mathtools}
      begin{document}
      begin{align*}
      I _ { 1 } &=
      begin{pmatrix}
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 1 } \
      { 0 } & { 0 } & { - 1 } & { 0 }
      end{pmatrix},
      I _ { 2 } &&=
      begin{pmatrix}
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 1 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { -1} & { 0 } & { 0 }
      end{pmatrix},
      I _ { 3 } &&=
      begin{pmatrix}
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 1 } & { 0 } \
      { 0 } & { -1 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 }
      end{pmatrix}, \
      J _ { 1 } &=
      begin{pmatrix}
      { 0 } & { -1} & { 0 } & { 0 } \
      { -1} & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 }
      end{pmatrix},
      J _ { 2 } &&=
      begin{pmatrix}
      { 0 } & { 0 } & { -1} & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { -1} & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 }
      end{pmatrix},
      J _ { 3 } &&=
      begin{pmatrix}
      { 0 } & { 0 } & { 0 } & { - 1 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { - 1 } & { 0 } & { 0 } & { 0 }
      end{pmatrix}.
      end{align*}
      end{document}


      Note: I'm aware that most of the {} are useless here but the matrices were generated by Mathpix....










      share|improve this question









      New contributor




      Marius Jaeger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I'm currently facing a problem with the align environment. I'd like to write six matrices in two rows, aligned on each equal sign per column. The problem is that I can't figure out how to do this with the align environment for some reason. I've read the related posts here and here, where [1] seems to be a bit of an overkill for my problem and [2] doesn't work for some reason...



      An MWE to the problem:



      documentclass{article}
      usepackage[margin=2.5cm]{geometry}
      usepackage{amssymb, amsthm, mathtools}
      begin{document}
      begin{align*}
      I _ { 1 } &=
      begin{pmatrix}
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 1 } \
      { 0 } & { 0 } & { - 1 } & { 0 }
      end{pmatrix},
      I _ { 2 } &&=
      begin{pmatrix}
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 1 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { -1} & { 0 } & { 0 }
      end{pmatrix},
      I _ { 3 } &&=
      begin{pmatrix}
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 1 } & { 0 } \
      { 0 } & { -1 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 }
      end{pmatrix}, \
      J _ { 1 } &=
      begin{pmatrix}
      { 0 } & { -1} & { 0 } & { 0 } \
      { -1} & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 }
      end{pmatrix},
      J _ { 2 } &&=
      begin{pmatrix}
      { 0 } & { 0 } & { -1} & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { -1} & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 }
      end{pmatrix},
      J _ { 3 } &&=
      begin{pmatrix}
      { 0 } & { 0 } & { 0 } & { - 1 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { 0 } & { 0 } & { 0 } & { 0 } \
      { - 1 } & { 0 } & { 0 } & { 0 }
      end{pmatrix}.
      end{align*}
      end{document}


      Note: I'm aware that most of the {} are useless here but the matrices were generated by Mathpix....







      align






      share|improve this question









      New contributor




      Marius Jaeger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Marius Jaeger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Mar 20 at 18:38









      Bernard

      174k776206




      174k776206






      New contributor




      Marius Jaeger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Mar 20 at 18:10









      Marius JaegerMarius Jaeger

      404




      404




      New contributor




      Marius Jaeger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Marius Jaeger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Marius Jaeger is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          2 Answers
          2






          active

          oldest

          votes


















          7














          I just moved the &



          enter image description here



          documentclass{article}
          usepackage[margin=2.5cm]{geometry}
          usepackage{amssymb, amsthm, mathtools}
          begin{document}
          begin{align*}
          I _ { 1 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 1 } \
          { 0 } & { 0 } & { - 1 } & { 0 }
          end{pmatrix},
          &I _ { 2 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 1 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { -1} & { 0 } & { 0 }
          end{pmatrix},
          &I _ { 3 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 1 } & { 0 } \
          { 0 } & { -1 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix}, \
          J _ { 1 } &=
          begin{pmatrix}
          { 0 } & { -1} & { 0 } & { 0 } \
          { -1} & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix},
          &J _ { 2 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { -1} & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { -1} & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix},
          &J _ { 3 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { - 1 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { - 1 } & { 0 } & { 0 } & { 0 }
          end{pmatrix}.
          end{align*}
          end{document}





          share|improve this answer
























          • David and his movement made me feel good.

            – manooooh
            Mar 20 at 18:33






          • 1





            @marmot I didn't look at them (as I say I just moved the & ) but what about them?

            – David Carlisle
            Mar 20 at 19:26











          • @marmot not a sign change between a test file and a supplied example, you are assuming that is the meaning of these matrices:-)

            – David Carlisle
            Mar 20 at 20:10













          • @marmot TeX takes no position on mathematical accuracy, so long as it looks nice.

            – David Carlisle
            Mar 20 at 20:15











          • @marmot in that case, which convention do you prefer?^^

            – Marius Jaeger
            Mar 20 at 20:43



















          6














          Uniform alignment everywhere...



          documentclass{article}
          usepackage[margin=2.5cm]{geometry}
          usepackage{amssymb, amsthm, mathtools}
          usepackage{tabstackengine}
          setstacktabbedgap{1ex}
          begin{document}
          fixTABwidth{T}
          begin{align*}
          I _ { 1 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & { 1 } \
          0 & 0 & { - 1 } & 0
          },&
          I _ { 2 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 1 \
          0 & 0 & 0 & 0 \
          0 & -1 & 0 & 0
          }, &
          I _ { 3 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 1 & 0 \
          0 & -1 & 0 & 0 \
          0 & 0 & 0 & 0
          }, \
          J _ { 1 } =&
          parenMatrixstack[r]{
          0 & -1 & 0 & 0 \
          -1 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0
          },&
          J _ { 2 } =&
          parenMatrixstack[r]{
          0 & 0 & -1 & 0 \
          0 & 0 & 0 & 0 \
          -1 & 0 & 0 & 0 \
          0 & 0 & 0 & 0
          },&
          J _ { 3 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & { - 1 } \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          - 1 & 0 & 0 & 0
          }.
          end{align*}
          end{document}


          enter image description here






          share|improve this answer





















          • 2





            These matrices align nicely because I and J happen to be about the same width. But if they had instead been I and M, the alignment would have been different. Better to put the "second" & before the = sign in each instance.

            – barbara beeton
            Mar 20 at 23:40











          • @barbarabeeton Thanks for the great suggestion. Only clarification is that in TABstackengine, the & should, by default, follow the = rather than precede it.

            – Steven B. Segletes
            Mar 21 at 1:32











          • @steven : This solution doesn't compile with overleaf.com, error at line 51.

            – pzorba75
            Mar 21 at 4:31











          • @pzorba75 Sorry I cannot assist...I am not an overleaf user.

            – Steven B. Segletes
            Mar 21 at 4:36











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


          }
          });






          Marius Jaeger is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480550%2falignment-of-six-matrices%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          7














          I just moved the &



          enter image description here



          documentclass{article}
          usepackage[margin=2.5cm]{geometry}
          usepackage{amssymb, amsthm, mathtools}
          begin{document}
          begin{align*}
          I _ { 1 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 1 } \
          { 0 } & { 0 } & { - 1 } & { 0 }
          end{pmatrix},
          &I _ { 2 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 1 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { -1} & { 0 } & { 0 }
          end{pmatrix},
          &I _ { 3 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 1 } & { 0 } \
          { 0 } & { -1 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix}, \
          J _ { 1 } &=
          begin{pmatrix}
          { 0 } & { -1} & { 0 } & { 0 } \
          { -1} & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix},
          &J _ { 2 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { -1} & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { -1} & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix},
          &J _ { 3 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { - 1 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { - 1 } & { 0 } & { 0 } & { 0 }
          end{pmatrix}.
          end{align*}
          end{document}





          share|improve this answer
























          • David and his movement made me feel good.

            – manooooh
            Mar 20 at 18:33






          • 1





            @marmot I didn't look at them (as I say I just moved the & ) but what about them?

            – David Carlisle
            Mar 20 at 19:26











          • @marmot not a sign change between a test file and a supplied example, you are assuming that is the meaning of these matrices:-)

            – David Carlisle
            Mar 20 at 20:10













          • @marmot TeX takes no position on mathematical accuracy, so long as it looks nice.

            – David Carlisle
            Mar 20 at 20:15











          • @marmot in that case, which convention do you prefer?^^

            – Marius Jaeger
            Mar 20 at 20:43
















          7














          I just moved the &



          enter image description here



          documentclass{article}
          usepackage[margin=2.5cm]{geometry}
          usepackage{amssymb, amsthm, mathtools}
          begin{document}
          begin{align*}
          I _ { 1 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 1 } \
          { 0 } & { 0 } & { - 1 } & { 0 }
          end{pmatrix},
          &I _ { 2 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 1 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { -1} & { 0 } & { 0 }
          end{pmatrix},
          &I _ { 3 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 1 } & { 0 } \
          { 0 } & { -1 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix}, \
          J _ { 1 } &=
          begin{pmatrix}
          { 0 } & { -1} & { 0 } & { 0 } \
          { -1} & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix},
          &J _ { 2 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { -1} & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { -1} & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix},
          &J _ { 3 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { - 1 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { - 1 } & { 0 } & { 0 } & { 0 }
          end{pmatrix}.
          end{align*}
          end{document}





          share|improve this answer
























          • David and his movement made me feel good.

            – manooooh
            Mar 20 at 18:33






          • 1





            @marmot I didn't look at them (as I say I just moved the & ) but what about them?

            – David Carlisle
            Mar 20 at 19:26











          • @marmot not a sign change between a test file and a supplied example, you are assuming that is the meaning of these matrices:-)

            – David Carlisle
            Mar 20 at 20:10













          • @marmot TeX takes no position on mathematical accuracy, so long as it looks nice.

            – David Carlisle
            Mar 20 at 20:15











          • @marmot in that case, which convention do you prefer?^^

            – Marius Jaeger
            Mar 20 at 20:43














          7












          7








          7







          I just moved the &



          enter image description here



          documentclass{article}
          usepackage[margin=2.5cm]{geometry}
          usepackage{amssymb, amsthm, mathtools}
          begin{document}
          begin{align*}
          I _ { 1 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 1 } \
          { 0 } & { 0 } & { - 1 } & { 0 }
          end{pmatrix},
          &I _ { 2 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 1 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { -1} & { 0 } & { 0 }
          end{pmatrix},
          &I _ { 3 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 1 } & { 0 } \
          { 0 } & { -1 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix}, \
          J _ { 1 } &=
          begin{pmatrix}
          { 0 } & { -1} & { 0 } & { 0 } \
          { -1} & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix},
          &J _ { 2 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { -1} & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { -1} & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix},
          &J _ { 3 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { - 1 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { - 1 } & { 0 } & { 0 } & { 0 }
          end{pmatrix}.
          end{align*}
          end{document}





          share|improve this answer













          I just moved the &



          enter image description here



          documentclass{article}
          usepackage[margin=2.5cm]{geometry}
          usepackage{amssymb, amsthm, mathtools}
          begin{document}
          begin{align*}
          I _ { 1 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 1 } \
          { 0 } & { 0 } & { - 1 } & { 0 }
          end{pmatrix},
          &I _ { 2 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 1 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { -1} & { 0 } & { 0 }
          end{pmatrix},
          &I _ { 3 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 1 } & { 0 } \
          { 0 } & { -1 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix}, \
          J _ { 1 } &=
          begin{pmatrix}
          { 0 } & { -1} & { 0 } & { 0 } \
          { -1} & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix},
          &J _ { 2 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { -1} & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { -1} & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 }
          end{pmatrix},
          &J _ { 3 } &=
          begin{pmatrix}
          { 0 } & { 0 } & { 0 } & { - 1 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { 0 } & { 0 } & { 0 } & { 0 } \
          { - 1 } & { 0 } & { 0 } & { 0 }
          end{pmatrix}.
          end{align*}
          end{document}






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 20 at 18:25









          David CarlisleDavid Carlisle

          495k4111411889




          495k4111411889













          • David and his movement made me feel good.

            – manooooh
            Mar 20 at 18:33






          • 1





            @marmot I didn't look at them (as I say I just moved the & ) but what about them?

            – David Carlisle
            Mar 20 at 19:26











          • @marmot not a sign change between a test file and a supplied example, you are assuming that is the meaning of these matrices:-)

            – David Carlisle
            Mar 20 at 20:10













          • @marmot TeX takes no position on mathematical accuracy, so long as it looks nice.

            – David Carlisle
            Mar 20 at 20:15











          • @marmot in that case, which convention do you prefer?^^

            – Marius Jaeger
            Mar 20 at 20:43



















          • David and his movement made me feel good.

            – manooooh
            Mar 20 at 18:33






          • 1





            @marmot I didn't look at them (as I say I just moved the & ) but what about them?

            – David Carlisle
            Mar 20 at 19:26











          • @marmot not a sign change between a test file and a supplied example, you are assuming that is the meaning of these matrices:-)

            – David Carlisle
            Mar 20 at 20:10













          • @marmot TeX takes no position on mathematical accuracy, so long as it looks nice.

            – David Carlisle
            Mar 20 at 20:15











          • @marmot in that case, which convention do you prefer?^^

            – Marius Jaeger
            Mar 20 at 20:43

















          David and his movement made me feel good.

          – manooooh
          Mar 20 at 18:33





          David and his movement made me feel good.

          – manooooh
          Mar 20 at 18:33




          1




          1





          @marmot I didn't look at them (as I say I just moved the & ) but what about them?

          – David Carlisle
          Mar 20 at 19:26





          @marmot I didn't look at them (as I say I just moved the & ) but what about them?

          – David Carlisle
          Mar 20 at 19:26













          @marmot not a sign change between a test file and a supplied example, you are assuming that is the meaning of these matrices:-)

          – David Carlisle
          Mar 20 at 20:10







          @marmot not a sign change between a test file and a supplied example, you are assuming that is the meaning of these matrices:-)

          – David Carlisle
          Mar 20 at 20:10















          @marmot TeX takes no position on mathematical accuracy, so long as it looks nice.

          – David Carlisle
          Mar 20 at 20:15





          @marmot TeX takes no position on mathematical accuracy, so long as it looks nice.

          – David Carlisle
          Mar 20 at 20:15













          @marmot in that case, which convention do you prefer?^^

          – Marius Jaeger
          Mar 20 at 20:43





          @marmot in that case, which convention do you prefer?^^

          – Marius Jaeger
          Mar 20 at 20:43











          6














          Uniform alignment everywhere...



          documentclass{article}
          usepackage[margin=2.5cm]{geometry}
          usepackage{amssymb, amsthm, mathtools}
          usepackage{tabstackengine}
          setstacktabbedgap{1ex}
          begin{document}
          fixTABwidth{T}
          begin{align*}
          I _ { 1 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & { 1 } \
          0 & 0 & { - 1 } & 0
          },&
          I _ { 2 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 1 \
          0 & 0 & 0 & 0 \
          0 & -1 & 0 & 0
          }, &
          I _ { 3 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 1 & 0 \
          0 & -1 & 0 & 0 \
          0 & 0 & 0 & 0
          }, \
          J _ { 1 } =&
          parenMatrixstack[r]{
          0 & -1 & 0 & 0 \
          -1 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0
          },&
          J _ { 2 } =&
          parenMatrixstack[r]{
          0 & 0 & -1 & 0 \
          0 & 0 & 0 & 0 \
          -1 & 0 & 0 & 0 \
          0 & 0 & 0 & 0
          },&
          J _ { 3 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & { - 1 } \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          - 1 & 0 & 0 & 0
          }.
          end{align*}
          end{document}


          enter image description here






          share|improve this answer





















          • 2





            These matrices align nicely because I and J happen to be about the same width. But if they had instead been I and M, the alignment would have been different. Better to put the "second" & before the = sign in each instance.

            – barbara beeton
            Mar 20 at 23:40











          • @barbarabeeton Thanks for the great suggestion. Only clarification is that in TABstackengine, the & should, by default, follow the = rather than precede it.

            – Steven B. Segletes
            Mar 21 at 1:32











          • @steven : This solution doesn't compile with overleaf.com, error at line 51.

            – pzorba75
            Mar 21 at 4:31











          • @pzorba75 Sorry I cannot assist...I am not an overleaf user.

            – Steven B. Segletes
            Mar 21 at 4:36
















          6














          Uniform alignment everywhere...



          documentclass{article}
          usepackage[margin=2.5cm]{geometry}
          usepackage{amssymb, amsthm, mathtools}
          usepackage{tabstackengine}
          setstacktabbedgap{1ex}
          begin{document}
          fixTABwidth{T}
          begin{align*}
          I _ { 1 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & { 1 } \
          0 & 0 & { - 1 } & 0
          },&
          I _ { 2 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 1 \
          0 & 0 & 0 & 0 \
          0 & -1 & 0 & 0
          }, &
          I _ { 3 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 1 & 0 \
          0 & -1 & 0 & 0 \
          0 & 0 & 0 & 0
          }, \
          J _ { 1 } =&
          parenMatrixstack[r]{
          0 & -1 & 0 & 0 \
          -1 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0
          },&
          J _ { 2 } =&
          parenMatrixstack[r]{
          0 & 0 & -1 & 0 \
          0 & 0 & 0 & 0 \
          -1 & 0 & 0 & 0 \
          0 & 0 & 0 & 0
          },&
          J _ { 3 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & { - 1 } \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          - 1 & 0 & 0 & 0
          }.
          end{align*}
          end{document}


          enter image description here






          share|improve this answer





















          • 2





            These matrices align nicely because I and J happen to be about the same width. But if they had instead been I and M, the alignment would have been different. Better to put the "second" & before the = sign in each instance.

            – barbara beeton
            Mar 20 at 23:40











          • @barbarabeeton Thanks for the great suggestion. Only clarification is that in TABstackengine, the & should, by default, follow the = rather than precede it.

            – Steven B. Segletes
            Mar 21 at 1:32











          • @steven : This solution doesn't compile with overleaf.com, error at line 51.

            – pzorba75
            Mar 21 at 4:31











          • @pzorba75 Sorry I cannot assist...I am not an overleaf user.

            – Steven B. Segletes
            Mar 21 at 4:36














          6












          6








          6







          Uniform alignment everywhere...



          documentclass{article}
          usepackage[margin=2.5cm]{geometry}
          usepackage{amssymb, amsthm, mathtools}
          usepackage{tabstackengine}
          setstacktabbedgap{1ex}
          begin{document}
          fixTABwidth{T}
          begin{align*}
          I _ { 1 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & { 1 } \
          0 & 0 & { - 1 } & 0
          },&
          I _ { 2 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 1 \
          0 & 0 & 0 & 0 \
          0 & -1 & 0 & 0
          }, &
          I _ { 3 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 1 & 0 \
          0 & -1 & 0 & 0 \
          0 & 0 & 0 & 0
          }, \
          J _ { 1 } =&
          parenMatrixstack[r]{
          0 & -1 & 0 & 0 \
          -1 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0
          },&
          J _ { 2 } =&
          parenMatrixstack[r]{
          0 & 0 & -1 & 0 \
          0 & 0 & 0 & 0 \
          -1 & 0 & 0 & 0 \
          0 & 0 & 0 & 0
          },&
          J _ { 3 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & { - 1 } \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          - 1 & 0 & 0 & 0
          }.
          end{align*}
          end{document}


          enter image description here






          share|improve this answer















          Uniform alignment everywhere...



          documentclass{article}
          usepackage[margin=2.5cm]{geometry}
          usepackage{amssymb, amsthm, mathtools}
          usepackage{tabstackengine}
          setstacktabbedgap{1ex}
          begin{document}
          fixTABwidth{T}
          begin{align*}
          I _ { 1 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & { 1 } \
          0 & 0 & { - 1 } & 0
          },&
          I _ { 2 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 1 \
          0 & 0 & 0 & 0 \
          0 & -1 & 0 & 0
          }, &
          I _ { 3 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & 0 \
          0 & 0 & 1 & 0 \
          0 & -1 & 0 & 0 \
          0 & 0 & 0 & 0
          }, \
          J _ { 1 } =&
          parenMatrixstack[r]{
          0 & -1 & 0 & 0 \
          -1 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0
          },&
          J _ { 2 } =&
          parenMatrixstack[r]{
          0 & 0 & -1 & 0 \
          0 & 0 & 0 & 0 \
          -1 & 0 & 0 & 0 \
          0 & 0 & 0 & 0
          },&
          J _ { 3 } =&
          parenMatrixstack[r]{
          0 & 0 & 0 & { - 1 } \
          0 & 0 & 0 & 0 \
          0 & 0 & 0 & 0 \
          - 1 & 0 & 0 & 0
          }.
          end{align*}
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 21 at 1:31

























          answered Mar 20 at 19:11









          Steven B. SegletesSteven B. Segletes

          159k9204412




          159k9204412








          • 2





            These matrices align nicely because I and J happen to be about the same width. But if they had instead been I and M, the alignment would have been different. Better to put the "second" & before the = sign in each instance.

            – barbara beeton
            Mar 20 at 23:40











          • @barbarabeeton Thanks for the great suggestion. Only clarification is that in TABstackengine, the & should, by default, follow the = rather than precede it.

            – Steven B. Segletes
            Mar 21 at 1:32











          • @steven : This solution doesn't compile with overleaf.com, error at line 51.

            – pzorba75
            Mar 21 at 4:31











          • @pzorba75 Sorry I cannot assist...I am not an overleaf user.

            – Steven B. Segletes
            Mar 21 at 4:36














          • 2





            These matrices align nicely because I and J happen to be about the same width. But if they had instead been I and M, the alignment would have been different. Better to put the "second" & before the = sign in each instance.

            – barbara beeton
            Mar 20 at 23:40











          • @barbarabeeton Thanks for the great suggestion. Only clarification is that in TABstackengine, the & should, by default, follow the = rather than precede it.

            – Steven B. Segletes
            Mar 21 at 1:32











          • @steven : This solution doesn't compile with overleaf.com, error at line 51.

            – pzorba75
            Mar 21 at 4:31











          • @pzorba75 Sorry I cannot assist...I am not an overleaf user.

            – Steven B. Segletes
            Mar 21 at 4:36








          2




          2





          These matrices align nicely because I and J happen to be about the same width. But if they had instead been I and M, the alignment would have been different. Better to put the "second" & before the = sign in each instance.

          – barbara beeton
          Mar 20 at 23:40





          These matrices align nicely because I and J happen to be about the same width. But if they had instead been I and M, the alignment would have been different. Better to put the "second" & before the = sign in each instance.

          – barbara beeton
          Mar 20 at 23:40













          @barbarabeeton Thanks for the great suggestion. Only clarification is that in TABstackengine, the & should, by default, follow the = rather than precede it.

          – Steven B. Segletes
          Mar 21 at 1:32





          @barbarabeeton Thanks for the great suggestion. Only clarification is that in TABstackengine, the & should, by default, follow the = rather than precede it.

          – Steven B. Segletes
          Mar 21 at 1:32













          @steven : This solution doesn't compile with overleaf.com, error at line 51.

          – pzorba75
          Mar 21 at 4:31





          @steven : This solution doesn't compile with overleaf.com, error at line 51.

          – pzorba75
          Mar 21 at 4:31













          @pzorba75 Sorry I cannot assist...I am not an overleaf user.

          – Steven B. Segletes
          Mar 21 at 4:36





          @pzorba75 Sorry I cannot assist...I am not an overleaf user.

          – Steven B. Segletes
          Mar 21 at 4:36










          Marius Jaeger is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Marius Jaeger is a new contributor. Be nice, and check out our Code of Conduct.













          Marius Jaeger is a new contributor. Be nice, and check out our Code of Conduct.












          Marius Jaeger is a new contributor. Be nice, and check out our Code of Conduct.
















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480550%2falignment-of-six-matrices%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

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...