How to write the block matrix in LaTex? [duplicate]Highlight elements in the matrixAligning 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

Is it always OK to ask for a copy of the lecturer's slides?

Is it cheaper to drop cargo than to land it?

I caught several of my students plagiarizing. Could it be my fault as a teacher?

Would "lab meat" be able to feed a much larger global population

Visa for volunteering in England

How to back up a running Linode server?

How to implement float hashing with approximate equality

My ID is expired, can I fly to the Bahamas with my passport

Survey Confirmation - Emphasize the question or the answer?

When and why did journal article titles become descriptive, rather than creatively allusive?

Attending a conference where my ex-supervisor and his collaborator are present, should I attend?

Hang 20lb projector screen on Hardieplank

Why do money exchangers give different rates to different bills

Can I use 1000v rectifier diodes instead of 600v rectifier diodes?

Is balancing necessary on a full-wheel change?

Why is Arya visibly scared in the library in S8E3?

How to assert on pagereference where the endpoint of pagereference is predefined

How did Captain America use this power?

How can I close a gap between my fence and my neighbor's that's on his side of the property line?

Why do computer-science majors learn calculus?

A non-technological, repeating, phenomenon in the sky, holding its position in the sky for hours

Why are there synthetic chemicals in our bodies? Where do they come from?

Pigeonhole Principle Problem

Feels like I am getting dragged into office politics



How to write the block matrix in LaTex? [duplicate]


Highlight elements in the matrixAligning 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













10
















This question already has an answer here:



  • Highlight elements in the matrix

    11 answers



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















marked as duplicate by Werner, Raaja, Kurt, Sebastiano, siracusa Apr 1 at 21:02


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















    10
















    This question already has an answer here:



    • Highlight elements in the matrix

      11 answers



    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















    marked as duplicate by Werner, Raaja, Kurt, Sebastiano, siracusa Apr 1 at 21:02


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.




















      10












      10








      10


      3







      This question already has an answer here:



      • Highlight elements in the matrix

        11 answers



      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

















      This question already has an answer here:



      • Highlight elements in the matrix

        11 answers



      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.





      This question already has an answer here:



      • Highlight elements in the matrix

        11 answers







      amsmath






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 at 20:33







      model_checker

















      asked Mar 28 at 20:19









      model_checkermodel_checker

      2551310




      2551310




      marked as duplicate by Werner, Raaja, Kurt, Sebastiano, siracusa Apr 1 at 21:02


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









      marked as duplicate by Werner, Raaja, Kurt, Sebastiano, siracusa Apr 1 at 21:02


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          5 Answers
          5






          active

          oldest

          votes


















          9














          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
            Mar 28 at 20:45


















          7














          Just for the fun of it! :-)



          documentclassarticle
          usepackageamsmath,array

          begindocument

          [
          beginpmatrix
          newcommandlr[1]multicolumn1c#1
          newcommandrr[1]multicolumn1c#1
          ;
          beginarray@*10c@
          cline1-2
          lr0 & rr1 &&&&&&&& raisebox-1em[0pt][0pt]$0$\
          lr-1 & rr0 \
          cline1-2
          && ddots \
          cline4-5
          &&& lr0 & rr1 \
          &&& lr-1 & rr0 \
          cline4-5
          &&&&& 0 \[-1ex]
          &&&&&& ddots \
          &&&&&&& 0 \[-1ex]
          &&&&&&&& ddots \
          multicolumn2c0 &&&&&&&& 0
          endarray
          ;;
          endpmatrix
          ]

          enddocument


          enter image description here






          share|improve this answer


















          • 2





            You guys are the best!

            – model_checker
            Mar 28 at 22:40






          • 1





            @model_checker I'm certainly not the best. Here is world excellence.

            – Sebastiano
            Mar 28 at 22:50






          • 2





            I am sorry! Last I checked there was an objection to your answer. But it's also great!

            – model_checker
            Mar 28 at 22:53






          • 2





            @model_checker Don't worry. I have put two & in addition. :-) but now it is correct.

            – Sebastiano
            Mar 28 at 23:02


















          6














          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




















          • 4





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

            – Bernard
            Mar 28 at 21:24






          • 2





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

            – Sebastiano
            Mar 28 at 21:30


















          5














          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




















          • 1





            Thank you for writing this answer!

            – model_checker
            Mar 28 at 22:03


















          1














          Here's a solution using TikZ that will work in all kinds of context, not just matrices, to draw boxes. You just need to put tl in the point where the top-right corner is supposed to be and br where the bottom-right will be. You can also use any TikZ feature to modify your box. Obviously this needs to be fine tuned depending on what exactly you're using it for (spacing etc.).



          newcountertextbox
          deftlstepcountertextboxtikzmarknodeathetextboxstrut
          defbrtikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw (athetextbox.north west) rectangle (bthetextbox.south east);endtikzpicture


          The spacing in this version is not optimized for matrices, but you can use



          tikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw ($(athetextbox.north west)+(-0.4arraycolsep,0ex)$) rectangle ($(bthetextbox.south east)+(0.4arraycolsep,0ex)$);endtikzpicture


          to add extra space.



          enter image description here



          Full code:



          documentclassarticle
          usepackagetikz
          usepackageamsmath
          usetikzlibrarytikzmark,calc
          newcountertextbox
          deftlstepcountertextboxtikzmarknodeathetextboxstrut
          defbrtikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw (athetextbox.north west) rectangle (bthetextbox.south east);endtikzpicture
          begindocument
          [
          beginbmatrix
          tl0 &-1 & & & & & & & & 0 \
          1 & 0br & & & & & & & & \
          & & cdot & & & & & & & \
          & & & cdot & & & & & & \
          & & & & cdot & & & & & \
          & & & & &tl0 & 1 & & & \
          & & & & &-1 & 0br & & & \
          & & & & & & & cdot & & \
          & & & & & & & & cdot & \
          0 & & & & & & & & & cdot \
          endbmatrix
          ]
          enddocument





          share|improve this answer































            5 Answers
            5






            active

            oldest

            votes








            5 Answers
            5






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            9














            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
              Mar 28 at 20:45















            9














            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
              Mar 28 at 20:45













            9












            9








            9







            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 Mar 28 at 20:42









            riccs_0xriccs_0x

            21015




            21015







            • 2





              Thank you so much!

              – model_checker
              Mar 28 at 20:45












            • 2





              Thank you so much!

              – model_checker
              Mar 28 at 20:45







            2




            2





            Thank you so much!

            – model_checker
            Mar 28 at 20:45





            Thank you so much!

            – model_checker
            Mar 28 at 20:45











            7














            Just for the fun of it! :-)



            documentclassarticle
            usepackageamsmath,array

            begindocument

            [
            beginpmatrix
            newcommandlr[1]multicolumn1c#1
            newcommandrr[1]multicolumn1c#1
            ;
            beginarray@*10c@
            cline1-2
            lr0 & rr1 &&&&&&&& raisebox-1em[0pt][0pt]$0$\
            lr-1 & rr0 \
            cline1-2
            && ddots \
            cline4-5
            &&& lr0 & rr1 \
            &&& lr-1 & rr0 \
            cline4-5
            &&&&& 0 \[-1ex]
            &&&&&& ddots \
            &&&&&&& 0 \[-1ex]
            &&&&&&&& ddots \
            multicolumn2c0 &&&&&&&& 0
            endarray
            ;;
            endpmatrix
            ]

            enddocument


            enter image description here






            share|improve this answer


















            • 2





              You guys are the best!

              – model_checker
              Mar 28 at 22:40






            • 1





              @model_checker I'm certainly not the best. Here is world excellence.

              – Sebastiano
              Mar 28 at 22:50






            • 2





              I am sorry! Last I checked there was an objection to your answer. But it's also great!

              – model_checker
              Mar 28 at 22:53






            • 2





              @model_checker Don't worry. I have put two & in addition. :-) but now it is correct.

              – Sebastiano
              Mar 28 at 23:02















            7














            Just for the fun of it! :-)



            documentclassarticle
            usepackageamsmath,array

            begindocument

            [
            beginpmatrix
            newcommandlr[1]multicolumn1c#1
            newcommandrr[1]multicolumn1c#1
            ;
            beginarray@*10c@
            cline1-2
            lr0 & rr1 &&&&&&&& raisebox-1em[0pt][0pt]$0$\
            lr-1 & rr0 \
            cline1-2
            && ddots \
            cline4-5
            &&& lr0 & rr1 \
            &&& lr-1 & rr0 \
            cline4-5
            &&&&& 0 \[-1ex]
            &&&&&& ddots \
            &&&&&&& 0 \[-1ex]
            &&&&&&&& ddots \
            multicolumn2c0 &&&&&&&& 0
            endarray
            ;;
            endpmatrix
            ]

            enddocument


            enter image description here






            share|improve this answer


















            • 2





              You guys are the best!

              – model_checker
              Mar 28 at 22:40






            • 1





              @model_checker I'm certainly not the best. Here is world excellence.

              – Sebastiano
              Mar 28 at 22:50






            • 2





              I am sorry! Last I checked there was an objection to your answer. But it's also great!

              – model_checker
              Mar 28 at 22:53






            • 2





              @model_checker Don't worry. I have put two & in addition. :-) but now it is correct.

              – Sebastiano
              Mar 28 at 23:02













            7












            7








            7







            Just for the fun of it! :-)



            documentclassarticle
            usepackageamsmath,array

            begindocument

            [
            beginpmatrix
            newcommandlr[1]multicolumn1c#1
            newcommandrr[1]multicolumn1c#1
            ;
            beginarray@*10c@
            cline1-2
            lr0 & rr1 &&&&&&&& raisebox-1em[0pt][0pt]$0$\
            lr-1 & rr0 \
            cline1-2
            && ddots \
            cline4-5
            &&& lr0 & rr1 \
            &&& lr-1 & rr0 \
            cline4-5
            &&&&& 0 \[-1ex]
            &&&&&& ddots \
            &&&&&&& 0 \[-1ex]
            &&&&&&&& ddots \
            multicolumn2c0 &&&&&&&& 0
            endarray
            ;;
            endpmatrix
            ]

            enddocument


            enter image description here






            share|improve this answer













            Just for the fun of it! :-)



            documentclassarticle
            usepackageamsmath,array

            begindocument

            [
            beginpmatrix
            newcommandlr[1]multicolumn1c#1
            newcommandrr[1]multicolumn1c#1
            ;
            beginarray@*10c@
            cline1-2
            lr0 & rr1 &&&&&&&& raisebox-1em[0pt][0pt]$0$\
            lr-1 & rr0 \
            cline1-2
            && ddots \
            cline4-5
            &&& lr0 & rr1 \
            &&& lr-1 & rr0 \
            cline4-5
            &&&&& 0 \[-1ex]
            &&&&&& ddots \
            &&&&&&& 0 \[-1ex]
            &&&&&&&& ddots \
            multicolumn2c0 &&&&&&&& 0
            endarray
            ;;
            endpmatrix
            ]

            enddocument


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 28 at 22:27









            egregegreg

            738k8919393269




            738k8919393269







            • 2





              You guys are the best!

              – model_checker
              Mar 28 at 22:40






            • 1





              @model_checker I'm certainly not the best. Here is world excellence.

              – Sebastiano
              Mar 28 at 22:50






            • 2





              I am sorry! Last I checked there was an objection to your answer. But it's also great!

              – model_checker
              Mar 28 at 22:53






            • 2





              @model_checker Don't worry. I have put two & in addition. :-) but now it is correct.

              – Sebastiano
              Mar 28 at 23:02












            • 2





              You guys are the best!

              – model_checker
              Mar 28 at 22:40






            • 1





              @model_checker I'm certainly not the best. Here is world excellence.

              – Sebastiano
              Mar 28 at 22:50






            • 2





              I am sorry! Last I checked there was an objection to your answer. But it's also great!

              – model_checker
              Mar 28 at 22:53






            • 2





              @model_checker Don't worry. I have put two & in addition. :-) but now it is correct.

              – Sebastiano
              Mar 28 at 23:02







            2




            2





            You guys are the best!

            – model_checker
            Mar 28 at 22:40





            You guys are the best!

            – model_checker
            Mar 28 at 22:40




            1




            1





            @model_checker I'm certainly not the best. Here is world excellence.

            – Sebastiano
            Mar 28 at 22:50





            @model_checker I'm certainly not the best. Here is world excellence.

            – Sebastiano
            Mar 28 at 22:50




            2




            2





            I am sorry! Last I checked there was an objection to your answer. But it's also great!

            – model_checker
            Mar 28 at 22:53





            I am sorry! Last I checked there was an objection to your answer. But it's also great!

            – model_checker
            Mar 28 at 22:53




            2




            2





            @model_checker Don't worry. I have put two & in addition. :-) but now it is correct.

            – Sebastiano
            Mar 28 at 23:02





            @model_checker Don't worry. I have put two & in addition. :-) but now it is correct.

            – Sebastiano
            Mar 28 at 23:02











            6














            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




















            • 4





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

              – Bernard
              Mar 28 at 21:24






            • 2





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

              – Sebastiano
              Mar 28 at 21:30















            6














            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




















            • 4





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

              – Bernard
              Mar 28 at 21:24






            • 2





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

              – Sebastiano
              Mar 28 at 21:30













            6












            6








            6







            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 Mar 28 at 21:30

























            answered Mar 28 at 20:56









            SebastianoSebastiano

            11.8k42467




            11.8k42467







            • 4





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

              – Bernard
              Mar 28 at 21:24






            • 2





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

              – Sebastiano
              Mar 28 at 21:30












            • 4





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

              – Bernard
              Mar 28 at 21:24






            • 2





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

              – Sebastiano
              Mar 28 at 21:30







            4




            4





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

            – Bernard
            Mar 28 at 21:24





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

            – Bernard
            Mar 28 at 21:24




            2




            2





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

            – Sebastiano
            Mar 28 at 21:30





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

            – Sebastiano
            Mar 28 at 21:30











            5














            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




















            • 1





              Thank you for writing this answer!

              – model_checker
              Mar 28 at 22:03















            5














            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




















            • 1





              Thank you for writing this answer!

              – model_checker
              Mar 28 at 22:03













            5












            5








            5







            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 Mar 28 at 20:57









            user36296

            1




            1










            answered Mar 28 at 20:55









            MicoMico

            289k32395783




            289k32395783







            • 1





              Thank you for writing this answer!

              – model_checker
              Mar 28 at 22:03












            • 1





              Thank you for writing this answer!

              – model_checker
              Mar 28 at 22:03







            1




            1





            Thank you for writing this answer!

            – model_checker
            Mar 28 at 22:03





            Thank you for writing this answer!

            – model_checker
            Mar 28 at 22:03











            1














            Here's a solution using TikZ that will work in all kinds of context, not just matrices, to draw boxes. You just need to put tl in the point where the top-right corner is supposed to be and br where the bottom-right will be. You can also use any TikZ feature to modify your box. Obviously this needs to be fine tuned depending on what exactly you're using it for (spacing etc.).



            newcountertextbox
            deftlstepcountertextboxtikzmarknodeathetextboxstrut
            defbrtikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw (athetextbox.north west) rectangle (bthetextbox.south east);endtikzpicture


            The spacing in this version is not optimized for matrices, but you can use



            tikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw ($(athetextbox.north west)+(-0.4arraycolsep,0ex)$) rectangle ($(bthetextbox.south east)+(0.4arraycolsep,0ex)$);endtikzpicture


            to add extra space.



            enter image description here



            Full code:



            documentclassarticle
            usepackagetikz
            usepackageamsmath
            usetikzlibrarytikzmark,calc
            newcountertextbox
            deftlstepcountertextboxtikzmarknodeathetextboxstrut
            defbrtikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw (athetextbox.north west) rectangle (bthetextbox.south east);endtikzpicture
            begindocument
            [
            beginbmatrix
            tl0 &-1 & & & & & & & & 0 \
            1 & 0br & & & & & & & & \
            & & cdot & & & & & & & \
            & & & cdot & & & & & & \
            & & & & cdot & & & & & \
            & & & & &tl0 & 1 & & & \
            & & & & &-1 & 0br & & & \
            & & & & & & & cdot & & \
            & & & & & & & & cdot & \
            0 & & & & & & & & & cdot \
            endbmatrix
            ]
            enddocument





            share|improve this answer





























              1














              Here's a solution using TikZ that will work in all kinds of context, not just matrices, to draw boxes. You just need to put tl in the point where the top-right corner is supposed to be and br where the bottom-right will be. You can also use any TikZ feature to modify your box. Obviously this needs to be fine tuned depending on what exactly you're using it for (spacing etc.).



              newcountertextbox
              deftlstepcountertextboxtikzmarknodeathetextboxstrut
              defbrtikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw (athetextbox.north west) rectangle (bthetextbox.south east);endtikzpicture


              The spacing in this version is not optimized for matrices, but you can use



              tikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw ($(athetextbox.north west)+(-0.4arraycolsep,0ex)$) rectangle ($(bthetextbox.south east)+(0.4arraycolsep,0ex)$);endtikzpicture


              to add extra space.



              enter image description here



              Full code:



              documentclassarticle
              usepackagetikz
              usepackageamsmath
              usetikzlibrarytikzmark,calc
              newcountertextbox
              deftlstepcountertextboxtikzmarknodeathetextboxstrut
              defbrtikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw (athetextbox.north west) rectangle (bthetextbox.south east);endtikzpicture
              begindocument
              [
              beginbmatrix
              tl0 &-1 & & & & & & & & 0 \
              1 & 0br & & & & & & & & \
              & & cdot & & & & & & & \
              & & & cdot & & & & & & \
              & & & & cdot & & & & & \
              & & & & &tl0 & 1 & & & \
              & & & & &-1 & 0br & & & \
              & & & & & & & cdot & & \
              & & & & & & & & cdot & \
              0 & & & & & & & & & cdot \
              endbmatrix
              ]
              enddocument





              share|improve this answer



























                1












                1








                1







                Here's a solution using TikZ that will work in all kinds of context, not just matrices, to draw boxes. You just need to put tl in the point where the top-right corner is supposed to be and br where the bottom-right will be. You can also use any TikZ feature to modify your box. Obviously this needs to be fine tuned depending on what exactly you're using it for (spacing etc.).



                newcountertextbox
                deftlstepcountertextboxtikzmarknodeathetextboxstrut
                defbrtikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw (athetextbox.north west) rectangle (bthetextbox.south east);endtikzpicture


                The spacing in this version is not optimized for matrices, but you can use



                tikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw ($(athetextbox.north west)+(-0.4arraycolsep,0ex)$) rectangle ($(bthetextbox.south east)+(0.4arraycolsep,0ex)$);endtikzpicture


                to add extra space.



                enter image description here



                Full code:



                documentclassarticle
                usepackagetikz
                usepackageamsmath
                usetikzlibrarytikzmark,calc
                newcountertextbox
                deftlstepcountertextboxtikzmarknodeathetextboxstrut
                defbrtikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw (athetextbox.north west) rectangle (bthetextbox.south east);endtikzpicture
                begindocument
                [
                beginbmatrix
                tl0 &-1 & & & & & & & & 0 \
                1 & 0br & & & & & & & & \
                & & cdot & & & & & & & \
                & & & cdot & & & & & & \
                & & & & cdot & & & & & \
                & & & & &tl0 & 1 & & & \
                & & & & &-1 & 0br & & & \
                & & & & & & & cdot & & \
                & & & & & & & & cdot & \
                0 & & & & & & & & & cdot \
                endbmatrix
                ]
                enddocument





                share|improve this answer















                Here's a solution using TikZ that will work in all kinds of context, not just matrices, to draw boxes. You just need to put tl in the point where the top-right corner is supposed to be and br where the bottom-right will be. You can also use any TikZ feature to modify your box. Obviously this needs to be fine tuned depending on what exactly you're using it for (spacing etc.).



                newcountertextbox
                deftlstepcountertextboxtikzmarknodeathetextboxstrut
                defbrtikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw (athetextbox.north west) rectangle (bthetextbox.south east);endtikzpicture


                The spacing in this version is not optimized for matrices, but you can use



                tikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw ($(athetextbox.north west)+(-0.4arraycolsep,0ex)$) rectangle ($(bthetextbox.south east)+(0.4arraycolsep,0ex)$);endtikzpicture


                to add extra space.



                enter image description here



                Full code:



                documentclassarticle
                usepackagetikz
                usepackageamsmath
                usetikzlibrarytikzmark,calc
                newcountertextbox
                deftlstepcountertextboxtikzmarknodeathetextboxstrut
                defbrtikzmarknodebthetextboxstrutbegintikzpicture[overlay, remember picture]draw (athetextbox.north west) rectangle (bthetextbox.south east);endtikzpicture
                begindocument
                [
                beginbmatrix
                tl0 &-1 & & & & & & & & 0 \
                1 & 0br & & & & & & & & \
                & & cdot & & & & & & & \
                & & & cdot & & & & & & \
                & & & & cdot & & & & & \
                & & & & &tl0 & 1 & & & \
                & & & & &-1 & 0br & & & \
                & & & & & & & cdot & & \
                & & & & & & & & cdot & \
                0 & & & & & & & & & cdot \
                endbmatrix
                ]
                enddocument






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 1 at 17:48

























                answered Apr 1 at 16:36









                sheßsheß

                2,07511436




                2,07511436













                    Popular posts from this blog

                    Bruad Bilen | Luke uk diar | NawigatsjuunCommonskategorii: BruadCommonskategorii: RunstükenWikiquote: Bruad

                    What is the offset in a seaplane's hull?

                    Slayer Innehåll Historia | Stil, komposition och lyrik | Bandets betydelse och framgångar | Sidoprojekt och samarbeten | Kontroverser | Medlemmar | Utmärkelser och nomineringar | Turnéer och festivaler | Diskografi | Referenser | Externa länkar | Navigeringsmenywww.slayer.net”Metal Massacre vol. 1””Metal Massacre vol. 3””Metal Massacre Volume III””Show No Mercy””Haunting the Chapel””Live Undead””Hell Awaits””Reign in Blood””Reign in Blood””Gold & Platinum – Reign in Blood””Golden Gods Awards Winners”originalet”Kerrang! Hall Of Fame””Slayer Looks Back On 37-Year Career In New Video Series: Part Two””South of Heaven””Gold & Platinum – South of Heaven””Seasons in the Abyss””Gold & Platinum - Seasons in the Abyss””Divine Intervention””Divine Intervention - Release group by Slayer””Gold & Platinum - Divine Intervention””Live Intrusion””Undisputed Attitude””Abolish Government/Superficial Love””Release “Slatanic Slaughter: A Tribute to Slayer” by Various Artists””Diabolus in Musica””Soundtrack to the Apocalypse””God Hates Us All””Systematic - Relationships””War at the Warfield””Gold & Platinum - War at the Warfield””Soundtrack to the Apocalypse””Gold & Platinum - Still Reigning””Metallica, Slayer, Iron Mauden Among Winners At Metal Hammer Awards””Eternal Pyre””Eternal Pyre - Slayer release group””Eternal Pyre””Metal Storm Awards 2006””Kerrang! Hall Of Fame””Slayer Wins 'Best Metal' Grammy Award””Slayer Guitarist Jeff Hanneman Dies””Bullet-For My Valentine booed at Metal Hammer Golden Gods Awards””Unholy Aliance””The End Of Slayer?””Slayer: We Could Thrash Out Two More Albums If We're Fast Enough...””'The Unholy Alliance: Chapter III' UK Dates Added”originalet”Megadeth And Slayer To Co-Headline 'Canadian Carnage' Trek”originalet”World Painted Blood””Release “World Painted Blood” by Slayer””Metallica Heading To Cinemas””Slayer, Megadeth To Join Forces For 'European Carnage' Tour - Dec. 18, 2010”originalet”Slayer's Hanneman Contracts Acute Infection; Band To Bring In Guest Guitarist””Cannibal Corpse's Pat O'Brien Will Step In As Slayer's Guest Guitarist”originalet”Slayer’s Jeff Hanneman Dead at 49””Dave Lombardo Says He Made Only $67,000 In 2011 While Touring With Slayer””Slayer: We Do Not Agree With Dave Lombardo's Substance Or Timeline Of Events””Slayer Welcomes Drummer Paul Bostaph Back To The Fold””Slayer Hope to Unveil Never-Before-Heard Jeff Hanneman Material on Next Album””Slayer Debut New Song 'Implode' During Surprise Golden Gods Appearance””Release group Repentless by Slayer””Repentless - Slayer - Credits””Slayer””Metal Storm Awards 2015””Slayer - to release comic book "Repentless #1"””Slayer To Release 'Repentless' 6.66" Vinyl Box Set””BREAKING NEWS: Slayer Announce Farewell Tour””Slayer Recruit Lamb of God, Anthrax, Behemoth + Testament for Final Tour””Slayer lägger ner efter 37 år””Slayer Announces Second North American Leg Of 'Final' Tour””Final World Tour””Slayer Announces Final European Tour With Lamb of God, Anthrax And Obituary””Slayer To Tour Europe With Lamb of God, Anthrax And Obituary””Slayer To Play 'Last French Show Ever' At Next Year's Hellfst””Slayer's Final World Tour Will Extend Into 2019””Death Angel's Rob Cavestany On Slayer's 'Farewell' Tour: 'Some Of Us Could See This Coming'””Testament Has No Plans To Retire Anytime Soon, Says Chuck Billy””Anthrax's Scott Ian On Slayer's 'Farewell' Tour Plans: 'I Was Surprised And I Wasn't Surprised'””Slayer””Slayer's Morbid Schlock””Review/Rock; For Slayer, the Mania Is the Message””Slayer - Biography””Slayer - Reign In Blood”originalet”Dave Lombardo””An exclusive oral history of Slayer”originalet”Exclusive! Interview With Slayer Guitarist Jeff Hanneman”originalet”Thinking Out Loud: Slayer's Kerry King on hair metal, Satan and being polite””Slayer Lyrics””Slayer - Biography””Most influential artists for extreme metal music””Slayer - Reign in Blood””Slayer guitarist Jeff Hanneman dies aged 49””Slatanic Slaughter: A Tribute to Slayer””Gateway to Hell: A Tribute to Slayer””Covered In Blood””Slayer: The Origins of Thrash in San Francisco, CA.””Why They Rule - #6 Slayer”originalet”Guitar World's 100 Greatest Heavy Metal Guitarists Of All Time”originalet”The fans have spoken: Slayer comes out on top in readers' polls”originalet”Tribute to Jeff Hanneman (1964-2013)””Lamb Of God Frontman: We Sound Like A Slayer Rip-Off””BEHEMOTH Frontman Pays Tribute To SLAYER's JEFF HANNEMAN””Slayer, Hatebreed Doing Double Duty On This Year's Ozzfest””System of a Down””Lacuna Coil’s Andrea Ferro Talks Influences, Skateboarding, Band Origins + More””Slayer - Reign in Blood””Into The Lungs of Hell””Slayer rules - en utställning om fans””Slayer and Their Fans Slashed Through a No-Holds-Barred Night at Gas Monkey””Home””Slayer””Gold & Platinum - The Big 4 Live from Sofia, Bulgaria””Exclusive! Interview With Slayer Guitarist Kerry King””2008-02-23: Wiltern, Los Angeles, CA, USA””Slayer's Kerry King To Perform With Megadeth Tonight! - Oct. 21, 2010”originalet”Dave Lombardo - Biography”Slayer Case DismissedArkiveradUltimate Classic Rock: Slayer guitarist Jeff Hanneman dead at 49.”Slayer: "We could never do any thing like Some Kind Of Monster..."””Cannibal Corpse'S Pat O'Brien Will Step In As Slayer'S Guest Guitarist | The Official Slayer Site”originalet”Slayer Wins 'Best Metal' Grammy Award””Slayer Guitarist Jeff Hanneman Dies””Kerrang! Awards 2006 Blog: Kerrang! Hall Of Fame””Kerrang! Awards 2013: Kerrang! Legend”originalet”Metallica, Slayer, Iron Maien Among Winners At Metal Hammer Awards””Metal Hammer Golden Gods Awards””Bullet For My Valentine Booed At Metal Hammer Golden Gods Awards””Metal Storm Awards 2006””Metal Storm Awards 2015””Slayer's Concert History””Slayer - Relationships””Slayer - Releases”Slayers officiella webbplatsSlayer på MusicBrainzOfficiell webbplatsSlayerSlayerr1373445760000 0001 1540 47353068615-5086262726cb13906545x(data)6033143kn20030215029