Drawing arrows from one table cell reference to another Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)tikz matrix undefined control sequenceSeparating matrix elements by linesTikz equivalent of PSTricks commands ncbar and rnodeRotate a node but not its content: the case of the ellipse decorationHow to draw arrows from cell to cell at the borders of a tableHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?tables without tabular?TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingHow to Create a Table in Tikz with Arrows from One Cell to Another?Label in table should cross another cellCentering one Table inside another

Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?

Is it fair for a professor to grade us on the possession of past papers?

Can anything be seen from the center of the Boötes void? How dark would it be?

Is it possible for SQL statements to execute concurrently within a single session in SQL Server?

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

Sum letters are not two different

Why is it faster to reheat something than it is to cook it?

What is "gratricide"?

Generate an RGB colour grid

How do I find out the mythology and history of my Fortress?

Taylor expansion of ln(1-x)

What was the first language to use conditional keywords?

Maximum summed subsequences with non-adjacent items

Is a ledger board required if the side of my house is wood?

How does the secondary effect of the Heat Metal spell interact with a creature resistant/immune to fire damage?

How to write the following sign?

Using audio cues to encourage good posture

Take 2! Is this homebrew Lady of Pain warlock patron balanced?

A term for a woman complaining about things/begging in a cute/childish way

Is grep documentation about ignoring case wrong, since it doesn't ignore case in filenames?

What is this clumpy 20-30cm high yellow-flowered plant?

Do I really need to have a message in a novel to appeal to readers?

Why wasn't DOSKEY integrated with COMMAND.COM?

How does Python know the values already stored in its memory?



Drawing arrows from one table cell reference to another



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)tikz matrix undefined control sequenceSeparating matrix elements by linesTikz equivalent of PSTricks commands ncbar and rnodeRotate a node but not its content: the case of the ellipse decorationHow to draw arrows from cell to cell at the borders of a tableHow to define the default vertical distance between nodes?Numerical conditional within tikz keys?tables without tabular?TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingHow to Create a Table in Tikz with Arrows from One Cell to Another?Label in table should cross another cellCentering one Table inside another










4















I use the following code to manually draw arrows from one table cell to another.



documentclassbeamer
beamertemplatenavigationsymbolsempty
usepackageverbatim
usepackagetikz
usepackagepgfplots
usetikzlibraryarrows, arrows.meta, positioning
begindocument
beginframe[t]
frametitle
beginminipagetextwidth
begintable
begintabular*6c
15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\
endtabular
endtable
beginminipagetextwidth
begintikzpicture[overlay]
draw<2-> [ultra thick, blue, latex'-] (4.1,1.66) -- +(0:.4);
draw<3-> [ultra thick, red, -latex'] (5.2,2.66) -- +(-74:1.4);
endtikzpicture
endminipage
endminipage
endframe
enddocument


enter image description here



Is it possible to automate drawing the arrows from one table cell to another, using cell references instead of manually drawing them?










share|improve this question


























    4















    I use the following code to manually draw arrows from one table cell to another.



    documentclassbeamer
    beamertemplatenavigationsymbolsempty
    usepackageverbatim
    usepackagetikz
    usepackagepgfplots
    usetikzlibraryarrows, arrows.meta, positioning
    begindocument
    beginframe[t]
    frametitle
    beginminipagetextwidth
    begintable
    begintabular*6c
    15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
    17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
    10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
    23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
    13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\
    endtabular
    endtable
    beginminipagetextwidth
    begintikzpicture[overlay]
    draw<2-> [ultra thick, blue, latex'-] (4.1,1.66) -- +(0:.4);
    draw<3-> [ultra thick, red, -latex'] (5.2,2.66) -- +(-74:1.4);
    endtikzpicture
    endminipage
    endminipage
    endframe
    enddocument


    enter image description here



    Is it possible to automate drawing the arrows from one table cell to another, using cell references instead of manually drawing them?










    share|improve this question
























      4












      4








      4








      I use the following code to manually draw arrows from one table cell to another.



      documentclassbeamer
      beamertemplatenavigationsymbolsempty
      usepackageverbatim
      usepackagetikz
      usepackagepgfplots
      usetikzlibraryarrows, arrows.meta, positioning
      begindocument
      beginframe[t]
      frametitle
      beginminipagetextwidth
      begintable
      begintabular*6c
      15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
      17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
      10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
      23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
      13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\
      endtabular
      endtable
      beginminipagetextwidth
      begintikzpicture[overlay]
      draw<2-> [ultra thick, blue, latex'-] (4.1,1.66) -- +(0:.4);
      draw<3-> [ultra thick, red, -latex'] (5.2,2.66) -- +(-74:1.4);
      endtikzpicture
      endminipage
      endminipage
      endframe
      enddocument


      enter image description here



      Is it possible to automate drawing the arrows from one table cell to another, using cell references instead of manually drawing them?










      share|improve this question














      I use the following code to manually draw arrows from one table cell to another.



      documentclassbeamer
      beamertemplatenavigationsymbolsempty
      usepackageverbatim
      usepackagetikz
      usepackagepgfplots
      usetikzlibraryarrows, arrows.meta, positioning
      begindocument
      beginframe[t]
      frametitle
      beginminipagetextwidth
      begintable
      begintabular*6c
      15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
      17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
      10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
      23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
      13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\
      endtabular
      endtable
      beginminipagetextwidth
      begintikzpicture[overlay]
      draw<2-> [ultra thick, blue, latex'-] (4.1,1.66) -- +(0:.4);
      draw<3-> [ultra thick, red, -latex'] (5.2,2.66) -- +(-74:1.4);
      endtikzpicture
      endminipage
      endminipage
      endframe
      enddocument


      enter image description here



      Is it possible to automate drawing the arrows from one table cell to another, using cell references instead of manually drawing them?







      tikz-pgf tables






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 13 at 4:02









      HanyHany

      1,366418




      1,366418




















          2 Answers
          2






          active

          oldest

          votes


















          4














          Something like this?



          documentclass[tikz]standalone
          usetikzlibrarymatrix
          begindocument
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw[->] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          endtikzpicture
          enddocument


          enter image description here



          In beamer, there may be some problems with matrix, as described here. Taking solutions from that question we have for example



          documentclassbeamer
          beamertemplatenavigationsymbolsempty
          usepackageverbatim
          usepackagetikz
          usetikzlibraryarrows, arrows.meta, positioning, matrix
          begindocument
          beginframe[fragile]
          frametitle
          beginminipagetextwidth
          centering
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw<2-> [->] (x-2-1) -- (x-4-5);
          endtikzpicture
          endminipage
          endframe
          enddocument


          enter image description here




          Matrix is not really designed to draw a table, so drawing border lines is a bit tricky.



          documentclass[tikz,margin=1mm]standalone
          usetikzlibrarymatrix,calc
          begindocument
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw[->] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          foreach i in 1,...,6
          draw ($(x-1-i.north west)+(-.5em,.5em)$) -- ($(x-5-i.south west)+(-.5em,-.5em)$);
          foreach i in 1,...,5
          draw ($(x-i-1.south west)+(-.5em,-.5em)$) -- ($(x-i-6.south east)+(.5em,-.5em)$);
          draw ($(x-1-1.north west)+(-.5em,.5em)$) -| ($(x-5-6.south east)+(.5em,-.5em)$);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer

























          • @JouleVThank you for your answer. Unfortunately when I inserted your code inside a frame it gave me error message "! Undefined control sequence. <argument> pgf@matrix@last@nextcell@options "

            – Hany
            Apr 13 at 4:42











          • @JouleVJust one more request please. Can the matrix contain borders between elements so that it could look like a table with lines betwen cells

            – Hany
            Apr 13 at 5:03












          • @Hany I edited my answer (again).

            – JouleV
            Apr 13 at 5:29


















          4














          The obligatory tikzmark and beamer-overlay-styles answer. It might be more useful if you use more features of table, which are harder to reproduce with a tikz matrix.



          documentclassbeamer
          beamertemplatenavigationsymbolsempty
          usepackageverbatim
          usepackagetikz
          usetikzlibrarytikzmark,overlay-beamer-styles
          usetikzlibraryarrows
          begindocument
          beginframe[t]
          frametitle
          begintable
          begintabular*6c
          15.1 & 23.7 & tikzmarknodem1319.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & tikzmarknodem3226.1 & tikzmarknodem3315.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & tikzmarknodem4418.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\
          endtabular
          endtable
          begintikzpicture[remember picture,overlay]
          draw[ultra thick, blue, -latex',visible on=<2->] (m13.south east) -- (m44.north west);
          draw[ultra thick, red, -latex',visible on=<3->] (m33) -- (m32);
          endtikzpicture
          endframe
          enddocument


          enter image description here






          share|improve this answer























          • @marmotThank you very much for your answer. Unfortunately I can not install tikzmark package on my workplace computer for security reasons.

            – Hany
            Apr 13 at 5:06











          • @Hany I understand. You could also use Torbjørn T.'s tikznode command. This answer is public and may help some who have a more complicated table with, say, right-aligned cells and so on to annotate their table. For your purposes Joule V.s nice answer does a great job (and has certain advantages over ordinary tables when it comes to other questions like fitting some nodes in an ellipse on the background).

            – marmot
            Apr 13 at 5:14











          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%2f484598%2fdrawing-arrows-from-one-table-cell-reference-to-another%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          Something like this?



          documentclass[tikz]standalone
          usetikzlibrarymatrix
          begindocument
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw[->] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          endtikzpicture
          enddocument


          enter image description here



          In beamer, there may be some problems with matrix, as described here. Taking solutions from that question we have for example



          documentclassbeamer
          beamertemplatenavigationsymbolsempty
          usepackageverbatim
          usepackagetikz
          usetikzlibraryarrows, arrows.meta, positioning, matrix
          begindocument
          beginframe[fragile]
          frametitle
          beginminipagetextwidth
          centering
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw<2-> [->] (x-2-1) -- (x-4-5);
          endtikzpicture
          endminipage
          endframe
          enddocument


          enter image description here




          Matrix is not really designed to draw a table, so drawing border lines is a bit tricky.



          documentclass[tikz,margin=1mm]standalone
          usetikzlibrarymatrix,calc
          begindocument
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw[->] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          foreach i in 1,...,6
          draw ($(x-1-i.north west)+(-.5em,.5em)$) -- ($(x-5-i.south west)+(-.5em,-.5em)$);
          foreach i in 1,...,5
          draw ($(x-i-1.south west)+(-.5em,-.5em)$) -- ($(x-i-6.south east)+(.5em,-.5em)$);
          draw ($(x-1-1.north west)+(-.5em,.5em)$) -| ($(x-5-6.south east)+(.5em,-.5em)$);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer

























          • @JouleVThank you for your answer. Unfortunately when I inserted your code inside a frame it gave me error message "! Undefined control sequence. <argument> pgf@matrix@last@nextcell@options "

            – Hany
            Apr 13 at 4:42











          • @JouleVJust one more request please. Can the matrix contain borders between elements so that it could look like a table with lines betwen cells

            – Hany
            Apr 13 at 5:03












          • @Hany I edited my answer (again).

            – JouleV
            Apr 13 at 5:29















          4














          Something like this?



          documentclass[tikz]standalone
          usetikzlibrarymatrix
          begindocument
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw[->] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          endtikzpicture
          enddocument


          enter image description here



          In beamer, there may be some problems with matrix, as described here. Taking solutions from that question we have for example



          documentclassbeamer
          beamertemplatenavigationsymbolsempty
          usepackageverbatim
          usepackagetikz
          usetikzlibraryarrows, arrows.meta, positioning, matrix
          begindocument
          beginframe[fragile]
          frametitle
          beginminipagetextwidth
          centering
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw<2-> [->] (x-2-1) -- (x-4-5);
          endtikzpicture
          endminipage
          endframe
          enddocument


          enter image description here




          Matrix is not really designed to draw a table, so drawing border lines is a bit tricky.



          documentclass[tikz,margin=1mm]standalone
          usetikzlibrarymatrix,calc
          begindocument
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw[->] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          foreach i in 1,...,6
          draw ($(x-1-i.north west)+(-.5em,.5em)$) -- ($(x-5-i.south west)+(-.5em,-.5em)$);
          foreach i in 1,...,5
          draw ($(x-i-1.south west)+(-.5em,-.5em)$) -- ($(x-i-6.south east)+(.5em,-.5em)$);
          draw ($(x-1-1.north west)+(-.5em,.5em)$) -| ($(x-5-6.south east)+(.5em,-.5em)$);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer

























          • @JouleVThank you for your answer. Unfortunately when I inserted your code inside a frame it gave me error message "! Undefined control sequence. <argument> pgf@matrix@last@nextcell@options "

            – Hany
            Apr 13 at 4:42











          • @JouleVJust one more request please. Can the matrix contain borders between elements so that it could look like a table with lines betwen cells

            – Hany
            Apr 13 at 5:03












          • @Hany I edited my answer (again).

            – JouleV
            Apr 13 at 5:29













          4












          4








          4







          Something like this?



          documentclass[tikz]standalone
          usetikzlibrarymatrix
          begindocument
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw[->] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          endtikzpicture
          enddocument


          enter image description here



          In beamer, there may be some problems with matrix, as described here. Taking solutions from that question we have for example



          documentclassbeamer
          beamertemplatenavigationsymbolsempty
          usepackageverbatim
          usepackagetikz
          usetikzlibraryarrows, arrows.meta, positioning, matrix
          begindocument
          beginframe[fragile]
          frametitle
          beginminipagetextwidth
          centering
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw<2-> [->] (x-2-1) -- (x-4-5);
          endtikzpicture
          endminipage
          endframe
          enddocument


          enter image description here




          Matrix is not really designed to draw a table, so drawing border lines is a bit tricky.



          documentclass[tikz,margin=1mm]standalone
          usetikzlibrarymatrix,calc
          begindocument
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw[->] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          foreach i in 1,...,6
          draw ($(x-1-i.north west)+(-.5em,.5em)$) -- ($(x-5-i.south west)+(-.5em,-.5em)$);
          foreach i in 1,...,5
          draw ($(x-i-1.south west)+(-.5em,-.5em)$) -- ($(x-i-6.south east)+(.5em,-.5em)$);
          draw ($(x-1-1.north west)+(-.5em,.5em)$) -| ($(x-5-6.south east)+(.5em,-.5em)$);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer















          Something like this?



          documentclass[tikz]standalone
          usetikzlibrarymatrix
          begindocument
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw[->] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          endtikzpicture
          enddocument


          enter image description here



          In beamer, there may be some problems with matrix, as described here. Taking solutions from that question we have for example



          documentclassbeamer
          beamertemplatenavigationsymbolsempty
          usepackageverbatim
          usepackagetikz
          usetikzlibraryarrows, arrows.meta, positioning, matrix
          begindocument
          beginframe[fragile]
          frametitle
          beginminipagetextwidth
          centering
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw<2-> [->] (x-2-1) -- (x-4-5);
          endtikzpicture
          endminipage
          endframe
          enddocument


          enter image description here




          Matrix is not really designed to draw a table, so drawing border lines is a bit tricky.



          documentclass[tikz,margin=1mm]standalone
          usetikzlibrarymatrix,calc
          begindocument
          begintikzpicture
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] %
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\;
          draw[->] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          foreach i in 1,...,6
          draw ($(x-1-i.north west)+(-.5em,.5em)$) -- ($(x-5-i.south west)+(-.5em,-.5em)$);
          foreach i in 1,...,5
          draw ($(x-i-1.south west)+(-.5em,-.5em)$) -- ($(x-i-6.south east)+(.5em,-.5em)$);
          draw ($(x-1-1.north west)+(-.5em,.5em)$) -| ($(x-5-6.south east)+(.5em,-.5em)$);
          endtikzpicture
          enddocument


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 13 at 5:28

























          answered Apr 13 at 4:10









          JouleVJouleV

          14.1k22664




          14.1k22664












          • @JouleVThank you for your answer. Unfortunately when I inserted your code inside a frame it gave me error message "! Undefined control sequence. <argument> pgf@matrix@last@nextcell@options "

            – Hany
            Apr 13 at 4:42











          • @JouleVJust one more request please. Can the matrix contain borders between elements so that it could look like a table with lines betwen cells

            – Hany
            Apr 13 at 5:03












          • @Hany I edited my answer (again).

            – JouleV
            Apr 13 at 5:29

















          • @JouleVThank you for your answer. Unfortunately when I inserted your code inside a frame it gave me error message "! Undefined control sequence. <argument> pgf@matrix@last@nextcell@options "

            – Hany
            Apr 13 at 4:42











          • @JouleVJust one more request please. Can the matrix contain borders between elements so that it could look like a table with lines betwen cells

            – Hany
            Apr 13 at 5:03












          • @Hany I edited my answer (again).

            – JouleV
            Apr 13 at 5:29
















          @JouleVThank you for your answer. Unfortunately when I inserted your code inside a frame it gave me error message "! Undefined control sequence. <argument> pgf@matrix@last@nextcell@options "

          – Hany
          Apr 13 at 4:42





          @JouleVThank you for your answer. Unfortunately when I inserted your code inside a frame it gave me error message "! Undefined control sequence. <argument> pgf@matrix@last@nextcell@options "

          – Hany
          Apr 13 at 4:42













          @JouleVJust one more request please. Can the matrix contain borders between elements so that it could look like a table with lines betwen cells

          – Hany
          Apr 13 at 5:03






          @JouleVJust one more request please. Can the matrix contain borders between elements so that it could look like a table with lines betwen cells

          – Hany
          Apr 13 at 5:03














          @Hany I edited my answer (again).

          – JouleV
          Apr 13 at 5:29





          @Hany I edited my answer (again).

          – JouleV
          Apr 13 at 5:29











          4














          The obligatory tikzmark and beamer-overlay-styles answer. It might be more useful if you use more features of table, which are harder to reproduce with a tikz matrix.



          documentclassbeamer
          beamertemplatenavigationsymbolsempty
          usepackageverbatim
          usepackagetikz
          usetikzlibrarytikzmark,overlay-beamer-styles
          usetikzlibraryarrows
          begindocument
          beginframe[t]
          frametitle
          begintable
          begintabular*6c
          15.1 & 23.7 & tikzmarknodem1319.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & tikzmarknodem3226.1 & tikzmarknodem3315.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & tikzmarknodem4418.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\
          endtabular
          endtable
          begintikzpicture[remember picture,overlay]
          draw[ultra thick, blue, -latex',visible on=<2->] (m13.south east) -- (m44.north west);
          draw[ultra thick, red, -latex',visible on=<3->] (m33) -- (m32);
          endtikzpicture
          endframe
          enddocument


          enter image description here






          share|improve this answer























          • @marmotThank you very much for your answer. Unfortunately I can not install tikzmark package on my workplace computer for security reasons.

            – Hany
            Apr 13 at 5:06











          • @Hany I understand. You could also use Torbjørn T.'s tikznode command. This answer is public and may help some who have a more complicated table with, say, right-aligned cells and so on to annotate their table. For your purposes Joule V.s nice answer does a great job (and has certain advantages over ordinary tables when it comes to other questions like fitting some nodes in an ellipse on the background).

            – marmot
            Apr 13 at 5:14















          4














          The obligatory tikzmark and beamer-overlay-styles answer. It might be more useful if you use more features of table, which are harder to reproduce with a tikz matrix.



          documentclassbeamer
          beamertemplatenavigationsymbolsempty
          usepackageverbatim
          usepackagetikz
          usetikzlibrarytikzmark,overlay-beamer-styles
          usetikzlibraryarrows
          begindocument
          beginframe[t]
          frametitle
          begintable
          begintabular*6c
          15.1 & 23.7 & tikzmarknodem1319.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & tikzmarknodem3226.1 & tikzmarknodem3315.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & tikzmarknodem4418.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\
          endtabular
          endtable
          begintikzpicture[remember picture,overlay]
          draw[ultra thick, blue, -latex',visible on=<2->] (m13.south east) -- (m44.north west);
          draw[ultra thick, red, -latex',visible on=<3->] (m33) -- (m32);
          endtikzpicture
          endframe
          enddocument


          enter image description here






          share|improve this answer























          • @marmotThank you very much for your answer. Unfortunately I can not install tikzmark package on my workplace computer for security reasons.

            – Hany
            Apr 13 at 5:06











          • @Hany I understand. You could also use Torbjørn T.'s tikznode command. This answer is public and may help some who have a more complicated table with, say, right-aligned cells and so on to annotate their table. For your purposes Joule V.s nice answer does a great job (and has certain advantages over ordinary tables when it comes to other questions like fitting some nodes in an ellipse on the background).

            – marmot
            Apr 13 at 5:14













          4












          4








          4







          The obligatory tikzmark and beamer-overlay-styles answer. It might be more useful if you use more features of table, which are harder to reproduce with a tikz matrix.



          documentclassbeamer
          beamertemplatenavigationsymbolsempty
          usepackageverbatim
          usepackagetikz
          usetikzlibrarytikzmark,overlay-beamer-styles
          usetikzlibraryarrows
          begindocument
          beginframe[t]
          frametitle
          begintable
          begintabular*6c
          15.1 & 23.7 & tikzmarknodem1319.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & tikzmarknodem3226.1 & tikzmarknodem3315.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & tikzmarknodem4418.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\
          endtabular
          endtable
          begintikzpicture[remember picture,overlay]
          draw[ultra thick, blue, -latex',visible on=<2->] (m13.south east) -- (m44.north west);
          draw[ultra thick, red, -latex',visible on=<3->] (m33) -- (m32);
          endtikzpicture
          endframe
          enddocument


          enter image description here






          share|improve this answer













          The obligatory tikzmark and beamer-overlay-styles answer. It might be more useful if you use more features of table, which are harder to reproduce with a tikz matrix.



          documentclassbeamer
          beamertemplatenavigationsymbolsempty
          usepackageverbatim
          usepackagetikz
          usetikzlibrarytikzmark,overlay-beamer-styles
          usetikzlibraryarrows
          begindocument
          beginframe[t]
          frametitle
          begintable
          begintabular*6c
          15.1 & 23.7 & tikzmarknodem1319.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & tikzmarknodem3226.1 & tikzmarknodem3315.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & tikzmarknodem4418.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\
          endtabular
          endtable
          begintikzpicture[remember picture,overlay]
          draw[ultra thick, blue, -latex',visible on=<2->] (m13.south east) -- (m44.north west);
          draw[ultra thick, red, -latex',visible on=<3->] (m33) -- (m32);
          endtikzpicture
          endframe
          enddocument


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 13 at 4:59









          marmotmarmot

          119k6154289




          119k6154289












          • @marmotThank you very much for your answer. Unfortunately I can not install tikzmark package on my workplace computer for security reasons.

            – Hany
            Apr 13 at 5:06











          • @Hany I understand. You could also use Torbjørn T.'s tikznode command. This answer is public and may help some who have a more complicated table with, say, right-aligned cells and so on to annotate their table. For your purposes Joule V.s nice answer does a great job (and has certain advantages over ordinary tables when it comes to other questions like fitting some nodes in an ellipse on the background).

            – marmot
            Apr 13 at 5:14

















          • @marmotThank you very much for your answer. Unfortunately I can not install tikzmark package on my workplace computer for security reasons.

            – Hany
            Apr 13 at 5:06











          • @Hany I understand. You could also use Torbjørn T.'s tikznode command. This answer is public and may help some who have a more complicated table with, say, right-aligned cells and so on to annotate their table. For your purposes Joule V.s nice answer does a great job (and has certain advantages over ordinary tables when it comes to other questions like fitting some nodes in an ellipse on the background).

            – marmot
            Apr 13 at 5:14
















          @marmotThank you very much for your answer. Unfortunately I can not install tikzmark package on my workplace computer for security reasons.

          – Hany
          Apr 13 at 5:06





          @marmotThank you very much for your answer. Unfortunately I can not install tikzmark package on my workplace computer for security reasons.

          – Hany
          Apr 13 at 5:06













          @Hany I understand. You could also use Torbjørn T.'s tikznode command. This answer is public and may help some who have a more complicated table with, say, right-aligned cells and so on to annotate their table. For your purposes Joule V.s nice answer does a great job (and has certain advantages over ordinary tables when it comes to other questions like fitting some nodes in an ellipse on the background).

          – marmot
          Apr 13 at 5:14





          @Hany I understand. You could also use Torbjørn T.'s tikznode command. This answer is public and may help some who have a more complicated table with, say, right-aligned cells and so on to annotate their table. For your purposes Joule V.s nice answer does a great job (and has certain advantages over ordinary tables when it comes to other questions like fitting some nodes in an ellipse on the background).

          – marmot
          Apr 13 at 5:14

















          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%2f484598%2fdrawing-arrows-from-one-table-cell-reference-to-another%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

          Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

          Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

          Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020