2 Comments

    • tom

      You could draw the arrow horizontally instead of vertically.

      \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 Hotschke Cancel reply