I would like to add arrows that point to different parts of an equation in a beamer presentation. I would like to highlight them iteratively. I used this question to attempt this, but the arrows don't appear at all. I tried excluding the {\small ... }% environment but it did not fix it, not did getting rid of the highlighting or messing with the distances. Thanks for any help.
\documentclass[12pt,dvipsnames]{beamer}
\usetheme{metropolis}
\usepackage{textgreek}
\usepackage{tikz}
\newcommand{\tikzmark}[1]{\tikz[baseline,remember picture] \coordinate (#1) {};}
\usepackage{booktabs}
\usepackage[scale=2]{ccicons}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{subcaption}
\usepackage{caption}
\usepackage{multicol}
\usepackage{minted}
\usepackage{hyperref}
\hypersetup{
colorlinks = false,
linkbordercolor = {blue}
}
\title{Something Interesting}
\author{Name}
\date{\today}
\begin{document}
\maketitle
\begin{frame}[fragile]{Title}
{\small
\begin{equation}
\textrm{
Y\textsubscript{gt} =
\textbeta\textsubscript{0} +
\alert<2>{\tikzmark{V}\textbeta\textsubscript{1} A\textsubscript{1}} +
\alert<3>{\tikzmark{Vp}\textbeta\textsubscript{2} B\textsubscript{2}} +
\alert<4>{\tikzmark{Vt}\textbeta\textsubscript{3} C\textsubscript{3}} +
\alert<5>{\textgamma\textsubscript{4} X\textsubscript{4}} +
\textepsilon\textsubscript{...}
}
\end{equation}
\begin{tikzpicture}[overlay,remember picture]
\node (Ve) [below of = V, node distance = 4 em, anchor=west]{\footnotesize \textsf{Distribution volume}};
\draw[<-, in=180, out=-90] (V.south)++(.25em,-.5ex) to (Ve.west);
\node (Vpe) [below of = Vp, node distance = 3 em, anchor=west] {\footnotesize \textsf{Volume water in plasma}};
\draw[<-, in=180, out=-90] (Vp.south)++(.25em,-.5ex) to (Vpe.west);
\node (Vte) [below of = Vt, node distance = 2 em, anchor=west] {\footnotesize \textsf{Volume water in tissue}};
\draw[<-, in=180, out=-90] (Vt.south)++(.25em,-.5ex) to (Vte.west);
\end{tikzpicture}
}%
\end{frame}
\end{document}

tikzmark, use the package... https://ctan.org/pkg/tikzmark?lang=en – Rmano Feb 10 '21 at 16:57tikzmarkwithbeamerthat are sorted out in thetikzmarklibrary and which the naive version can fail on, particularly when there are overlays involved. It does mean a slight change to your code as you have to use thepic cs:...coordinate syntax to refer to tikzmarks and this means that they can't be used withbelow of, but there are simple ways to adjust the syntax to get the same positioning. – Andrew Stacey Feb 15 '21 at 21:27\textcommand (which\textrmis an alias for) and TikZ'sremember picturekey. Using\tikzmarkfrom the tikzmark package avoids this issue, but using an actual node does not. – Andrew Stacey Feb 16 '21 at 00:42