Say that I have a frame in Beamer like this (where I load the table from an external file):
\begin{frame}
\frametitle{Table Name}
\begin{table}[htbp]
\begin{tabular}{c | cccc}
\input{\dir/table}
\pause \begin{tikzpicture}[overlay]
\draw[red,ultra thick,rounded corners] (2.5,1.3) rectangle (3.4,4.2);
\end{tikzpicture}
\pause \begin{tikzpicture}[overlay]
\draw[red,ultra thick,rounded corners] (1.5,1.3) rectangle (2.4,4.2);
\end{tikzpicture}
\end{tabular}
\end{table}
\end{frame}
My goal is to highlight two different areas of the table with the overlaid tikzpicture's. I don't want the first highlight (or second) to appear until I advance the slide. When I advance it, I only want the first to appear and not the second. When I advance it again, I only want the second to appear, and not the first. The \pause
command gets me a lot of mileage, and I think the main issue is having the first highlight disappear when I am on the last slide and only want the second highlight.
Does the answer have to do with?: \setbeamercovered{transparent}
and
this: Make items disappear in beamer presentations
As requested, a MWE:
\documentclass[compress]{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
\frametitle{Table Name}
\begin{table}[htbp]
\begin{tabular}{c | cccc}
A & B& C& D\\
\hline
1 & 1& 6& 7\\
2 & 2& 5& 8\\
Total & 3& 4& 9 \\
\pause \begin{tikzpicture}[overlay]
\draw[red,ultra thick,rounded corners] (1,1) rectangle (2,2);
\end{tikzpicture}
\pause \begin{tikzpicture}[overlay]
\draw[red,ultra thick,rounded corners] (1,3) rectangle (2,4);
\end{tikzpicture}
\end{tabular}
\end{table}
\end{frame}
\end{document}