How to annotate matrix using tikz

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite












so not really sure on how I can achieve this, I have tried to do it so far with tikznode and didn't get it to look like I wanted, granted not really sure of what I'm doing. This is the output I'm trying to get :



desired output



This is the basic code I'm using, without any annotation added to it :



documentclassarticle
usepackageamsmath,mathrsfs
usepackage[usenames, dvipsnames,svgnames]xcolor
usepackagetikz
usetikzlibraryintersections, decorations.pathreplacing,shapes,shapes.geometric,hobby,patterns,babel,matrix,calc
DeclareMathOperatorMatMat
begindocument
$L_ij(k) rightarrow E_ij(k) = beginpmatrix
1 & & & \
& 1 & & \
k & & ddots & \
& & & 1
endpmatrix$
enddocument









share|improve this question

























    up vote
    4
    down vote

    favorite












    so not really sure on how I can achieve this, I have tried to do it so far with tikznode and didn't get it to look like I wanted, granted not really sure of what I'm doing. This is the output I'm trying to get :



    desired output



    This is the basic code I'm using, without any annotation added to it :



    documentclassarticle
    usepackageamsmath,mathrsfs
    usepackage[usenames, dvipsnames,svgnames]xcolor
    usepackagetikz
    usetikzlibraryintersections, decorations.pathreplacing,shapes,shapes.geometric,hobby,patterns,babel,matrix,calc
    DeclareMathOperatorMatMat
    begindocument
    $L_ij(k) rightarrow E_ij(k) = beginpmatrix
    1 & & & \
    & 1 & & \
    k & & ddots & \
    & & & 1
    endpmatrix$
    enddocument









    share|improve this question























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      so not really sure on how I can achieve this, I have tried to do it so far with tikznode and didn't get it to look like I wanted, granted not really sure of what I'm doing. This is the output I'm trying to get :



      desired output



      This is the basic code I'm using, without any annotation added to it :



      documentclassarticle
      usepackageamsmath,mathrsfs
      usepackage[usenames, dvipsnames,svgnames]xcolor
      usepackagetikz
      usetikzlibraryintersections, decorations.pathreplacing,shapes,shapes.geometric,hobby,patterns,babel,matrix,calc
      DeclareMathOperatorMatMat
      begindocument
      $L_ij(k) rightarrow E_ij(k) = beginpmatrix
      1 & & & \
      & 1 & & \
      k & & ddots & \
      & & & 1
      endpmatrix$
      enddocument









      share|improve this question













      so not really sure on how I can achieve this, I have tried to do it so far with tikznode and didn't get it to look like I wanted, granted not really sure of what I'm doing. This is the output I'm trying to get :



      desired output



      This is the basic code I'm using, without any annotation added to it :



      documentclassarticle
      usepackageamsmath,mathrsfs
      usepackage[usenames, dvipsnames,svgnames]xcolor
      usepackagetikz
      usetikzlibraryintersections, decorations.pathreplacing,shapes,shapes.geometric,hobby,patterns,babel,matrix,calc
      DeclareMathOperatorMatMat
      begindocument
      $L_ij(k) rightarrow E_ij(k) = beginpmatrix
      1 & & & \
      & 1 & & \
      k & & ddots & \
      & & & 1
      endpmatrix$
      enddocument






      tikz-pgf matrices annotations






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      Sephya

      766




      766




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          According to the chat, a [the new version of tikzmark] will be in the TeX distributions](https://ctan.org/pkg/tikzmark?lang=en) very soon part of the standard TeX distribution. The new version contains a command tikzmarknode, which can be used as follows:



          documentclassarticle
          usepackageamsmath,mathrsfs
          usepackage[usenames, dvipsnames,svgnames]xcolor
          usepackagetikz
          usetikzlibrarytikzmark,calc
          DeclareMathOperatorMatMat
          begindocument
          $L_ij(k) rightarrow E_ij(k) = beginpmatrix
          tikzmarknodel11 & & & \
          & tikzmarknodel21 & & \
          tikzmarknodekk & & ddots & \
          & & & tikzmarknodel31
          endpmatrix$
          begintikzpicture[overlay,remember picture]
          draw[<-] ($(l1.center)!0.5!(l2.center)$) to[out=45,in=180]
          ($(l1)+(2.5cm,0)$) node[right,anchor=north west,align=left,yshift=baselineskip]some long text\
          and more text;
          draw[<-,shorten <=3pt] (k.west) --++ (-0.4,0) node[left] text;
          draw[<-,shorten <=3pt] (k.south) --++ (0,-0.8) node[below] more text;
          endtikzpicture
          enddocument


          enter image description here



          Now you need still to download the updated library for this to work, but in a bit you wont' have to worry any more.






          share|improve this answer




















            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f455770%2fhow-to-annotate-matrix-using-tikz%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            4
            down vote



            accepted










            According to the chat, a [the new version of tikzmark] will be in the TeX distributions](https://ctan.org/pkg/tikzmark?lang=en) very soon part of the standard TeX distribution. The new version contains a command tikzmarknode, which can be used as follows:



            documentclassarticle
            usepackageamsmath,mathrsfs
            usepackage[usenames, dvipsnames,svgnames]xcolor
            usepackagetikz
            usetikzlibrarytikzmark,calc
            DeclareMathOperatorMatMat
            begindocument
            $L_ij(k) rightarrow E_ij(k) = beginpmatrix
            tikzmarknodel11 & & & \
            & tikzmarknodel21 & & \
            tikzmarknodekk & & ddots & \
            & & & tikzmarknodel31
            endpmatrix$
            begintikzpicture[overlay,remember picture]
            draw[<-] ($(l1.center)!0.5!(l2.center)$) to[out=45,in=180]
            ($(l1)+(2.5cm,0)$) node[right,anchor=north west,align=left,yshift=baselineskip]some long text\
            and more text;
            draw[<-,shorten <=3pt] (k.west) --++ (-0.4,0) node[left] text;
            draw[<-,shorten <=3pt] (k.south) --++ (0,-0.8) node[below] more text;
            endtikzpicture
            enddocument


            enter image description here



            Now you need still to download the updated library for this to work, but in a bit you wont' have to worry any more.






            share|improve this answer
























              up vote
              4
              down vote



              accepted










              According to the chat, a [the new version of tikzmark] will be in the TeX distributions](https://ctan.org/pkg/tikzmark?lang=en) very soon part of the standard TeX distribution. The new version contains a command tikzmarknode, which can be used as follows:



              documentclassarticle
              usepackageamsmath,mathrsfs
              usepackage[usenames, dvipsnames,svgnames]xcolor
              usepackagetikz
              usetikzlibrarytikzmark,calc
              DeclareMathOperatorMatMat
              begindocument
              $L_ij(k) rightarrow E_ij(k) = beginpmatrix
              tikzmarknodel11 & & & \
              & tikzmarknodel21 & & \
              tikzmarknodekk & & ddots & \
              & & & tikzmarknodel31
              endpmatrix$
              begintikzpicture[overlay,remember picture]
              draw[<-] ($(l1.center)!0.5!(l2.center)$) to[out=45,in=180]
              ($(l1)+(2.5cm,0)$) node[right,anchor=north west,align=left,yshift=baselineskip]some long text\
              and more text;
              draw[<-,shorten <=3pt] (k.west) --++ (-0.4,0) node[left] text;
              draw[<-,shorten <=3pt] (k.south) --++ (0,-0.8) node[below] more text;
              endtikzpicture
              enddocument


              enter image description here



              Now you need still to download the updated library for this to work, but in a bit you wont' have to worry any more.






              share|improve this answer






















                up vote
                4
                down vote



                accepted







                up vote
                4
                down vote



                accepted






                According to the chat, a [the new version of tikzmark] will be in the TeX distributions](https://ctan.org/pkg/tikzmark?lang=en) very soon part of the standard TeX distribution. The new version contains a command tikzmarknode, which can be used as follows:



                documentclassarticle
                usepackageamsmath,mathrsfs
                usepackage[usenames, dvipsnames,svgnames]xcolor
                usepackagetikz
                usetikzlibrarytikzmark,calc
                DeclareMathOperatorMatMat
                begindocument
                $L_ij(k) rightarrow E_ij(k) = beginpmatrix
                tikzmarknodel11 & & & \
                & tikzmarknodel21 & & \
                tikzmarknodekk & & ddots & \
                & & & tikzmarknodel31
                endpmatrix$
                begintikzpicture[overlay,remember picture]
                draw[<-] ($(l1.center)!0.5!(l2.center)$) to[out=45,in=180]
                ($(l1)+(2.5cm,0)$) node[right,anchor=north west,align=left,yshift=baselineskip]some long text\
                and more text;
                draw[<-,shorten <=3pt] (k.west) --++ (-0.4,0) node[left] text;
                draw[<-,shorten <=3pt] (k.south) --++ (0,-0.8) node[below] more text;
                endtikzpicture
                enddocument


                enter image description here



                Now you need still to download the updated library for this to work, but in a bit you wont' have to worry any more.






                share|improve this answer












                According to the chat, a [the new version of tikzmark] will be in the TeX distributions](https://ctan.org/pkg/tikzmark?lang=en) very soon part of the standard TeX distribution. The new version contains a command tikzmarknode, which can be used as follows:



                documentclassarticle
                usepackageamsmath,mathrsfs
                usepackage[usenames, dvipsnames,svgnames]xcolor
                usepackagetikz
                usetikzlibrarytikzmark,calc
                DeclareMathOperatorMatMat
                begindocument
                $L_ij(k) rightarrow E_ij(k) = beginpmatrix
                tikzmarknodel11 & & & \
                & tikzmarknodel21 & & \
                tikzmarknodekk & & ddots & \
                & & & tikzmarknodel31
                endpmatrix$
                begintikzpicture[overlay,remember picture]
                draw[<-] ($(l1.center)!0.5!(l2.center)$) to[out=45,in=180]
                ($(l1)+(2.5cm,0)$) node[right,anchor=north west,align=left,yshift=baselineskip]some long text\
                and more text;
                draw[<-,shorten <=3pt] (k.west) --++ (-0.4,0) node[left] text;
                draw[<-,shorten <=3pt] (k.south) --++ (0,-0.8) node[below] more text;
                endtikzpicture
                enddocument


                enter image description here



                Now you need still to download the updated library for this to work, but in a bit you wont' have to worry any more.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                marmot

                66.4k471143




                66.4k471143



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f455770%2fhow-to-annotate-matrix-using-tikz%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?