How to write the block matrix in LaTex? The Next CEO of Stack OverflowAligning equations with text with alignatMatrix environments not workingnewcommand for bmatrix of features using pgffor throws missing endgroup errorLeft align text in equation environment (no use of align environment)How to align cases block to the leftObtaining a properly aligned complex matrixXparse k argument to parse options at end of environmentHow to represent the following border matrix in latex?How to write the following mathematical expression in LaTeX?“Missing '' inserted” and “Missing inserted” with aligned environment

Why is Miller's case titled R (Miller)?

Bulk API v2 Get Job Status Failing - InvalidBatch : Field name not found

Why here is plural "We went to the movies last night."

Implement the Thanos sorting algorithm

How to safely derail a train during transit?

What does "Its cash flow is deeply negative" mean?

Does it take more energy to get to Venus or to Mars?

MAZDA 3 2006 (UK) - poor acceleration then takes off at 3250 revs

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

What is meant by a M next to a roman numeral?

too much space between section and text in a twocolumn document

When airplanes disconnect from a tanker during air to air refueling, why do they bank so sharply to the right?

Grabbing quick drinks

How can I open an app using Terminal?

Why does standard notation not preserve intervals (visually)

How to write papers efficiently when English isn't my first language?

How do I solve this limit?

Inappropriate reference requests from Journal reviewers

I believe this to be a fraud

declare as function pointer and initialize in the same line

How to make a software documentation "officially" citable?

What is the meaning of "rider"?

Why didn't Khan get resurrected in the Genesis Explosion?

What is the purpose of the Evocation wizard's Potent Cantrip feature?



How to write the block matrix in LaTex?



The Next CEO of Stack OverflowAligning equations with text with alignatMatrix environments not workingnewcommand for bmatrix of features using pgffor throws missing endgroup errorLeft align text in equation environment (no use of align environment)How to align cases block to the leftObtaining a properly aligned complex matrixXparse k argument to parse options at end of environmentHow to represent the following border matrix in latex?How to write the following mathematical expression in LaTeX?“Missing '' inserted” and “Missing inserted” with aligned environment










5















I wish to write the following block matrix in LaTex.



enter image description here



I have been trying a bunch of stuff, but none of it seems to work. In particular, I tried the following:



beginbmatrix
0 & -1& & & & & 0 & & & &\
1 & 0 & & & & & & & & &\
& & cdot & & & & & & & &\
& & & cdot & & & & & & &\
& & & & cdot & & & & & &\
& & & & & 0 & 1 & & & &\
& & & & &-1 & 0 & & & &\
& & & & & & & cdot & & &\
& & & & & & & & cdot & & \
& & & & & & & & & cdot & \
0 & & & & & & & & & & 0\
endbmatrix



But this is pretty ugly and so any suggestions will be much appreciated.










share|improve this question




























    5















    I wish to write the following block matrix in LaTex.



    enter image description here



    I have been trying a bunch of stuff, but none of it seems to work. In particular, I tried the following:



    beginbmatrix
    0 & -1& & & & & 0 & & & &\
    1 & 0 & & & & & & & & &\
    & & cdot & & & & & & & &\
    & & & cdot & & & & & & &\
    & & & & cdot & & & & & &\
    & & & & & 0 & 1 & & & &\
    & & & & &-1 & 0 & & & &\
    & & & & & & & cdot & & &\
    & & & & & & & & cdot & & \
    & & & & & & & & & cdot & \
    0 & & & & & & & & & & 0\
    endbmatrix



    But this is pretty ugly and so any suggestions will be much appreciated.










    share|improve this question


























      5












      5








      5








      I wish to write the following block matrix in LaTex.



      enter image description here



      I have been trying a bunch of stuff, but none of it seems to work. In particular, I tried the following:



      beginbmatrix
      0 & -1& & & & & 0 & & & &\
      1 & 0 & & & & & & & & &\
      & & cdot & & & & & & & &\
      & & & cdot & & & & & & &\
      & & & & cdot & & & & & &\
      & & & & & 0 & 1 & & & &\
      & & & & &-1 & 0 & & & &\
      & & & & & & & cdot & & &\
      & & & & & & & & cdot & & \
      & & & & & & & & & cdot & \
      0 & & & & & & & & & & 0\
      endbmatrix



      But this is pretty ugly and so any suggestions will be much appreciated.










      share|improve this question
















      I wish to write the following block matrix in LaTex.



      enter image description here



      I have been trying a bunch of stuff, but none of it seems to work. In particular, I tried the following:



      beginbmatrix
      0 & -1& & & & & 0 & & & &\
      1 & 0 & & & & & & & & &\
      & & cdot & & & & & & & &\
      & & & cdot & & & & & & &\
      & & & & cdot & & & & & &\
      & & & & & 0 & 1 & & & &\
      & & & & &-1 & 0 & & & &\
      & & & & & & & cdot & & &\
      & & & & & & & & cdot & & \
      & & & & & & & & & cdot & \
      0 & & & & & & & & & & 0\
      endbmatrix



      But this is pretty ugly and so any suggestions will be much appreciated.







      amsmath






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 1 hour ago







      model_checker

















      asked 1 hour ago









      model_checkermodel_checker

      230139




      230139




















          3 Answers
          3






          active

          oldest

          votes


















          7














          Perhaps



          $left(beginarraycccccc
          left[beginarraycc
          0 & 1\
          -1 & 0
          endarrayright] & & & & & 0\
          & ddots\
          & & left[beginarraycc
          0 & 1\
          -1 & 0
          endarrayright]\
          & & & 0\
          & & & & ddots\
          0 & & & & & 0
          endarrayright)$


          enter image description here






          share|improve this answer


















          • 2





            Thank you so much!

            – model_checker
            1 hour ago


















          4














          Here's another solution. It uses a pmatrix environment for the overall matrix and a custom macro called blockmat for the 2x2 inner matrices.



          enter image description here



          documentclassarticle
          usepackagearray,amsmath
          newcommandblockmat%
          beginarray
          hline 0 & 1^mathstrut \ -1 & 0 \ hline
          endarray
          begindocument
          [
          beginpmatrix
          blockmat & & & & & 0 \
          & ddots & & & & \
          & & blockmat & & & \
          & & & 0 & & \
          & & & & ddots & \
          0 & & & & & 0 \
          endpmatrix
          ]
          enddocument





          share|improve this answer
































            3














            Here there is my proposal as the original picture using bmatx command that replace a boxed matrix.



            enter image description here



            documentclassarticle
            usepackagemathtools
            newcommandbmatxboxedbeginmatrix 0& 1 \ -1& 0endmatrix

            begindocument
            [
            beginpmatrix
            , bmatx& & & & & & & 0 \
            & ddots& & & & \
            & & bmatx & & & & \
            & & & ddots& & &\
            & & & & 0 & &\
            & & & & & & ddots\
            0 & & & & & & & 0
            endpmatrix
            ]

            enddocument


            The best code is provided thanks to the precious comment of @Bernard.






            share|improve this answer




















            • 1





              In my opinion, you shouldn't add an empty 3rd column in the definition of bmatx

              – Bernard
              36 mins ago











            • Your comment not is an opinion :-) ...it is truly correct. :-)

              – Sebastiano
              29 mins ago











            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%2f481978%2fhow-to-write-the-block-matrix-in-latex%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7














            Perhaps



            $left(beginarraycccccc
            left[beginarraycc
            0 & 1\
            -1 & 0
            endarrayright] & & & & & 0\
            & ddots\
            & & left[beginarraycc
            0 & 1\
            -1 & 0
            endarrayright]\
            & & & 0\
            & & & & ddots\
            0 & & & & & 0
            endarrayright)$


            enter image description here






            share|improve this answer


















            • 2





              Thank you so much!

              – model_checker
              1 hour ago















            7














            Perhaps



            $left(beginarraycccccc
            left[beginarraycc
            0 & 1\
            -1 & 0
            endarrayright] & & & & & 0\
            & ddots\
            & & left[beginarraycc
            0 & 1\
            -1 & 0
            endarrayright]\
            & & & 0\
            & & & & ddots\
            0 & & & & & 0
            endarrayright)$


            enter image description here






            share|improve this answer


















            • 2





              Thank you so much!

              – model_checker
              1 hour ago













            7












            7








            7







            Perhaps



            $left(beginarraycccccc
            left[beginarraycc
            0 & 1\
            -1 & 0
            endarrayright] & & & & & 0\
            & ddots\
            & & left[beginarraycc
            0 & 1\
            -1 & 0
            endarrayright]\
            & & & 0\
            & & & & ddots\
            0 & & & & & 0
            endarrayright)$


            enter image description here






            share|improve this answer













            Perhaps



            $left(beginarraycccccc
            left[beginarraycc
            0 & 1\
            -1 & 0
            endarrayright] & & & & & 0\
            & ddots\
            & & left[beginarraycc
            0 & 1\
            -1 & 0
            endarrayright]\
            & & & 0\
            & & & & ddots\
            0 & & & & & 0
            endarrayright)$


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 1 hour ago









            riccs_0xriccs_0x

            1864




            1864







            • 2





              Thank you so much!

              – model_checker
              1 hour ago












            • 2





              Thank you so much!

              – model_checker
              1 hour ago







            2




            2





            Thank you so much!

            – model_checker
            1 hour ago





            Thank you so much!

            – model_checker
            1 hour ago











            4














            Here's another solution. It uses a pmatrix environment for the overall matrix and a custom macro called blockmat for the 2x2 inner matrices.



            enter image description here



            documentclassarticle
            usepackagearray,amsmath
            newcommandblockmat%
            beginarray
            hline 0 & 1^mathstrut \ -1 & 0 \ hline
            endarray
            begindocument
            [
            beginpmatrix
            blockmat & & & & & 0 \
            & ddots & & & & \
            & & blockmat & & & \
            & & & 0 & & \
            & & & & ddots & \
            0 & & & & & 0 \
            endpmatrix
            ]
            enddocument





            share|improve this answer





























              4














              Here's another solution. It uses a pmatrix environment for the overall matrix and a custom macro called blockmat for the 2x2 inner matrices.



              enter image description here



              documentclassarticle
              usepackagearray,amsmath
              newcommandblockmat%
              beginarray
              hline 0 & 1^mathstrut \ -1 & 0 \ hline
              endarray
              begindocument
              [
              beginpmatrix
              blockmat & & & & & 0 \
              & ddots & & & & \
              & & blockmat & & & \
              & & & 0 & & \
              & & & & ddots & \
              0 & & & & & 0 \
              endpmatrix
              ]
              enddocument





              share|improve this answer



























                4












                4








                4







                Here's another solution. It uses a pmatrix environment for the overall matrix and a custom macro called blockmat for the 2x2 inner matrices.



                enter image description here



                documentclassarticle
                usepackagearray,amsmath
                newcommandblockmat%
                beginarray
                hline 0 & 1^mathstrut \ -1 & 0 \ hline
                endarray
                begindocument
                [
                beginpmatrix
                blockmat & & & & & 0 \
                & ddots & & & & \
                & & blockmat & & & \
                & & & 0 & & \
                & & & & ddots & \
                0 & & & & & 0 \
                endpmatrix
                ]
                enddocument





                share|improve this answer















                Here's another solution. It uses a pmatrix environment for the overall matrix and a custom macro called blockmat for the 2x2 inner matrices.



                enter image description here



                documentclassarticle
                usepackagearray,amsmath
                newcommandblockmat%
                beginarray
                hline 0 & 1^mathstrut \ -1 & 0 \ hline
                endarray
                begindocument
                [
                beginpmatrix
                blockmat & & & & & 0 \
                & ddots & & & & \
                & & blockmat & & & \
                & & & 0 & & \
                & & & & ddots & \
                0 & & & & & 0 \
                endpmatrix
                ]
                enddocument






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 1 hour ago









                samcarter

                93.1k7105301




                93.1k7105301










                answered 1 hour ago









                MicoMico

                284k31388778




                284k31388778





















                    3














                    Here there is my proposal as the original picture using bmatx command that replace a boxed matrix.



                    enter image description here



                    documentclassarticle
                    usepackagemathtools
                    newcommandbmatxboxedbeginmatrix 0& 1 \ -1& 0endmatrix

                    begindocument
                    [
                    beginpmatrix
                    , bmatx& & & & & & & 0 \
                    & ddots& & & & \
                    & & bmatx & & & & \
                    & & & ddots& & &\
                    & & & & 0 & &\
                    & & & & & & ddots\
                    0 & & & & & & & 0
                    endpmatrix
                    ]

                    enddocument


                    The best code is provided thanks to the precious comment of @Bernard.






                    share|improve this answer




















                    • 1





                      In my opinion, you shouldn't add an empty 3rd column in the definition of bmatx

                      – Bernard
                      36 mins ago











                    • Your comment not is an opinion :-) ...it is truly correct. :-)

                      – Sebastiano
                      29 mins ago















                    3














                    Here there is my proposal as the original picture using bmatx command that replace a boxed matrix.



                    enter image description here



                    documentclassarticle
                    usepackagemathtools
                    newcommandbmatxboxedbeginmatrix 0& 1 \ -1& 0endmatrix

                    begindocument
                    [
                    beginpmatrix
                    , bmatx& & & & & & & 0 \
                    & ddots& & & & \
                    & & bmatx & & & & \
                    & & & ddots& & &\
                    & & & & 0 & &\
                    & & & & & & ddots\
                    0 & & & & & & & 0
                    endpmatrix
                    ]

                    enddocument


                    The best code is provided thanks to the precious comment of @Bernard.






                    share|improve this answer




















                    • 1





                      In my opinion, you shouldn't add an empty 3rd column in the definition of bmatx

                      – Bernard
                      36 mins ago











                    • Your comment not is an opinion :-) ...it is truly correct. :-)

                      – Sebastiano
                      29 mins ago













                    3












                    3








                    3







                    Here there is my proposal as the original picture using bmatx command that replace a boxed matrix.



                    enter image description here



                    documentclassarticle
                    usepackagemathtools
                    newcommandbmatxboxedbeginmatrix 0& 1 \ -1& 0endmatrix

                    begindocument
                    [
                    beginpmatrix
                    , bmatx& & & & & & & 0 \
                    & ddots& & & & \
                    & & bmatx & & & & \
                    & & & ddots& & &\
                    & & & & 0 & &\
                    & & & & & & ddots\
                    0 & & & & & & & 0
                    endpmatrix
                    ]

                    enddocument


                    The best code is provided thanks to the precious comment of @Bernard.






                    share|improve this answer















                    Here there is my proposal as the original picture using bmatx command that replace a boxed matrix.



                    enter image description here



                    documentclassarticle
                    usepackagemathtools
                    newcommandbmatxboxedbeginmatrix 0& 1 \ -1& 0endmatrix

                    begindocument
                    [
                    beginpmatrix
                    , bmatx& & & & & & & 0 \
                    & ddots& & & & \
                    & & bmatx & & & & \
                    & & & ddots& & &\
                    & & & & 0 & &\
                    & & & & & & ddots\
                    0 & & & & & & & 0
                    endpmatrix
                    ]

                    enddocument


                    The best code is provided thanks to the precious comment of @Bernard.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited 30 mins ago

























                    answered 1 hour ago









                    SebastianoSebastiano

                    11.3k42164




                    11.3k42164







                    • 1





                      In my opinion, you shouldn't add an empty 3rd column in the definition of bmatx

                      – Bernard
                      36 mins ago











                    • Your comment not is an opinion :-) ...it is truly correct. :-)

                      – Sebastiano
                      29 mins ago












                    • 1





                      In my opinion, you shouldn't add an empty 3rd column in the definition of bmatx

                      – Bernard
                      36 mins ago











                    • Your comment not is an opinion :-) ...it is truly correct. :-)

                      – Sebastiano
                      29 mins ago







                    1




                    1





                    In my opinion, you shouldn't add an empty 3rd column in the definition of bmatx

                    – Bernard
                    36 mins ago





                    In my opinion, you shouldn't add an empty 3rd column in the definition of bmatx

                    – Bernard
                    36 mins ago













                    Your comment not is an opinion :-) ...it is truly correct. :-)

                    – Sebastiano
                    29 mins ago





                    Your comment not is an opinion :-) ...it is truly correct. :-)

                    – Sebastiano
                    29 mins ago

















                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481978%2fhow-to-write-the-block-matrix-in-latex%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

                    Францішак Багушэвіч Змест Сям'я | Біяграфія | Творчасць | Мова Багушэвіча | Ацэнкі дзейнасці | Цікавыя факты | Спадчына | Выбраная бібліяграфія | Ушанаванне памяці | У філатэліі | Зноскі | Літаратура | Спасылкі | НавігацыяЛяхоўскі У. Рупіўся дзеля Бога і людзей: Жыццёвы шлях Лявона Вітан-Дубейкаўскага // Вольскі і Памідораў з песняй пра немца Адвакат, паэт, народны заступнік Ашмянскі веснікВ Минске появится площадь Богушевича и улица Сырокомли, Белорусская деловая газета, 19 июля 2001 г.Айцец беларускай нацыянальнай ідэі паўстаў у бронзе Сяргей Аляксандравіч Адашкевіч (1918, Мінск). 80-я гады. Бюст «Францішак Багушэвіч».Яўген Мікалаевіч Ціхановіч. «Партрэт Францішка Багушэвіча»Мікола Мікалаевіч Купава. «Партрэт зачынальніка новай беларускай літаратуры Францішка Багушэвіча»Уладзімір Іванавіч Мелехаў. На помніку «Змагарам за родную мову» Барэльеф «Францішак Багушэвіч»Памяць пра Багушэвіча на Віленшчыне Страчаная сталіца. Беларускія шыльды на вуліцах Вільні«Krynica». Ideologia i przywódcy białoruskiego katolicyzmuФранцішак БагушэвічТворы на knihi.comТворы Францішка Багушэвіча на bellib.byСодаль Уладзімір. Францішак Багушэвіч на Лідчыне;Луцкевіч Антон. Жыцьцё і творчасьць Фр. Багушэвіча ў успамінах ягоных сучасьнікаў // Запісы Беларускага Навуковага таварыства. Вільня, 1938. Сшытак 1. С. 16-34.Большая российская1188761710000 0000 5537 633Xn9209310021619551927869394п

                    Partai Komunis Tiongkok Daftar isi Kepemimpinan | Pranala luar | Referensi | Menu navigasidiperiksa1 perubahan tertundacpc.people.com.cnSitus resmiSurat kabar resmi"Why the Communist Party is alive, well and flourishing in China"0307-1235"Full text of Constitution of Communist Party of China"smengembangkannyas

                    ValueError: Expected n_neighbors <= n_samples, but n_samples = 1, n_neighbors = 6 (SMOTE) The 2019 Stack Overflow Developer Survey Results Are InCan SMOTE be applied over sequence of words (sentences)?ValueError when doing validation with random forestsSMOTE and multi class oversamplingLogic behind SMOTE-NC?ValueError: Error when checking target: expected dense_1 to have shape (7,) but got array with shape (1,)SmoteBoost: Should SMOTE be ran individually for each iteration/tree in the boosting?solving multi-class imbalance classification using smote and OSSUsing SMOTE for Synthetic Data generation to improve performance on unbalanced dataproblem of entry format for a simple model in KerasSVM SMOTE fit_resample() function runs forever with no result