Text above matricesHow do I label different rows or columns of a matrix using braces?use of tikzpicture...

Watching something be written to a file live with tail

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

A reference to a well-known characterization of scattered compact spaces

Doing something right before you need it - expression for this?

Is it canonical bit space?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

Why is the 'in' operator throwing an error with a string literal instead of logging false?

How can I tell someone that I want to be his or her friend?

How can saying a song's name be a copyright violation?

Anagram holiday

In Romance of the Three Kingdoms why do people still use bamboo sticks when papers are already invented?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Should I tell management that I intend to leave due to bad software development practices?

Does casting Light, or a similar spell, have any effect when the caster is swallowed by a monster?

How do I write bicross product symbols in latex?

Did Shadowfax go to Valinor?

What is the PIE reconstruction for word-initial alpha with rough breathing?

Will google still index a page if I use a $_SESSION variable?

I'm flying to France today and my passport expires in less than 2 months

90's TV series where a boy goes to another dimension through portal near power lines

Facing a paradox: Earnshaw's theorem in one dimension

Why are electrically insulating heatsinks so rare? Is it just cost?

What is the word for reserving something for yourself before others do?

Did converts (ger tzedek) in ancient Israel own land?



Text above matrices


How do I label different rows or columns of a matrix using braces?use of tikzpicture matrix in align or gather environmentLabel a matrix by charactersSame height for list of comma-separated vectorsSmaller matrices (or other math elements) in displayed mathFormatting of matricesHow to wrap text around a matrix?Block matrices with LaTeXUse matrices in TikZposter environment?Dealing with matrices with large symbolic expressionsNew Matrix CommandMissing $ inserted for matricesMultiline equation with matrices













14















I am new to latex and I am trying to create this:



this



So far I have been able to create the matrices, like so:



[
Ntextrm{ spectra}
begin{bmatrix}
a_{11} & a_{12} & cdots & a_{1M} \
a_{21} & a_{22} & cdots & a_{2M} \
vdots & vdots & ddots & vdots \
a_{N1} & a_{N2} & cdots & a_{NM}
end{bmatrix}\
quad
begin{bmatrix}
e_1 \
e_2 \
vdots \
e_N
end{bmatrix}
]


Does anyone know how can I add text above the matrices?










share|improve this question





























    14















    I am new to latex and I am trying to create this:



    this



    So far I have been able to create the matrices, like so:



    [
    Ntextrm{ spectra}
    begin{bmatrix}
    a_{11} & a_{12} & cdots & a_{1M} \
    a_{21} & a_{22} & cdots & a_{2M} \
    vdots & vdots & ddots & vdots \
    a_{N1} & a_{N2} & cdots & a_{NM}
    end{bmatrix}\
    quad
    begin{bmatrix}
    e_1 \
    e_2 \
    vdots \
    e_N
    end{bmatrix}
    ]


    Does anyone know how can I add text above the matrices?










    share|improve this question



























      14












      14








      14


      1






      I am new to latex and I am trying to create this:



      this



      So far I have been able to create the matrices, like so:



      [
      Ntextrm{ spectra}
      begin{bmatrix}
      a_{11} & a_{12} & cdots & a_{1M} \
      a_{21} & a_{22} & cdots & a_{2M} \
      vdots & vdots & ddots & vdots \
      a_{N1} & a_{N2} & cdots & a_{NM}
      end{bmatrix}\
      quad
      begin{bmatrix}
      e_1 \
      e_2 \
      vdots \
      e_N
      end{bmatrix}
      ]


      Does anyone know how can I add text above the matrices?










      share|improve this question
















      I am new to latex and I am trying to create this:



      this



      So far I have been able to create the matrices, like so:



      [
      Ntextrm{ spectra}
      begin{bmatrix}
      a_{11} & a_{12} & cdots & a_{1M} \
      a_{21} & a_{22} & cdots & a_{2M} \
      vdots & vdots & ddots & vdots \
      a_{N1} & a_{N2} & cdots & a_{NM}
      end{bmatrix}\
      quad
      begin{bmatrix}
      e_1 \
      e_2 \
      vdots \
      e_N
      end{bmatrix}
      ]


      Does anyone know how can I add text above the matrices?







      amsmath matrices arrays






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 26 at 12:16









      L. F.

      27711




      27711










      asked Jan 29 '12 at 13:45









      aperezaperez

      7315




      7315






















          4 Answers
          4






          active

          oldest

          votes


















          8














          Try this with stackrel and mbox's



          [
          Ntextrm{ spectra}
          stackrel{mbox{$M$ components}}{%
          begin{bmatrix}
          a_{11} & a_{12} & cdots & a_{1M} \
          a_{21} & a_{22} & cdots & a_{2M} \
          vdots & vdots & ddots & vdots \
          a_{N1} & a_{N2} & cdots & a_{NM}
          end{bmatrix}%
          } quad
          stackrel{stackrel{mbox{error}}{mbox{detection}}}{%
          begin{bmatrix}
          e_1 \
          e_2 \
          vdots \
          e_N
          end{bmatrix}%
          }
          ]


          enter image description here






          share|improve this answer


























          • You're welcome. There is probably a better way of doing this, but this was the first thing to come to mind.

            – qubyte
            Jan 29 '12 at 14:00



















          11














          The easiest way is to use array:



          documentclass{article}
          usepackage{amsmath}
          begin{document}
          [
          begin{array}{ccc}
          & & text{error} \
          & text{$M$ components} & text{detection} \
          text{$N$ spectra} &
          begin{bmatrix}
          a_{11} & a_{12} & cdots & a_{1M} \
          a_{21} & a_{22} & cdots & a_{2M} \
          vdots & vdots & ddots & vdots \
          a_{N1} & a_{N2} & cdots & a_{NM}
          end{bmatrix} &
          begin{bmatrix}
          e_1 \
          e_2 \
          vdots \
          e_N
          end{bmatrix}
          end{array}
          ]
          end{document}


          enter image description here






          share|improve this answer

































            3














            text where above the matrix? If you want a kind of heading above each column, then probably bordermatrix is your friend, a plain TeX command but usable in LaTeX.



            If you want a single item over the whole matrix, then any latex stacking construct would do the job, stackrel or a second single column array environment with your bmatrix on the second row or....



            update: sorry I see you want this second form, didn't notice the image link originally.



            so....



            [
            Ntextrm{ spectra}
            begin{smallmatrix} Mtextrm{ components}\begin{bmatrix}
            a_{11} & a_{12} & cdots & a_{1M} \
            a_{21} & a_{22} & cdots & a_{2M} \
            vdots & vdots & ddots & vdots \
            a_{N1} & a_{N2} & cdots & a_{NM}
            end{bmatrix}end{smallmatrix} quad
            begin{smallmatrix}
            textrm{error}\
            textrm{detection}\
            begin{bmatrix}
            e_1 \
            e_2 \
            vdots \
            e_N
            end{bmatrix}end{smallmatrix}
            ]





            share|improve this answer

































              1














              For future interest, if your labeling needs become more complicated, there is the qbordermatrix package which is somewhat more flexible than bordermatrix as you can label rows or columns and put the labels on any of the four sides of the matrix. I have used this a bit, but have just noticed that the delimiters seem to extend somewhat higher above the top row of matrix elements than I would like.



              Some of the questions on the TikZ package have also been helpful for my early attempts at more complicated labeling of matrices. For example, see the responses on using braces to label some number of rows or columns of a matrix .



              There is also the kbordermatrix package which seems initially designed to label the along the top and down the left side of a matrix. The documentation says
              "I also have an experimental version that will put the labels on the right and bottom. If you ask, I will make it available."
              This package does seem to do a better job than qbordermatrix of making the top of the delimiters an appropriate height above the top row of matrix elements.



              For a more flexible solution I think I'm going to have to play with tikz more now that I know how to use tikz in amsmath environments like align and gather .






              share|improve this answer


























              • Do you mind adding kbordermatrix to your answer for the sake of completeness? It can be found on this page. And the documentation is on this link

                – percusse
                Jun 18 '12 at 14:13













              • @percusse You make a very good point. I had neglected this one some time ago as it didn't immediately seem designed to put labels below the bottom of a matrix, but the kbordermatrix package does have some advantage over the qbordermatrix for better delimiter sizing.

                – Jason Whyte
                Jun 19 '12 at 7:23












              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%2f42666%2ftext-above-matrices%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              8














              Try this with stackrel and mbox's



              [
              Ntextrm{ spectra}
              stackrel{mbox{$M$ components}}{%
              begin{bmatrix}
              a_{11} & a_{12} & cdots & a_{1M} \
              a_{21} & a_{22} & cdots & a_{2M} \
              vdots & vdots & ddots & vdots \
              a_{N1} & a_{N2} & cdots & a_{NM}
              end{bmatrix}%
              } quad
              stackrel{stackrel{mbox{error}}{mbox{detection}}}{%
              begin{bmatrix}
              e_1 \
              e_2 \
              vdots \
              e_N
              end{bmatrix}%
              }
              ]


              enter image description here






              share|improve this answer


























              • You're welcome. There is probably a better way of doing this, but this was the first thing to come to mind.

                – qubyte
                Jan 29 '12 at 14:00
















              8














              Try this with stackrel and mbox's



              [
              Ntextrm{ spectra}
              stackrel{mbox{$M$ components}}{%
              begin{bmatrix}
              a_{11} & a_{12} & cdots & a_{1M} \
              a_{21} & a_{22} & cdots & a_{2M} \
              vdots & vdots & ddots & vdots \
              a_{N1} & a_{N2} & cdots & a_{NM}
              end{bmatrix}%
              } quad
              stackrel{stackrel{mbox{error}}{mbox{detection}}}{%
              begin{bmatrix}
              e_1 \
              e_2 \
              vdots \
              e_N
              end{bmatrix}%
              }
              ]


              enter image description here






              share|improve this answer


























              • You're welcome. There is probably a better way of doing this, but this was the first thing to come to mind.

                – qubyte
                Jan 29 '12 at 14:00














              8












              8








              8







              Try this with stackrel and mbox's



              [
              Ntextrm{ spectra}
              stackrel{mbox{$M$ components}}{%
              begin{bmatrix}
              a_{11} & a_{12} & cdots & a_{1M} \
              a_{21} & a_{22} & cdots & a_{2M} \
              vdots & vdots & ddots & vdots \
              a_{N1} & a_{N2} & cdots & a_{NM}
              end{bmatrix}%
              } quad
              stackrel{stackrel{mbox{error}}{mbox{detection}}}{%
              begin{bmatrix}
              e_1 \
              e_2 \
              vdots \
              e_N
              end{bmatrix}%
              }
              ]


              enter image description here






              share|improve this answer















              Try this with stackrel and mbox's



              [
              Ntextrm{ spectra}
              stackrel{mbox{$M$ components}}{%
              begin{bmatrix}
              a_{11} & a_{12} & cdots & a_{1M} \
              a_{21} & a_{22} & cdots & a_{2M} \
              vdots & vdots & ddots & vdots \
              a_{N1} & a_{N2} & cdots & a_{NM}
              end{bmatrix}%
              } quad
              stackrel{stackrel{mbox{error}}{mbox{detection}}}{%
              begin{bmatrix}
              e_1 \
              e_2 \
              vdots \
              e_N
              end{bmatrix}%
              }
              ]


              enter image description here







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Mar 19 '17 at 19:49









              David Carlisle

              497k4111441891




              497k4111441891










              answered Jan 29 '12 at 13:51









              qubytequbyte

              13.7k44288




              13.7k44288













              • You're welcome. There is probably a better way of doing this, but this was the first thing to come to mind.

                – qubyte
                Jan 29 '12 at 14:00



















              • You're welcome. There is probably a better way of doing this, but this was the first thing to come to mind.

                – qubyte
                Jan 29 '12 at 14:00

















              You're welcome. There is probably a better way of doing this, but this was the first thing to come to mind.

              – qubyte
              Jan 29 '12 at 14:00





              You're welcome. There is probably a better way of doing this, but this was the first thing to come to mind.

              – qubyte
              Jan 29 '12 at 14:00











              11














              The easiest way is to use array:



              documentclass{article}
              usepackage{amsmath}
              begin{document}
              [
              begin{array}{ccc}
              & & text{error} \
              & text{$M$ components} & text{detection} \
              text{$N$ spectra} &
              begin{bmatrix}
              a_{11} & a_{12} & cdots & a_{1M} \
              a_{21} & a_{22} & cdots & a_{2M} \
              vdots & vdots & ddots & vdots \
              a_{N1} & a_{N2} & cdots & a_{NM}
              end{bmatrix} &
              begin{bmatrix}
              e_1 \
              e_2 \
              vdots \
              e_N
              end{bmatrix}
              end{array}
              ]
              end{document}


              enter image description here






              share|improve this answer






























                11














                The easiest way is to use array:



                documentclass{article}
                usepackage{amsmath}
                begin{document}
                [
                begin{array}{ccc}
                & & text{error} \
                & text{$M$ components} & text{detection} \
                text{$N$ spectra} &
                begin{bmatrix}
                a_{11} & a_{12} & cdots & a_{1M} \
                a_{21} & a_{22} & cdots & a_{2M} \
                vdots & vdots & ddots & vdots \
                a_{N1} & a_{N2} & cdots & a_{NM}
                end{bmatrix} &
                begin{bmatrix}
                e_1 \
                e_2 \
                vdots \
                e_N
                end{bmatrix}
                end{array}
                ]
                end{document}


                enter image description here






                share|improve this answer




























                  11












                  11








                  11







                  The easiest way is to use array:



                  documentclass{article}
                  usepackage{amsmath}
                  begin{document}
                  [
                  begin{array}{ccc}
                  & & text{error} \
                  & text{$M$ components} & text{detection} \
                  text{$N$ spectra} &
                  begin{bmatrix}
                  a_{11} & a_{12} & cdots & a_{1M} \
                  a_{21} & a_{22} & cdots & a_{2M} \
                  vdots & vdots & ddots & vdots \
                  a_{N1} & a_{N2} & cdots & a_{NM}
                  end{bmatrix} &
                  begin{bmatrix}
                  e_1 \
                  e_2 \
                  vdots \
                  e_N
                  end{bmatrix}
                  end{array}
                  ]
                  end{document}


                  enter image description here






                  share|improve this answer















                  The easiest way is to use array:



                  documentclass{article}
                  usepackage{amsmath}
                  begin{document}
                  [
                  begin{array}{ccc}
                  & & text{error} \
                  & text{$M$ components} & text{detection} \
                  text{$N$ spectra} &
                  begin{bmatrix}
                  a_{11} & a_{12} & cdots & a_{1M} \
                  a_{21} & a_{22} & cdots & a_{2M} \
                  vdots & vdots & ddots & vdots \
                  a_{N1} & a_{N2} & cdots & a_{NM}
                  end{bmatrix} &
                  begin{bmatrix}
                  e_1 \
                  e_2 \
                  vdots \
                  e_N
                  end{bmatrix}
                  end{array}
                  ]
                  end{document}


                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 19 '17 at 19:49









                  David Carlisle

                  497k4111441891




                  497k4111441891










                  answered Jan 29 '12 at 14:02









                  egregegreg

                  731k8919303252




                  731k8919303252























                      3














                      text where above the matrix? If you want a kind of heading above each column, then probably bordermatrix is your friend, a plain TeX command but usable in LaTeX.



                      If you want a single item over the whole matrix, then any latex stacking construct would do the job, stackrel or a second single column array environment with your bmatrix on the second row or....



                      update: sorry I see you want this second form, didn't notice the image link originally.



                      so....



                      [
                      Ntextrm{ spectra}
                      begin{smallmatrix} Mtextrm{ components}\begin{bmatrix}
                      a_{11} & a_{12} & cdots & a_{1M} \
                      a_{21} & a_{22} & cdots & a_{2M} \
                      vdots & vdots & ddots & vdots \
                      a_{N1} & a_{N2} & cdots & a_{NM}
                      end{bmatrix}end{smallmatrix} quad
                      begin{smallmatrix}
                      textrm{error}\
                      textrm{detection}\
                      begin{bmatrix}
                      e_1 \
                      e_2 \
                      vdots \
                      e_N
                      end{bmatrix}end{smallmatrix}
                      ]





                      share|improve this answer






























                        3














                        text where above the matrix? If you want a kind of heading above each column, then probably bordermatrix is your friend, a plain TeX command but usable in LaTeX.



                        If you want a single item over the whole matrix, then any latex stacking construct would do the job, stackrel or a second single column array environment with your bmatrix on the second row or....



                        update: sorry I see you want this second form, didn't notice the image link originally.



                        so....



                        [
                        Ntextrm{ spectra}
                        begin{smallmatrix} Mtextrm{ components}\begin{bmatrix}
                        a_{11} & a_{12} & cdots & a_{1M} \
                        a_{21} & a_{22} & cdots & a_{2M} \
                        vdots & vdots & ddots & vdots \
                        a_{N1} & a_{N2} & cdots & a_{NM}
                        end{bmatrix}end{smallmatrix} quad
                        begin{smallmatrix}
                        textrm{error}\
                        textrm{detection}\
                        begin{bmatrix}
                        e_1 \
                        e_2 \
                        vdots \
                        e_N
                        end{bmatrix}end{smallmatrix}
                        ]





                        share|improve this answer




























                          3












                          3








                          3







                          text where above the matrix? If you want a kind of heading above each column, then probably bordermatrix is your friend, a plain TeX command but usable in LaTeX.



                          If you want a single item over the whole matrix, then any latex stacking construct would do the job, stackrel or a second single column array environment with your bmatrix on the second row or....



                          update: sorry I see you want this second form, didn't notice the image link originally.



                          so....



                          [
                          Ntextrm{ spectra}
                          begin{smallmatrix} Mtextrm{ components}\begin{bmatrix}
                          a_{11} & a_{12} & cdots & a_{1M} \
                          a_{21} & a_{22} & cdots & a_{2M} \
                          vdots & vdots & ddots & vdots \
                          a_{N1} & a_{N2} & cdots & a_{NM}
                          end{bmatrix}end{smallmatrix} quad
                          begin{smallmatrix}
                          textrm{error}\
                          textrm{detection}\
                          begin{bmatrix}
                          e_1 \
                          e_2 \
                          vdots \
                          e_N
                          end{bmatrix}end{smallmatrix}
                          ]





                          share|improve this answer















                          text where above the matrix? If you want a kind of heading above each column, then probably bordermatrix is your friend, a plain TeX command but usable in LaTeX.



                          If you want a single item over the whole matrix, then any latex stacking construct would do the job, stackrel or a second single column array environment with your bmatrix on the second row or....



                          update: sorry I see you want this second form, didn't notice the image link originally.



                          so....



                          [
                          Ntextrm{ spectra}
                          begin{smallmatrix} Mtextrm{ components}\begin{bmatrix}
                          a_{11} & a_{12} & cdots & a_{1M} \
                          a_{21} & a_{22} & cdots & a_{2M} \
                          vdots & vdots & ddots & vdots \
                          a_{N1} & a_{N2} & cdots & a_{NM}
                          end{bmatrix}end{smallmatrix} quad
                          begin{smallmatrix}
                          textrm{error}\
                          textrm{detection}\
                          begin{bmatrix}
                          e_1 \
                          e_2 \
                          vdots \
                          e_N
                          end{bmatrix}end{smallmatrix}
                          ]






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Jul 18 '17 at 8:42

























                          answered Jan 29 '12 at 13:51









                          David CarlisleDavid Carlisle

                          497k4111441891




                          497k4111441891























                              1














                              For future interest, if your labeling needs become more complicated, there is the qbordermatrix package which is somewhat more flexible than bordermatrix as you can label rows or columns and put the labels on any of the four sides of the matrix. I have used this a bit, but have just noticed that the delimiters seem to extend somewhat higher above the top row of matrix elements than I would like.



                              Some of the questions on the TikZ package have also been helpful for my early attempts at more complicated labeling of matrices. For example, see the responses on using braces to label some number of rows or columns of a matrix .



                              There is also the kbordermatrix package which seems initially designed to label the along the top and down the left side of a matrix. The documentation says
                              "I also have an experimental version that will put the labels on the right and bottom. If you ask, I will make it available."
                              This package does seem to do a better job than qbordermatrix of making the top of the delimiters an appropriate height above the top row of matrix elements.



                              For a more flexible solution I think I'm going to have to play with tikz more now that I know how to use tikz in amsmath environments like align and gather .






                              share|improve this answer


























                              • Do you mind adding kbordermatrix to your answer for the sake of completeness? It can be found on this page. And the documentation is on this link

                                – percusse
                                Jun 18 '12 at 14:13













                              • @percusse You make a very good point. I had neglected this one some time ago as it didn't immediately seem designed to put labels below the bottom of a matrix, but the kbordermatrix package does have some advantage over the qbordermatrix for better delimiter sizing.

                                – Jason Whyte
                                Jun 19 '12 at 7:23
















                              1














                              For future interest, if your labeling needs become more complicated, there is the qbordermatrix package which is somewhat more flexible than bordermatrix as you can label rows or columns and put the labels on any of the four sides of the matrix. I have used this a bit, but have just noticed that the delimiters seem to extend somewhat higher above the top row of matrix elements than I would like.



                              Some of the questions on the TikZ package have also been helpful for my early attempts at more complicated labeling of matrices. For example, see the responses on using braces to label some number of rows or columns of a matrix .



                              There is also the kbordermatrix package which seems initially designed to label the along the top and down the left side of a matrix. The documentation says
                              "I also have an experimental version that will put the labels on the right and bottom. If you ask, I will make it available."
                              This package does seem to do a better job than qbordermatrix of making the top of the delimiters an appropriate height above the top row of matrix elements.



                              For a more flexible solution I think I'm going to have to play with tikz more now that I know how to use tikz in amsmath environments like align and gather .






                              share|improve this answer


























                              • Do you mind adding kbordermatrix to your answer for the sake of completeness? It can be found on this page. And the documentation is on this link

                                – percusse
                                Jun 18 '12 at 14:13













                              • @percusse You make a very good point. I had neglected this one some time ago as it didn't immediately seem designed to put labels below the bottom of a matrix, but the kbordermatrix package does have some advantage over the qbordermatrix for better delimiter sizing.

                                – Jason Whyte
                                Jun 19 '12 at 7:23














                              1












                              1








                              1







                              For future interest, if your labeling needs become more complicated, there is the qbordermatrix package which is somewhat more flexible than bordermatrix as you can label rows or columns and put the labels on any of the four sides of the matrix. I have used this a bit, but have just noticed that the delimiters seem to extend somewhat higher above the top row of matrix elements than I would like.



                              Some of the questions on the TikZ package have also been helpful for my early attempts at more complicated labeling of matrices. For example, see the responses on using braces to label some number of rows or columns of a matrix .



                              There is also the kbordermatrix package which seems initially designed to label the along the top and down the left side of a matrix. The documentation says
                              "I also have an experimental version that will put the labels on the right and bottom. If you ask, I will make it available."
                              This package does seem to do a better job than qbordermatrix of making the top of the delimiters an appropriate height above the top row of matrix elements.



                              For a more flexible solution I think I'm going to have to play with tikz more now that I know how to use tikz in amsmath environments like align and gather .






                              share|improve this answer















                              For future interest, if your labeling needs become more complicated, there is the qbordermatrix package which is somewhat more flexible than bordermatrix as you can label rows or columns and put the labels on any of the four sides of the matrix. I have used this a bit, but have just noticed that the delimiters seem to extend somewhat higher above the top row of matrix elements than I would like.



                              Some of the questions on the TikZ package have also been helpful for my early attempts at more complicated labeling of matrices. For example, see the responses on using braces to label some number of rows or columns of a matrix .



                              There is also the kbordermatrix package which seems initially designed to label the along the top and down the left side of a matrix. The documentation says
                              "I also have an experimental version that will put the labels on the right and bottom. If you ask, I will make it available."
                              This package does seem to do a better job than qbordermatrix of making the top of the delimiters an appropriate height above the top row of matrix elements.



                              For a more flexible solution I think I'm going to have to play with tikz more now that I know how to use tikz in amsmath environments like align and gather .







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited 4 hours ago









                              Adrian Tam

                              1054




                              1054










                              answered Jun 18 '12 at 6:26









                              Jason WhyteJason Whyte

                              8981720




                              8981720













                              • Do you mind adding kbordermatrix to your answer for the sake of completeness? It can be found on this page. And the documentation is on this link

                                – percusse
                                Jun 18 '12 at 14:13













                              • @percusse You make a very good point. I had neglected this one some time ago as it didn't immediately seem designed to put labels below the bottom of a matrix, but the kbordermatrix package does have some advantage over the qbordermatrix for better delimiter sizing.

                                – Jason Whyte
                                Jun 19 '12 at 7:23



















                              • Do you mind adding kbordermatrix to your answer for the sake of completeness? It can be found on this page. And the documentation is on this link

                                – percusse
                                Jun 18 '12 at 14:13













                              • @percusse You make a very good point. I had neglected this one some time ago as it didn't immediately seem designed to put labels below the bottom of a matrix, but the kbordermatrix package does have some advantage over the qbordermatrix for better delimiter sizing.

                                – Jason Whyte
                                Jun 19 '12 at 7:23

















                              Do you mind adding kbordermatrix to your answer for the sake of completeness? It can be found on this page. And the documentation is on this link

                              – percusse
                              Jun 18 '12 at 14:13







                              Do you mind adding kbordermatrix to your answer for the sake of completeness? It can be found on this page. And the documentation is on this link

                              – percusse
                              Jun 18 '12 at 14:13















                              @percusse You make a very good point. I had neglected this one some time ago as it didn't immediately seem designed to put labels below the bottom of a matrix, but the kbordermatrix package does have some advantage over the qbordermatrix for better delimiter sizing.

                              – Jason Whyte
                              Jun 19 '12 at 7:23





                              @percusse You make a very good point. I had neglected this one some time ago as it didn't immediately seem designed to put labels below the bottom of a matrix, but the kbordermatrix package does have some advantage over the qbordermatrix for better delimiter sizing.

                              – Jason Whyte
                              Jun 19 '12 at 7:23


















                              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%2f42666%2ftext-above-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

                              El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

                              Castillo d'Acher Características Menú de navegación

                              Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...