I have a table that I want to overlay with arrows to show which cell in one column is connected to which cells to another column. Something like that:
Is this possible? I could use an external drawing app but this way the table would look inconsistent with the rest of the tables.
\begin{table}
\centering
\caption{BLAh-blah}
\begin{tabular}{|c|c|} \hline
AAA & 111 \\ \hline & 222\\ \hline
BBB & 333\\ \hline
& 444\\ \hline
CCC & 555\\ \hline \end{tabular}
\label{tab:tab1}
\end{table}
Some people suggest I do it on TikZ. So, how do I do it there? I have never worked with Tikz before?
Best Answer
Something likes this. Basically use of
\tikzmark
and\link
skill defined in the macros. Also, thanks to @AboAmmar for the `shorten >=xx pt' suggestion.Code