[Tex/LaTex] Annotate the table column highlighted by Tikzmark in Beamer

beamercolortablestikzmark

I would like to highlight columns in my table using Tikzmark in Beamer. Here bellow is an example which does the same thing but for the table rows. I would like to know if is it possible to do the same thing whith columns:

Annotate the table row highlighted by Tikzmark in Beamer

Thank you in advance.

Best,
T.

Best Answer

\documentclass{beamer}

\usetheme{CambridgeUS} 
\usecolortheme{beaver}

% The usual suspects
\usepackage{booktabs} % Tables
% The table highlighting for hypothesis discussion.
\usepackage[beamer,customcolors]{hf-tikz}
\usetikzlibrary{calc}

% To set the hypothesis highlighting boxes red.
\tikzset{hl/.style={
    set fill color=red!80!black!40,
    set border color=red!80!black,
  },
}

\begin{document}


\begin{frame}
\frametitle{Table highlighted by columns}

\[
\begin{array}{ccc}
\toprule
A & B & C \\
\midrule

1 &\tikzmarkin<1>{col}2 & 3 \\
4 & 5 & 6 \\
7 & 8\tikzmarkend{col} & 9 \\
\bottomrule
\end{array}% 
\]
\end{frame}

\end{document}

enter image description here