I'd like to draw arrows on a table, to obtain the following picture
So I wrote down this code:
\begin{tabular}{*{6}{|c}|}
\hline
\tikzmark{A}{A} & \tikzmark{B}{B} & \tikzmark{C}{C} & \tikzmark{D}{D} & \tikzmark{E}{E} &
\tikzmark{F}{F}\\
\hline
\end{tabular}
\begin{tikzpicture}[remember picture,overlay]
\draw [->] (pic cs:A) -- (pic cs:F);
\end{tikzpicture}
but it gives me this
instead of something like this (like I expect)
It's like the tikzpicture can't overlay the table, even if I have declared
\begin{tikzpicture}[remember picture,overlay]
How can I solve this issue?




\documentclass{article}\usepackage{tikz}\usetikzlibrary{tikzmark}and it has produced what I expected to see - an arrow across the cells of the table. I tried with each of pdflatex, xelatex, and lualatex. If you want to send me your full example, my email is on the tikzmark documentation. If you do send it, please also send the logfile and auxfile from your compilation. – Andrew Stacey Dec 06 '20 at 20:11