Is Using Tikzmarknode within Tikz Matrix possible?












3















I was not able to use tikzmarknodes within the matrix example below. I have included an image of the arrows I want to draw and the MWE



documentclass{article}
usepackage{tikz}
usetikzlibrary{tikzmark,matrix,calc}

begin{document}
begin{tikzpicture}[declare function={f(x)=1/ln(2)*ln(x);}]
matrix[matrix of math nodes,nodes={align=center,inner sep=3pt,
text height=1.5ex,text depth=.25ex,draw=gray!40,ultra thin},draw,inner
sep=0pt,ampersand replacement=&] (mat1)
at (-5,0){
|[fill=green!40!gray,text width=15mm]| x, text{or} 2^{y} & |
[fill=green!40!gray,text width=11mm]| y \
|[text width=15mm]| 1 & |[text
width=11mm]|
{pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult}}\
|[text width=15mm]| 2
& |[text width=11mm]|
{pgfmathparse{f(2)}pgfmathprintnumber{pgfmathresult}}\
|[text width=15mm]| 4
& |[text width=11mm]|
{pgfmathparse{f(4)}pgfmathprintnumber{pgfmathresult}}\
|[text width=15mm]| 8
& |[text width=11mm]|
{pgfmathparse{f(8)}pgfmathprintnumber{pgfmathresult}}\
|[text width=15mm]| frac{1}{2}
& |[text width=11mm]|
{pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult}}\
|[text width=15mm]| frac{1}{4}
& |[text width=11mm]|
{pgfmathparse{f(.25)}pgfmathprintnumber{pgfmathresult}}\
};
node at ([yshift=-.8cm,xshift=2cm]mat1.south)
[circle,draw,font=small,inner sep=1pt] (1){$1$};
node at (1) [right=5pt,text=red] {Select $y$};
node at ([yshift=-1.5cm,xshift=.7cm]mat1.south)
[circle,draw,font=small,inner sep=1pt] (2){$2$};
node at (2) [right=5pt,text=red] {Compute $x$};
end{tikzpicture}
end{document}


This outputs:



enter image description here



The arrows I am trying to draw :



enter image description here










share|improve this question



























    3















    I was not able to use tikzmarknodes within the matrix example below. I have included an image of the arrows I want to draw and the MWE



    documentclass{article}
    usepackage{tikz}
    usetikzlibrary{tikzmark,matrix,calc}

    begin{document}
    begin{tikzpicture}[declare function={f(x)=1/ln(2)*ln(x);}]
    matrix[matrix of math nodes,nodes={align=center,inner sep=3pt,
    text height=1.5ex,text depth=.25ex,draw=gray!40,ultra thin},draw,inner
    sep=0pt,ampersand replacement=&] (mat1)
    at (-5,0){
    |[fill=green!40!gray,text width=15mm]| x, text{or} 2^{y} & |
    [fill=green!40!gray,text width=11mm]| y \
    |[text width=15mm]| 1 & |[text
    width=11mm]|
    {pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult}}\
    |[text width=15mm]| 2
    & |[text width=11mm]|
    {pgfmathparse{f(2)}pgfmathprintnumber{pgfmathresult}}\
    |[text width=15mm]| 4
    & |[text width=11mm]|
    {pgfmathparse{f(4)}pgfmathprintnumber{pgfmathresult}}\
    |[text width=15mm]| 8
    & |[text width=11mm]|
    {pgfmathparse{f(8)}pgfmathprintnumber{pgfmathresult}}\
    |[text width=15mm]| frac{1}{2}
    & |[text width=11mm]|
    {pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult}}\
    |[text width=15mm]| frac{1}{4}
    & |[text width=11mm]|
    {pgfmathparse{f(.25)}pgfmathprintnumber{pgfmathresult}}\
    };
    node at ([yshift=-.8cm,xshift=2cm]mat1.south)
    [circle,draw,font=small,inner sep=1pt] (1){$1$};
    node at (1) [right=5pt,text=red] {Select $y$};
    node at ([yshift=-1.5cm,xshift=.7cm]mat1.south)
    [circle,draw,font=small,inner sep=1pt] (2){$2$};
    node at (2) [right=5pt,text=red] {Compute $x$};
    end{tikzpicture}
    end{document}


    This outputs:



    enter image description here



    The arrows I am trying to draw :



    enter image description here










    share|improve this question

























      3












      3








      3








      I was not able to use tikzmarknodes within the matrix example below. I have included an image of the arrows I want to draw and the MWE



      documentclass{article}
      usepackage{tikz}
      usetikzlibrary{tikzmark,matrix,calc}

      begin{document}
      begin{tikzpicture}[declare function={f(x)=1/ln(2)*ln(x);}]
      matrix[matrix of math nodes,nodes={align=center,inner sep=3pt,
      text height=1.5ex,text depth=.25ex,draw=gray!40,ultra thin},draw,inner
      sep=0pt,ampersand replacement=&] (mat1)
      at (-5,0){
      |[fill=green!40!gray,text width=15mm]| x, text{or} 2^{y} & |
      [fill=green!40!gray,text width=11mm]| y \
      |[text width=15mm]| 1 & |[text
      width=11mm]|
      {pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult}}\
      |[text width=15mm]| 2
      & |[text width=11mm]|
      {pgfmathparse{f(2)}pgfmathprintnumber{pgfmathresult}}\
      |[text width=15mm]| 4
      & |[text width=11mm]|
      {pgfmathparse{f(4)}pgfmathprintnumber{pgfmathresult}}\
      |[text width=15mm]| 8
      & |[text width=11mm]|
      {pgfmathparse{f(8)}pgfmathprintnumber{pgfmathresult}}\
      |[text width=15mm]| frac{1}{2}
      & |[text width=11mm]|
      {pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult}}\
      |[text width=15mm]| frac{1}{4}
      & |[text width=11mm]|
      {pgfmathparse{f(.25)}pgfmathprintnumber{pgfmathresult}}\
      };
      node at ([yshift=-.8cm,xshift=2cm]mat1.south)
      [circle,draw,font=small,inner sep=1pt] (1){$1$};
      node at (1) [right=5pt,text=red] {Select $y$};
      node at ([yshift=-1.5cm,xshift=.7cm]mat1.south)
      [circle,draw,font=small,inner sep=1pt] (2){$2$};
      node at (2) [right=5pt,text=red] {Compute $x$};
      end{tikzpicture}
      end{document}


      This outputs:



      enter image description here



      The arrows I am trying to draw :



      enter image description here










      share|improve this question














      I was not able to use tikzmarknodes within the matrix example below. I have included an image of the arrows I want to draw and the MWE



      documentclass{article}
      usepackage{tikz}
      usetikzlibrary{tikzmark,matrix,calc}

      begin{document}
      begin{tikzpicture}[declare function={f(x)=1/ln(2)*ln(x);}]
      matrix[matrix of math nodes,nodes={align=center,inner sep=3pt,
      text height=1.5ex,text depth=.25ex,draw=gray!40,ultra thin},draw,inner
      sep=0pt,ampersand replacement=&] (mat1)
      at (-5,0){
      |[fill=green!40!gray,text width=15mm]| x, text{or} 2^{y} & |
      [fill=green!40!gray,text width=11mm]| y \
      |[text width=15mm]| 1 & |[text
      width=11mm]|
      {pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult}}\
      |[text width=15mm]| 2
      & |[text width=11mm]|
      {pgfmathparse{f(2)}pgfmathprintnumber{pgfmathresult}}\
      |[text width=15mm]| 4
      & |[text width=11mm]|
      {pgfmathparse{f(4)}pgfmathprintnumber{pgfmathresult}}\
      |[text width=15mm]| 8
      & |[text width=11mm]|
      {pgfmathparse{f(8)}pgfmathprintnumber{pgfmathresult}}\
      |[text width=15mm]| frac{1}{2}
      & |[text width=11mm]|
      {pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult}}\
      |[text width=15mm]| frac{1}{4}
      & |[text width=11mm]|
      {pgfmathparse{f(.25)}pgfmathprintnumber{pgfmathresult}}\
      };
      node at ([yshift=-.8cm,xshift=2cm]mat1.south)
      [circle,draw,font=small,inner sep=1pt] (1){$1$};
      node at (1) [right=5pt,text=red] {Select $y$};
      node at ([yshift=-1.5cm,xshift=.7cm]mat1.south)
      [circle,draw,font=small,inner sep=1pt] (2){$2$};
      node at (2) [right=5pt,text=red] {Compute $x$};
      end{tikzpicture}
      end{document}


      This outputs:



      enter image description here



      The arrows I am trying to draw :



      enter image description here







      tikz-pgf tikzmark






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 14 hours ago









      MathScholarMathScholar

      80329




      80329






















          2 Answers
          2






          active

          oldest

          votes


















          6














          You do not need tikzmark here because tikzmark is needed to make a non-node a node, but everything you are playing with here are nodes. EDIT: Fixed the directions of the arrows (big thanks to manoooh) and borrowed column 1/.append style={nodes={text width=15mm}},column 2/.append style={nodes={text width=9mm}} from Zarkos answer. (However, I disagree with replacing pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult} by something using pgfmathtruncatemacro because this won't work once you have non-integer results.)



          documentclass{article}
          usepackage{amsmath}
          usepackage{tikz}
          usetikzlibrary{matrix}
          begin{document}
          begin{tikzpicture}[declare function={f(x)=1/ln(2)*ln(x);}]
          matrix[matrix of math nodes,nodes={align=center,inner sep=3pt,
          text height=1.5ex,text depth=.25ex,draw=gray!40,ultra thin},
          draw,inner sep=0pt,ampersand replacement=&,
          column 1/.append style={nodes={text width=15mm}},
          column 2/.append style={nodes={text width=9mm}} ] (mat1)
          at (-5,0){
          |[fill=green!40!gray]| x~text{or}~2^{y} & |
          [fill=green!40!gray]| y \
          1 & {pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult}}\
          2 & {pgfmathparse{f(2)}pgfmathprintnumber{pgfmathresult}}\
          4 & {pgfmathparse{f(4)}pgfmathprintnumber{pgfmathresult}}\
          8 & {pgfmathparse{f(8)}pgfmathprintnumber{pgfmathresult}}\
          frac{1}{2} & {pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult}}\
          frac{1}{4} & {pgfmathparse{f(.25)}pgfmathprintnumber{pgfmathresult}}\
          };
          node at ([yshift=-.8cm,xshift=2cm]mat1.south)
          [circle,draw,font=small,inner sep=1pt,label={[red]right:Select $y$}] (1){$1$};
          node at ([yshift=-1.5cm,xshift=.7cm]mat1.south)
          [circle,draw,font=small,inner sep=1pt,label={[red]right:Compute
          $x$}] (2){$2$};
          draw[latex-] (mat1-7-1|-mat1.south) |- (2);
          draw[latex-] (mat1-7-2|-mat1.south) |- (1);
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer


























          • with the same names I sensed something was not right, but it was the only way I knew how to get that specific output.

            – MathScholar
            13 hours ago













          • @MathScholar My bad! I thought you overwrote nodes but you didn't.

            – marmot
            13 hours ago











          • alright then I sensed there was a more "advanced" way to write it! ;)

            – MathScholar
            13 hours ago






          • 1





            Nice answer marmot! I think the arrows should go in the other direction.

            – manooooh
            11 hours ago











          • I'm in chat - and yes, let's clean up these comments.

            – Loop Space
            8 hours ago



















          4














          off-topic (since topic is solved by @marmot answer), but it may be handy at writing of your matrices ...




          • with use of column 1/.append style={nodes={text width=15mm} (and similarly for column 2) you can remove |[text width=11mm]| from all cells

          • with use of pgfmathtruncatemacro{L}{f(<value>)}L instead pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult} gives slightly shorter code

          • for nodes below matrix i would define common style


          • use of ampersand replacement=& is not necessary



            documentclass{article}
            usepackage{amsmath}
            usepackage{tikz}
            usetikzlibrary{matrix}

            begin{document}
            begin{tikzpicture}[
            declare function = {f(x)=1/ln(2)*ln(x);},
            circ/.style = {circle,draw,font=small,inner sep=1pt, % <---
            label={[red]right:#1}} % <---
            ]
            matrix[matrix of math nodes,
            nodes = {align=center,inner sep=3pt,
            text height=2ex, text depth=1ex, % <---
            draw=gray!40,very thin},
            draw, inner sep=0pt,
            column 1/.append style={nodes={text width=15mm}}, % <---
            column 2/.append style={nodes={text width=9mm}} % <---
            ] (mat1)
            {
            |[fill=green!40!gray]| xtext{, or }2^{y} % <---
            & |[fill=green!40!gray]| y \ % <---
            1 & {pgfmathtruncatemacro{L}{f(1)}L} \ % <---
            2 & {pgfmathtruncatemacro{L}{f(2)}L} \
            4 & {pgfmathtruncatemacro{L}{f(4)}L} \
            8 & {pgfmathtruncatemacro{L}{f(8)}L} \
            frac{1}{2} & {pgfmathtruncatemacro{L}{f(0.5)}L} \
            frac{1}{4} & {pgfmathtruncatemacro{L}{f(0.25)}L} \
            };
            node at ([yshift=- 8mm] mat1.south east) [circ=Select $y$] (c1) {1}; % <---
            node at ([yshift=-18mm] mat1-7-2) [circ=Compute $x$] (c2) {2}; % <---
            draw[latex-] (mat1-7-2) |- (c1); % <---
            draw[latex-] (mat1-7-1) |- (c2); % <---
            end{tikzpicture}
            end{document}



          enter image description here



          edit:




          • corrected direction of arrows


          • added version with use of original way of calculation of values in the second column, i.e. with pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult} (as noted marmot in his answer, it enable calculation of real values), for which is defined new command calculation :



            documentclass[tikz, margin=3mm]{standalone}
            usetikzlibrary{matrix}
            usepackage{amsmath}
            begin{tikzpicture}[
            declare function = {f(x)=1/ln(2)*ln(x);},
            circ/.style = {circle,draw,font=small,inner sep=1pt, % <---
            label={[red]right:#1}} % <---
            ]
            newcommandcalculation[1]{pgfmathparse{f(#1)}%
            pgfmathprintnumber{pgfmathresult}} % <---
            matrix[matrix of math nodes,
            nodes = {text height=1.5ex, text depth=0.5ex, % <---
            align=center, inner ysep=4pt,
            draw=gray!40,very thin},
            draw, inner sep=0pt,
            column 1/.append style={nodes={text width=15mm}},
            column 2/.append style={nodes={text width=11mm}},
            row 1/.style = {nodes={fill=green!40!gray}} % <---
            ] (mat1)
            {
            xtext{, or }2^{y} % <---
            & y \ % <---
            1 & {calculation{1}} \ % <---
            2 & {calculation{2}} \
            4 & {calculation{4}} \
            8 & {calculation{8}} \
            frac{1}{2} & {calculation{0.5}} \
            frac{1}{4} & {calculation{0.25}} \
            };
            node at ([yshift=- 8mm] mat1.south east) [circ=Select $y$] (c1) {1}; % <---
            node at ([yshift=-18mm] mat1-7-2) [circ=Compute $x$] (c2) {2}; % <---
            draw[latex-] (mat1-7-2) |- (c1); % <---
            draw[latex-] (mat1-7-1) |- (c2); % <---
            end{tikzpicture}
            end{document}



          the result is the same as above.






          share|improve this answer


























          • I appreciate these posts. This morning I used the code: draw[-latex,red] ([xshift=-2pt]2.west) |- (mat1-7-1|-2)--(mat1-7-1|-mat1.south); draw[-latex,red] ([xshift=-2pt]1.west) |- (mat1-7-2|-1)--(mat1-7-2|-mat1.south); to get the arrows to go the other

            – MathScholar
            4 hours ago











          • I need these sort of posts to become better at the programming

            – MathScholar
            3 hours 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%2f473633%2fis-using-tikzmarknode-within-tikz-matrix-possible%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









          6














          You do not need tikzmark here because tikzmark is needed to make a non-node a node, but everything you are playing with here are nodes. EDIT: Fixed the directions of the arrows (big thanks to manoooh) and borrowed column 1/.append style={nodes={text width=15mm}},column 2/.append style={nodes={text width=9mm}} from Zarkos answer. (However, I disagree with replacing pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult} by something using pgfmathtruncatemacro because this won't work once you have non-integer results.)



          documentclass{article}
          usepackage{amsmath}
          usepackage{tikz}
          usetikzlibrary{matrix}
          begin{document}
          begin{tikzpicture}[declare function={f(x)=1/ln(2)*ln(x);}]
          matrix[matrix of math nodes,nodes={align=center,inner sep=3pt,
          text height=1.5ex,text depth=.25ex,draw=gray!40,ultra thin},
          draw,inner sep=0pt,ampersand replacement=&,
          column 1/.append style={nodes={text width=15mm}},
          column 2/.append style={nodes={text width=9mm}} ] (mat1)
          at (-5,0){
          |[fill=green!40!gray]| x~text{or}~2^{y} & |
          [fill=green!40!gray]| y \
          1 & {pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult}}\
          2 & {pgfmathparse{f(2)}pgfmathprintnumber{pgfmathresult}}\
          4 & {pgfmathparse{f(4)}pgfmathprintnumber{pgfmathresult}}\
          8 & {pgfmathparse{f(8)}pgfmathprintnumber{pgfmathresult}}\
          frac{1}{2} & {pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult}}\
          frac{1}{4} & {pgfmathparse{f(.25)}pgfmathprintnumber{pgfmathresult}}\
          };
          node at ([yshift=-.8cm,xshift=2cm]mat1.south)
          [circle,draw,font=small,inner sep=1pt,label={[red]right:Select $y$}] (1){$1$};
          node at ([yshift=-1.5cm,xshift=.7cm]mat1.south)
          [circle,draw,font=small,inner sep=1pt,label={[red]right:Compute
          $x$}] (2){$2$};
          draw[latex-] (mat1-7-1|-mat1.south) |- (2);
          draw[latex-] (mat1-7-2|-mat1.south) |- (1);
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer


























          • with the same names I sensed something was not right, but it was the only way I knew how to get that specific output.

            – MathScholar
            13 hours ago













          • @MathScholar My bad! I thought you overwrote nodes but you didn't.

            – marmot
            13 hours ago











          • alright then I sensed there was a more "advanced" way to write it! ;)

            – MathScholar
            13 hours ago






          • 1





            Nice answer marmot! I think the arrows should go in the other direction.

            – manooooh
            11 hours ago











          • I'm in chat - and yes, let's clean up these comments.

            – Loop Space
            8 hours ago
















          6














          You do not need tikzmark here because tikzmark is needed to make a non-node a node, but everything you are playing with here are nodes. EDIT: Fixed the directions of the arrows (big thanks to manoooh) and borrowed column 1/.append style={nodes={text width=15mm}},column 2/.append style={nodes={text width=9mm}} from Zarkos answer. (However, I disagree with replacing pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult} by something using pgfmathtruncatemacro because this won't work once you have non-integer results.)



          documentclass{article}
          usepackage{amsmath}
          usepackage{tikz}
          usetikzlibrary{matrix}
          begin{document}
          begin{tikzpicture}[declare function={f(x)=1/ln(2)*ln(x);}]
          matrix[matrix of math nodes,nodes={align=center,inner sep=3pt,
          text height=1.5ex,text depth=.25ex,draw=gray!40,ultra thin},
          draw,inner sep=0pt,ampersand replacement=&,
          column 1/.append style={nodes={text width=15mm}},
          column 2/.append style={nodes={text width=9mm}} ] (mat1)
          at (-5,0){
          |[fill=green!40!gray]| x~text{or}~2^{y} & |
          [fill=green!40!gray]| y \
          1 & {pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult}}\
          2 & {pgfmathparse{f(2)}pgfmathprintnumber{pgfmathresult}}\
          4 & {pgfmathparse{f(4)}pgfmathprintnumber{pgfmathresult}}\
          8 & {pgfmathparse{f(8)}pgfmathprintnumber{pgfmathresult}}\
          frac{1}{2} & {pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult}}\
          frac{1}{4} & {pgfmathparse{f(.25)}pgfmathprintnumber{pgfmathresult}}\
          };
          node at ([yshift=-.8cm,xshift=2cm]mat1.south)
          [circle,draw,font=small,inner sep=1pt,label={[red]right:Select $y$}] (1){$1$};
          node at ([yshift=-1.5cm,xshift=.7cm]mat1.south)
          [circle,draw,font=small,inner sep=1pt,label={[red]right:Compute
          $x$}] (2){$2$};
          draw[latex-] (mat1-7-1|-mat1.south) |- (2);
          draw[latex-] (mat1-7-2|-mat1.south) |- (1);
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer


























          • with the same names I sensed something was not right, but it was the only way I knew how to get that specific output.

            – MathScholar
            13 hours ago













          • @MathScholar My bad! I thought you overwrote nodes but you didn't.

            – marmot
            13 hours ago











          • alright then I sensed there was a more "advanced" way to write it! ;)

            – MathScholar
            13 hours ago






          • 1





            Nice answer marmot! I think the arrows should go in the other direction.

            – manooooh
            11 hours ago











          • I'm in chat - and yes, let's clean up these comments.

            – Loop Space
            8 hours ago














          6












          6








          6







          You do not need tikzmark here because tikzmark is needed to make a non-node a node, but everything you are playing with here are nodes. EDIT: Fixed the directions of the arrows (big thanks to manoooh) and borrowed column 1/.append style={nodes={text width=15mm}},column 2/.append style={nodes={text width=9mm}} from Zarkos answer. (However, I disagree with replacing pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult} by something using pgfmathtruncatemacro because this won't work once you have non-integer results.)



          documentclass{article}
          usepackage{amsmath}
          usepackage{tikz}
          usetikzlibrary{matrix}
          begin{document}
          begin{tikzpicture}[declare function={f(x)=1/ln(2)*ln(x);}]
          matrix[matrix of math nodes,nodes={align=center,inner sep=3pt,
          text height=1.5ex,text depth=.25ex,draw=gray!40,ultra thin},
          draw,inner sep=0pt,ampersand replacement=&,
          column 1/.append style={nodes={text width=15mm}},
          column 2/.append style={nodes={text width=9mm}} ] (mat1)
          at (-5,0){
          |[fill=green!40!gray]| x~text{or}~2^{y} & |
          [fill=green!40!gray]| y \
          1 & {pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult}}\
          2 & {pgfmathparse{f(2)}pgfmathprintnumber{pgfmathresult}}\
          4 & {pgfmathparse{f(4)}pgfmathprintnumber{pgfmathresult}}\
          8 & {pgfmathparse{f(8)}pgfmathprintnumber{pgfmathresult}}\
          frac{1}{2} & {pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult}}\
          frac{1}{4} & {pgfmathparse{f(.25)}pgfmathprintnumber{pgfmathresult}}\
          };
          node at ([yshift=-.8cm,xshift=2cm]mat1.south)
          [circle,draw,font=small,inner sep=1pt,label={[red]right:Select $y$}] (1){$1$};
          node at ([yshift=-1.5cm,xshift=.7cm]mat1.south)
          [circle,draw,font=small,inner sep=1pt,label={[red]right:Compute
          $x$}] (2){$2$};
          draw[latex-] (mat1-7-1|-mat1.south) |- (2);
          draw[latex-] (mat1-7-2|-mat1.south) |- (1);
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer















          You do not need tikzmark here because tikzmark is needed to make a non-node a node, but everything you are playing with here are nodes. EDIT: Fixed the directions of the arrows (big thanks to manoooh) and borrowed column 1/.append style={nodes={text width=15mm}},column 2/.append style={nodes={text width=9mm}} from Zarkos answer. (However, I disagree with replacing pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult} by something using pgfmathtruncatemacro because this won't work once you have non-integer results.)



          documentclass{article}
          usepackage{amsmath}
          usepackage{tikz}
          usetikzlibrary{matrix}
          begin{document}
          begin{tikzpicture}[declare function={f(x)=1/ln(2)*ln(x);}]
          matrix[matrix of math nodes,nodes={align=center,inner sep=3pt,
          text height=1.5ex,text depth=.25ex,draw=gray!40,ultra thin},
          draw,inner sep=0pt,ampersand replacement=&,
          column 1/.append style={nodes={text width=15mm}},
          column 2/.append style={nodes={text width=9mm}} ] (mat1)
          at (-5,0){
          |[fill=green!40!gray]| x~text{or}~2^{y} & |
          [fill=green!40!gray]| y \
          1 & {pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult}}\
          2 & {pgfmathparse{f(2)}pgfmathprintnumber{pgfmathresult}}\
          4 & {pgfmathparse{f(4)}pgfmathprintnumber{pgfmathresult}}\
          8 & {pgfmathparse{f(8)}pgfmathprintnumber{pgfmathresult}}\
          frac{1}{2} & {pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult}}\
          frac{1}{4} & {pgfmathparse{f(.25)}pgfmathprintnumber{pgfmathresult}}\
          };
          node at ([yshift=-.8cm,xshift=2cm]mat1.south)
          [circle,draw,font=small,inner sep=1pt,label={[red]right:Select $y$}] (1){$1$};
          node at ([yshift=-1.5cm,xshift=.7cm]mat1.south)
          [circle,draw,font=small,inner sep=1pt,label={[red]right:Compute
          $x$}] (2){$2$};
          draw[latex-] (mat1-7-1|-mat1.south) |- (2);
          draw[latex-] (mat1-7-2|-mat1.south) |- (1);
          end{tikzpicture}
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 6 hours ago

























          answered 13 hours ago









          marmotmarmot

          97.9k4113217




          97.9k4113217













          • with the same names I sensed something was not right, but it was the only way I knew how to get that specific output.

            – MathScholar
            13 hours ago













          • @MathScholar My bad! I thought you overwrote nodes but you didn't.

            – marmot
            13 hours ago











          • alright then I sensed there was a more "advanced" way to write it! ;)

            – MathScholar
            13 hours ago






          • 1





            Nice answer marmot! I think the arrows should go in the other direction.

            – manooooh
            11 hours ago











          • I'm in chat - and yes, let's clean up these comments.

            – Loop Space
            8 hours ago



















          • with the same names I sensed something was not right, but it was the only way I knew how to get that specific output.

            – MathScholar
            13 hours ago













          • @MathScholar My bad! I thought you overwrote nodes but you didn't.

            – marmot
            13 hours ago











          • alright then I sensed there was a more "advanced" way to write it! ;)

            – MathScholar
            13 hours ago






          • 1





            Nice answer marmot! I think the arrows should go in the other direction.

            – manooooh
            11 hours ago











          • I'm in chat - and yes, let's clean up these comments.

            – Loop Space
            8 hours ago

















          with the same names I sensed something was not right, but it was the only way I knew how to get that specific output.

          – MathScholar
          13 hours ago







          with the same names I sensed something was not right, but it was the only way I knew how to get that specific output.

          – MathScholar
          13 hours ago















          @MathScholar My bad! I thought you overwrote nodes but you didn't.

          – marmot
          13 hours ago





          @MathScholar My bad! I thought you overwrote nodes but you didn't.

          – marmot
          13 hours ago













          alright then I sensed there was a more "advanced" way to write it! ;)

          – MathScholar
          13 hours ago





          alright then I sensed there was a more "advanced" way to write it! ;)

          – MathScholar
          13 hours ago




          1




          1





          Nice answer marmot! I think the arrows should go in the other direction.

          – manooooh
          11 hours ago





          Nice answer marmot! I think the arrows should go in the other direction.

          – manooooh
          11 hours ago













          I'm in chat - and yes, let's clean up these comments.

          – Loop Space
          8 hours ago





          I'm in chat - and yes, let's clean up these comments.

          – Loop Space
          8 hours ago











          4














          off-topic (since topic is solved by @marmot answer), but it may be handy at writing of your matrices ...




          • with use of column 1/.append style={nodes={text width=15mm} (and similarly for column 2) you can remove |[text width=11mm]| from all cells

          • with use of pgfmathtruncatemacro{L}{f(<value>)}L instead pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult} gives slightly shorter code

          • for nodes below matrix i would define common style


          • use of ampersand replacement=& is not necessary



            documentclass{article}
            usepackage{amsmath}
            usepackage{tikz}
            usetikzlibrary{matrix}

            begin{document}
            begin{tikzpicture}[
            declare function = {f(x)=1/ln(2)*ln(x);},
            circ/.style = {circle,draw,font=small,inner sep=1pt, % <---
            label={[red]right:#1}} % <---
            ]
            matrix[matrix of math nodes,
            nodes = {align=center,inner sep=3pt,
            text height=2ex, text depth=1ex, % <---
            draw=gray!40,very thin},
            draw, inner sep=0pt,
            column 1/.append style={nodes={text width=15mm}}, % <---
            column 2/.append style={nodes={text width=9mm}} % <---
            ] (mat1)
            {
            |[fill=green!40!gray]| xtext{, or }2^{y} % <---
            & |[fill=green!40!gray]| y \ % <---
            1 & {pgfmathtruncatemacro{L}{f(1)}L} \ % <---
            2 & {pgfmathtruncatemacro{L}{f(2)}L} \
            4 & {pgfmathtruncatemacro{L}{f(4)}L} \
            8 & {pgfmathtruncatemacro{L}{f(8)}L} \
            frac{1}{2} & {pgfmathtruncatemacro{L}{f(0.5)}L} \
            frac{1}{4} & {pgfmathtruncatemacro{L}{f(0.25)}L} \
            };
            node at ([yshift=- 8mm] mat1.south east) [circ=Select $y$] (c1) {1}; % <---
            node at ([yshift=-18mm] mat1-7-2) [circ=Compute $x$] (c2) {2}; % <---
            draw[latex-] (mat1-7-2) |- (c1); % <---
            draw[latex-] (mat1-7-1) |- (c2); % <---
            end{tikzpicture}
            end{document}



          enter image description here



          edit:




          • corrected direction of arrows


          • added version with use of original way of calculation of values in the second column, i.e. with pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult} (as noted marmot in his answer, it enable calculation of real values), for which is defined new command calculation :



            documentclass[tikz, margin=3mm]{standalone}
            usetikzlibrary{matrix}
            usepackage{amsmath}
            begin{tikzpicture}[
            declare function = {f(x)=1/ln(2)*ln(x);},
            circ/.style = {circle,draw,font=small,inner sep=1pt, % <---
            label={[red]right:#1}} % <---
            ]
            newcommandcalculation[1]{pgfmathparse{f(#1)}%
            pgfmathprintnumber{pgfmathresult}} % <---
            matrix[matrix of math nodes,
            nodes = {text height=1.5ex, text depth=0.5ex, % <---
            align=center, inner ysep=4pt,
            draw=gray!40,very thin},
            draw, inner sep=0pt,
            column 1/.append style={nodes={text width=15mm}},
            column 2/.append style={nodes={text width=11mm}},
            row 1/.style = {nodes={fill=green!40!gray}} % <---
            ] (mat1)
            {
            xtext{, or }2^{y} % <---
            & y \ % <---
            1 & {calculation{1}} \ % <---
            2 & {calculation{2}} \
            4 & {calculation{4}} \
            8 & {calculation{8}} \
            frac{1}{2} & {calculation{0.5}} \
            frac{1}{4} & {calculation{0.25}} \
            };
            node at ([yshift=- 8mm] mat1.south east) [circ=Select $y$] (c1) {1}; % <---
            node at ([yshift=-18mm] mat1-7-2) [circ=Compute $x$] (c2) {2}; % <---
            draw[latex-] (mat1-7-2) |- (c1); % <---
            draw[latex-] (mat1-7-1) |- (c2); % <---
            end{tikzpicture}
            end{document}



          the result is the same as above.






          share|improve this answer


























          • I appreciate these posts. This morning I used the code: draw[-latex,red] ([xshift=-2pt]2.west) |- (mat1-7-1|-2)--(mat1-7-1|-mat1.south); draw[-latex,red] ([xshift=-2pt]1.west) |- (mat1-7-2|-1)--(mat1-7-2|-mat1.south); to get the arrows to go the other

            – MathScholar
            4 hours ago











          • I need these sort of posts to become better at the programming

            – MathScholar
            3 hours ago
















          4














          off-topic (since topic is solved by @marmot answer), but it may be handy at writing of your matrices ...




          • with use of column 1/.append style={nodes={text width=15mm} (and similarly for column 2) you can remove |[text width=11mm]| from all cells

          • with use of pgfmathtruncatemacro{L}{f(<value>)}L instead pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult} gives slightly shorter code

          • for nodes below matrix i would define common style


          • use of ampersand replacement=& is not necessary



            documentclass{article}
            usepackage{amsmath}
            usepackage{tikz}
            usetikzlibrary{matrix}

            begin{document}
            begin{tikzpicture}[
            declare function = {f(x)=1/ln(2)*ln(x);},
            circ/.style = {circle,draw,font=small,inner sep=1pt, % <---
            label={[red]right:#1}} % <---
            ]
            matrix[matrix of math nodes,
            nodes = {align=center,inner sep=3pt,
            text height=2ex, text depth=1ex, % <---
            draw=gray!40,very thin},
            draw, inner sep=0pt,
            column 1/.append style={nodes={text width=15mm}}, % <---
            column 2/.append style={nodes={text width=9mm}} % <---
            ] (mat1)
            {
            |[fill=green!40!gray]| xtext{, or }2^{y} % <---
            & |[fill=green!40!gray]| y \ % <---
            1 & {pgfmathtruncatemacro{L}{f(1)}L} \ % <---
            2 & {pgfmathtruncatemacro{L}{f(2)}L} \
            4 & {pgfmathtruncatemacro{L}{f(4)}L} \
            8 & {pgfmathtruncatemacro{L}{f(8)}L} \
            frac{1}{2} & {pgfmathtruncatemacro{L}{f(0.5)}L} \
            frac{1}{4} & {pgfmathtruncatemacro{L}{f(0.25)}L} \
            };
            node at ([yshift=- 8mm] mat1.south east) [circ=Select $y$] (c1) {1}; % <---
            node at ([yshift=-18mm] mat1-7-2) [circ=Compute $x$] (c2) {2}; % <---
            draw[latex-] (mat1-7-2) |- (c1); % <---
            draw[latex-] (mat1-7-1) |- (c2); % <---
            end{tikzpicture}
            end{document}



          enter image description here



          edit:




          • corrected direction of arrows


          • added version with use of original way of calculation of values in the second column, i.e. with pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult} (as noted marmot in his answer, it enable calculation of real values), for which is defined new command calculation :



            documentclass[tikz, margin=3mm]{standalone}
            usetikzlibrary{matrix}
            usepackage{amsmath}
            begin{tikzpicture}[
            declare function = {f(x)=1/ln(2)*ln(x);},
            circ/.style = {circle,draw,font=small,inner sep=1pt, % <---
            label={[red]right:#1}} % <---
            ]
            newcommandcalculation[1]{pgfmathparse{f(#1)}%
            pgfmathprintnumber{pgfmathresult}} % <---
            matrix[matrix of math nodes,
            nodes = {text height=1.5ex, text depth=0.5ex, % <---
            align=center, inner ysep=4pt,
            draw=gray!40,very thin},
            draw, inner sep=0pt,
            column 1/.append style={nodes={text width=15mm}},
            column 2/.append style={nodes={text width=11mm}},
            row 1/.style = {nodes={fill=green!40!gray}} % <---
            ] (mat1)
            {
            xtext{, or }2^{y} % <---
            & y \ % <---
            1 & {calculation{1}} \ % <---
            2 & {calculation{2}} \
            4 & {calculation{4}} \
            8 & {calculation{8}} \
            frac{1}{2} & {calculation{0.5}} \
            frac{1}{4} & {calculation{0.25}} \
            };
            node at ([yshift=- 8mm] mat1.south east) [circ=Select $y$] (c1) {1}; % <---
            node at ([yshift=-18mm] mat1-7-2) [circ=Compute $x$] (c2) {2}; % <---
            draw[latex-] (mat1-7-2) |- (c1); % <---
            draw[latex-] (mat1-7-1) |- (c2); % <---
            end{tikzpicture}
            end{document}



          the result is the same as above.






          share|improve this answer


























          • I appreciate these posts. This morning I used the code: draw[-latex,red] ([xshift=-2pt]2.west) |- (mat1-7-1|-2)--(mat1-7-1|-mat1.south); draw[-latex,red] ([xshift=-2pt]1.west) |- (mat1-7-2|-1)--(mat1-7-2|-mat1.south); to get the arrows to go the other

            – MathScholar
            4 hours ago











          • I need these sort of posts to become better at the programming

            – MathScholar
            3 hours ago














          4












          4








          4







          off-topic (since topic is solved by @marmot answer), but it may be handy at writing of your matrices ...




          • with use of column 1/.append style={nodes={text width=15mm} (and similarly for column 2) you can remove |[text width=11mm]| from all cells

          • with use of pgfmathtruncatemacro{L}{f(<value>)}L instead pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult} gives slightly shorter code

          • for nodes below matrix i would define common style


          • use of ampersand replacement=& is not necessary



            documentclass{article}
            usepackage{amsmath}
            usepackage{tikz}
            usetikzlibrary{matrix}

            begin{document}
            begin{tikzpicture}[
            declare function = {f(x)=1/ln(2)*ln(x);},
            circ/.style = {circle,draw,font=small,inner sep=1pt, % <---
            label={[red]right:#1}} % <---
            ]
            matrix[matrix of math nodes,
            nodes = {align=center,inner sep=3pt,
            text height=2ex, text depth=1ex, % <---
            draw=gray!40,very thin},
            draw, inner sep=0pt,
            column 1/.append style={nodes={text width=15mm}}, % <---
            column 2/.append style={nodes={text width=9mm}} % <---
            ] (mat1)
            {
            |[fill=green!40!gray]| xtext{, or }2^{y} % <---
            & |[fill=green!40!gray]| y \ % <---
            1 & {pgfmathtruncatemacro{L}{f(1)}L} \ % <---
            2 & {pgfmathtruncatemacro{L}{f(2)}L} \
            4 & {pgfmathtruncatemacro{L}{f(4)}L} \
            8 & {pgfmathtruncatemacro{L}{f(8)}L} \
            frac{1}{2} & {pgfmathtruncatemacro{L}{f(0.5)}L} \
            frac{1}{4} & {pgfmathtruncatemacro{L}{f(0.25)}L} \
            };
            node at ([yshift=- 8mm] mat1.south east) [circ=Select $y$] (c1) {1}; % <---
            node at ([yshift=-18mm] mat1-7-2) [circ=Compute $x$] (c2) {2}; % <---
            draw[latex-] (mat1-7-2) |- (c1); % <---
            draw[latex-] (mat1-7-1) |- (c2); % <---
            end{tikzpicture}
            end{document}



          enter image description here



          edit:




          • corrected direction of arrows


          • added version with use of original way of calculation of values in the second column, i.e. with pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult} (as noted marmot in his answer, it enable calculation of real values), for which is defined new command calculation :



            documentclass[tikz, margin=3mm]{standalone}
            usetikzlibrary{matrix}
            usepackage{amsmath}
            begin{tikzpicture}[
            declare function = {f(x)=1/ln(2)*ln(x);},
            circ/.style = {circle,draw,font=small,inner sep=1pt, % <---
            label={[red]right:#1}} % <---
            ]
            newcommandcalculation[1]{pgfmathparse{f(#1)}%
            pgfmathprintnumber{pgfmathresult}} % <---
            matrix[matrix of math nodes,
            nodes = {text height=1.5ex, text depth=0.5ex, % <---
            align=center, inner ysep=4pt,
            draw=gray!40,very thin},
            draw, inner sep=0pt,
            column 1/.append style={nodes={text width=15mm}},
            column 2/.append style={nodes={text width=11mm}},
            row 1/.style = {nodes={fill=green!40!gray}} % <---
            ] (mat1)
            {
            xtext{, or }2^{y} % <---
            & y \ % <---
            1 & {calculation{1}} \ % <---
            2 & {calculation{2}} \
            4 & {calculation{4}} \
            8 & {calculation{8}} \
            frac{1}{2} & {calculation{0.5}} \
            frac{1}{4} & {calculation{0.25}} \
            };
            node at ([yshift=- 8mm] mat1.south east) [circ=Select $y$] (c1) {1}; % <---
            node at ([yshift=-18mm] mat1-7-2) [circ=Compute $x$] (c2) {2}; % <---
            draw[latex-] (mat1-7-2) |- (c1); % <---
            draw[latex-] (mat1-7-1) |- (c2); % <---
            end{tikzpicture}
            end{document}



          the result is the same as above.






          share|improve this answer















          off-topic (since topic is solved by @marmot answer), but it may be handy at writing of your matrices ...




          • with use of column 1/.append style={nodes={text width=15mm} (and similarly for column 2) you can remove |[text width=11mm]| from all cells

          • with use of pgfmathtruncatemacro{L}{f(<value>)}L instead pgfmathparse{f(.5)}pgfmathprintnumber{pgfmathresult} gives slightly shorter code

          • for nodes below matrix i would define common style


          • use of ampersand replacement=& is not necessary



            documentclass{article}
            usepackage{amsmath}
            usepackage{tikz}
            usetikzlibrary{matrix}

            begin{document}
            begin{tikzpicture}[
            declare function = {f(x)=1/ln(2)*ln(x);},
            circ/.style = {circle,draw,font=small,inner sep=1pt, % <---
            label={[red]right:#1}} % <---
            ]
            matrix[matrix of math nodes,
            nodes = {align=center,inner sep=3pt,
            text height=2ex, text depth=1ex, % <---
            draw=gray!40,very thin},
            draw, inner sep=0pt,
            column 1/.append style={nodes={text width=15mm}}, % <---
            column 2/.append style={nodes={text width=9mm}} % <---
            ] (mat1)
            {
            |[fill=green!40!gray]| xtext{, or }2^{y} % <---
            & |[fill=green!40!gray]| y \ % <---
            1 & {pgfmathtruncatemacro{L}{f(1)}L} \ % <---
            2 & {pgfmathtruncatemacro{L}{f(2)}L} \
            4 & {pgfmathtruncatemacro{L}{f(4)}L} \
            8 & {pgfmathtruncatemacro{L}{f(8)}L} \
            frac{1}{2} & {pgfmathtruncatemacro{L}{f(0.5)}L} \
            frac{1}{4} & {pgfmathtruncatemacro{L}{f(0.25)}L} \
            };
            node at ([yshift=- 8mm] mat1.south east) [circ=Select $y$] (c1) {1}; % <---
            node at ([yshift=-18mm] mat1-7-2) [circ=Compute $x$] (c2) {2}; % <---
            draw[latex-] (mat1-7-2) |- (c1); % <---
            draw[latex-] (mat1-7-1) |- (c2); % <---
            end{tikzpicture}
            end{document}



          enter image description here



          edit:




          • corrected direction of arrows


          • added version with use of original way of calculation of values in the second column, i.e. with pgfmathparse{f(1)}pgfmathprintnumber{pgfmathresult} (as noted marmot in his answer, it enable calculation of real values), for which is defined new command calculation :



            documentclass[tikz, margin=3mm]{standalone}
            usetikzlibrary{matrix}
            usepackage{amsmath}
            begin{tikzpicture}[
            declare function = {f(x)=1/ln(2)*ln(x);},
            circ/.style = {circle,draw,font=small,inner sep=1pt, % <---
            label={[red]right:#1}} % <---
            ]
            newcommandcalculation[1]{pgfmathparse{f(#1)}%
            pgfmathprintnumber{pgfmathresult}} % <---
            matrix[matrix of math nodes,
            nodes = {text height=1.5ex, text depth=0.5ex, % <---
            align=center, inner ysep=4pt,
            draw=gray!40,very thin},
            draw, inner sep=0pt,
            column 1/.append style={nodes={text width=15mm}},
            column 2/.append style={nodes={text width=11mm}},
            row 1/.style = {nodes={fill=green!40!gray}} % <---
            ] (mat1)
            {
            xtext{, or }2^{y} % <---
            & y \ % <---
            1 & {calculation{1}} \ % <---
            2 & {calculation{2}} \
            4 & {calculation{4}} \
            8 & {calculation{8}} \
            frac{1}{2} & {calculation{0.5}} \
            frac{1}{4} & {calculation{0.25}} \
            };
            node at ([yshift=- 8mm] mat1.south east) [circ=Select $y$] (c1) {1}; % <---
            node at ([yshift=-18mm] mat1-7-2) [circ=Compute $x$] (c2) {2}; % <---
            draw[latex-] (mat1-7-2) |- (c1); % <---
            draw[latex-] (mat1-7-1) |- (c2); % <---
            end{tikzpicture}
            end{document}



          the result is the same as above.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 4 hours ago

























          answered 11 hours ago









          ZarkoZarko

          123k865162




          123k865162













          • I appreciate these posts. This morning I used the code: draw[-latex,red] ([xshift=-2pt]2.west) |- (mat1-7-1|-2)--(mat1-7-1|-mat1.south); draw[-latex,red] ([xshift=-2pt]1.west) |- (mat1-7-2|-1)--(mat1-7-2|-mat1.south); to get the arrows to go the other

            – MathScholar
            4 hours ago











          • I need these sort of posts to become better at the programming

            – MathScholar
            3 hours ago



















          • I appreciate these posts. This morning I used the code: draw[-latex,red] ([xshift=-2pt]2.west) |- (mat1-7-1|-2)--(mat1-7-1|-mat1.south); draw[-latex,red] ([xshift=-2pt]1.west) |- (mat1-7-2|-1)--(mat1-7-2|-mat1.south); to get the arrows to go the other

            – MathScholar
            4 hours ago











          • I need these sort of posts to become better at the programming

            – MathScholar
            3 hours ago

















          I appreciate these posts. This morning I used the code: draw[-latex,red] ([xshift=-2pt]2.west) |- (mat1-7-1|-2)--(mat1-7-1|-mat1.south); draw[-latex,red] ([xshift=-2pt]1.west) |- (mat1-7-2|-1)--(mat1-7-2|-mat1.south); to get the arrows to go the other

          – MathScholar
          4 hours ago





          I appreciate these posts. This morning I used the code: draw[-latex,red] ([xshift=-2pt]2.west) |- (mat1-7-1|-2)--(mat1-7-1|-mat1.south); draw[-latex,red] ([xshift=-2pt]1.west) |- (mat1-7-2|-1)--(mat1-7-2|-mat1.south); to get the arrows to go the other

          – MathScholar
          4 hours ago













          I need these sort of posts to become better at the programming

          – MathScholar
          3 hours ago





          I need these sort of posts to become better at the programming

          – MathScholar
          3 hours 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%2f473633%2fis-using-tikzmarknode-within-tikz-matrix-possible%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

          How to label and detect the document text images

          Vallis Paradisi

          Tabula Rosettana