Here's the code I have to draw an arrow that points to a particular column of a table, I am somewhat satisfied with the output as is, but less satisfied with how I made it: the xshift and yshift number are chosen purely by blind trial and error, and I have so many similar tables to draw! What would be a more efficient and elegant way for positioning this arrow?
I probably could draw the table with tikz entirely, but that's a different story: the tables are created already, I then decided to add arrows to highlight some rows.
The code:
\documentclass{article}
\usepackage{tikz}
\usepackage{colortbl}
\usetikzlibrary{matrix}
\newcommand{\tikzmark}[1]{\tikz[overlay, remember picture] \coordinate (#1);}
\definecolor{Gray}{gray}{0.9}
\newcolumntype{g}{>{\columncolor{Gray}}c}
\begin{document}
\begin{table}[h]
\centering
\begin{tabular}{ccgcccc|c}
& 1 & 3/2 & 1/2 & 1/2 & 0 & 0 & 5/2 \\
& 0 & -5 & 0 & -2 & 1 & 0 & 1 \\ \rowcolor{Gray}
& 0 & -1/2 & 1/2 & -3/2 & 0 & 1 & 1/2 \\ \hline
$z$ & 0 & \tikzmark{here} -7/2 & 1/2 & -5/2 & 0 & 0 & -25/2 \\
\end{tabular}%
\end{table}
\tikz[overlay,remember picture] {
\draw[->,>=stealth] ([xshift=12pt,yshift=-25pt]here) -- ([xshift=12pt,yshift=-5pt]here);
}
\end{document}
The output:



\uparrowcharacter in a new row? – Thruston Jun 02 '14 at 08:04&&$\uparrow$\\would work. – Thruston Jun 02 '14 at 08:05$\Uparrow$and it worked well. I have like about 10 hours experience withtikzperhaps I am impulsed to learn everything thetikzway? – eN_Joy Jun 02 '14 at 16:24