2 Comments

    • tom

      You could draw the arrow horizontally instead of vertically.

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24
      25
      26
      27
      28
      29
      30
      31
      \documentclass[11pt]{article}
      \usepackage{subfig, tikz}
        
      \newcommand\tikzmark[2]{%
      \tikz[remember picture,baseline] \node[above, outer sep=0pt, inner sep=0pt] (#1){#2};%
      }
      \newcommand\link[2]{%
      \begin{tikzpicture}[remember picture, overlay, >=stealth, shift={(0,0)}]
        \draw[->] (#1) to (#2);
      \end{tikzpicture}%
      }
        
      \begin{document}
        
      \begin{table}[ht]
      \begin{center}
      \caption{Tables without repetitive values.}
      \label{tab:main}
      \begin{tabular}{lrrrr}
      \hline
      Obs.&First&Second&Third&Forth\\
      \hline
      1&5.21&5.32&3.21&2.30\\
      2&\tikzmark{a}{5.32}&&&\tikzmark{b}{\phantom{5}}\\
      3&4.58&5.32&3.12&2.30\\
      \hline
      \end{tabular}
      \link{a}{b}
      \end{center}
      \end{table}
      \end{document}

Leave a Reply to HotschkeCancel reply