Drawing arrows from one table cell reference to another The 2019 Stack Overflow Developer Survey Results Are In Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Do we need more moderators?tikz matrix undefined control sequenceTikz equivalent of PSTricks commands ncbar and rnodeSeparating matrix elements by linesRotate 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

Keeping a retro style to sci-fi spaceships?

Visa regaring travelling European country

Make it rain characters

Example of compact Riemannian manifold with only one geodesic.

Didn't get enough time to take a Coding Test - what to do now?

How to support a colleague who finds meetings extremely tiring?

60's-70's movie: home appliances revolting against the owners

What was the last x86 CPU that did not have the x87 floating-point unit built in?

Can withdrawing asylum be illegal?

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

Proving the given two groups are isomorphic

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

1960s short story making fun of James Bond-style spy fiction

Accepted by European university, rejected by all American ones I applied to? Possible reasons?

Is this wall load bearing? Blueprints and photos attached

How did passengers keep warm on sail ships?

Can we generate random numbers using irrational numbers like π and e?

Identify 80s or 90s comics with ripped creatures (not dwarves)

Mortgage adviser recommends a longer term than necessary combined with overpayments

What is the role of 'For' here?

Drawing arrows from one table cell reference to another

Python - Fishing Simulator

Variable with quotation marks "$()"

How do I design a circuit to convert a 100 mV and 50 Hz sine wave to a square wave?



Drawing arrows from one table cell reference to another



The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Do we need more moderators?tikz matrix undefined control sequenceTikz equivalent of PSTricks commands ncbar and rnodeSeparating matrix elements by linesRotate 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










2















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


























    2















    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
























      2












      2








      2








      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 1 hour ago









      HanyHany

      1,293417




      1,293417




















          2 Answers
          2






          active

          oldest

          votes


















          2














          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
            54 mins ago











          • yes I added usetikzlibrarymatrix in the preamble

            – Hany
            52 mins ago











          • @JouleVShall I add the code into my post!

            – Hany
            50 mins ago












          • @JouleVYes. Thank you very much. That was the problem.

            – Hany
            43 mins ago











          • @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
            33 mins ago



















          2














          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
            30 mins ago











          • @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
            22 mins ago











          • @marmotThank you very much for your time

            – Hany
            17 mins ago











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "85"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%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









          2














          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
            54 mins ago











          • yes I added usetikzlibrarymatrix in the preamble

            – Hany
            52 mins ago











          • @JouleVShall I add the code into my post!

            – Hany
            50 mins ago












          • @JouleVYes. Thank you very much. That was the problem.

            – Hany
            43 mins ago











          • @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
            33 mins ago
















          2














          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
            54 mins ago











          • yes I added usetikzlibrarymatrix in the preamble

            – Hany
            52 mins ago











          • @JouleVShall I add the code into my post!

            – Hany
            50 mins ago












          • @JouleVYes. Thank you very much. That was the problem.

            – Hany
            43 mins ago











          • @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
            33 mins ago














          2












          2








          2







          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 8 mins ago

























          answered 1 hour ago









          JouleVJouleV

          13k22663




          13k22663












          • @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
            54 mins ago











          • yes I added usetikzlibrarymatrix in the preamble

            – Hany
            52 mins ago











          • @JouleVShall I add the code into my post!

            – Hany
            50 mins ago












          • @JouleVYes. Thank you very much. That was the problem.

            – Hany
            43 mins ago











          • @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
            33 mins ago


















          • @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
            54 mins ago











          • yes I added usetikzlibrarymatrix in the preamble

            – Hany
            52 mins ago











          • @JouleVShall I add the code into my post!

            – Hany
            50 mins ago












          • @JouleVYes. Thank you very much. That was the problem.

            – Hany
            43 mins ago











          • @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
            33 mins ago

















          @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
          54 mins ago





          @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
          54 mins ago













          yes I added usetikzlibrarymatrix in the preamble

          – Hany
          52 mins ago





          yes I added usetikzlibrarymatrix in the preamble

          – Hany
          52 mins ago













          @JouleVShall I add the code into my post!

          – Hany
          50 mins ago






          @JouleVShall I add the code into my post!

          – Hany
          50 mins ago














          @JouleVYes. Thank you very much. That was the problem.

          – Hany
          43 mins ago





          @JouleVYes. Thank you very much. That was the problem.

          – Hany
          43 mins ago













          @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
          33 mins ago






          @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
          33 mins ago












          2














          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
            30 mins ago











          • @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
            22 mins ago











          • @marmotThank you very much for your time

            – Hany
            17 mins ago















          2














          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
            30 mins ago











          • @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
            22 mins ago











          • @marmotThank you very much for your time

            – Hany
            17 mins ago













          2












          2








          2







          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 37 mins ago









          marmotmarmot

          117k5150283




          117k5150283












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

            – Hany
            30 mins ago











          • @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
            22 mins ago











          • @marmotThank you very much for your time

            – Hany
            17 mins ago

















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

            – Hany
            30 mins ago











          • @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
            22 mins ago











          • @marmotThank you very much for your time

            – Hany
            17 mins ago
















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

          – Hany
          30 mins ago





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

          – Hany
          30 mins ago













          @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
          22 mins ago





          @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
          22 mins ago













          @marmotThank you very much for your time

          – Hany
          17 mins ago





          @marmotThank you very much for your time

          – Hany
          17 mins ago

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%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

          Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

          Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

          Tom Holland Mục lục Đầu đời và giáo dục | Sự nghiệp | Cuộc sống cá nhân | Phim tham gia | Giải thưởng và đề cử | Chú thích | Liên kết ngoài | Trình đơn chuyển hướngProfile“Person Details for Thomas Stanley Holland, "England and Wales Birth Registration Index, 1837-2008" — FamilySearch.org”"Meet Tom Holland... the 16-year-old star of The Impossible""Schoolboy actor Tom Holland finds himself in Oscar contention for role in tsunami drama"“Naomi Watts on the Prince William and Harry's reaction to her film about the late Princess Diana”lưu trữ"Holland and Pflueger Are West End's Two New 'Billy Elliots'""I'm so envious of my son, the movie star! British writer Dominic Holland's spent 20 years trying to crack Hollywood - but he's been beaten to it by a very unlikely rival"“Richard and Margaret Povey of Jersey, Channel Islands, UK: Information about Thomas Stanley Holland”"Tom Holland to play Billy Elliot""New Billy Elliot leaving the garage"Billy Elliot the Musical - Tom Holland - Billy"A Tale of four Billys: Tom Holland""The Feel Good Factor""Thames Christian College schoolboys join Myleene Klass for The Feelgood Factor""Government launches £600,000 arts bursaries pilot""BILLY's Chapman, Holland, Gardner & Jackson-Keen Visit Prime Minister""Elton John 'blown away' by Billy Elliot fifth birthday" (video with John's interview and fragments of Holland's performance)"First News interviews Arrietty's Tom Holland"“33rd Critics' Circle Film Awards winners”“National Board of Review Current Awards”Bản gốc"Ron Howard Whaling Tale 'In The Heart Of The Sea' Casts Tom Holland"“'Spider-Man' Finds Tom Holland to Star as New Web-Slinger”lưu trữ“Captain America: Civil War (2016)”“Film Review: ‘Captain America: Civil War’”lưu trữ“‘Captain America: Civil War’ review: Choose your own avenger”lưu trữ“The Lost City of Z reviews”“Sony Pictures and Marvel Studios Find Their 'Spider-Man' Star and Director”“‘Mary Magdalene’, ‘Current War’ & ‘Wind River’ Get 2017 Release Dates From Weinstein”“Lionsgate Unleashing Daisy Ridley & Tom Holland Starrer ‘Chaos Walking’ In Cannes”“PTA's 'Master' Leads Chicago Film Critics Nominations, UPDATED: Houston and Indiana Critics Nominations”“Nominaciones Goya 2013 Telecinco Cinema – ENG”“Jameson Empire Film Awards: Martin Freeman wins best actor for performance in The Hobbit”“34th Annual Young Artist Awards”Bản gốc“Teen Choice Awards 2016—Captain America: Civil War Leads Second Wave of Nominations”“BAFTA Film Award Nominations: ‘La La Land’ Leads Race”“Saturn Awards Nominations 2017: 'Rogue One,' 'Walking Dead' Lead”Tom HollandTom HollandTom HollandTom Hollandmedia.gettyimages.comWorldCat Identities300279794no20130442900000 0004 0355 42791085670554170004732cb16706349t(data)XX5557367