I am trying to put a tikz overlay picture - A nice, thick red 'X' over a word - On the frame title of a Beamer frame. However, the overlay tikz picture in the frame does not recognize the nodes given in the title.
For example, I try:
\newcommand{\crd}[1]{\tikz[overlay, remember picture, baseline=.5ex]\coordinate (#1);}
\begin{frame}
\frametitle{Some \crd{p}Crossthis\crd{q} Title}
\begin{tikzpicture}[overlay, remember picture]
\draw[red, thick] (p) -- (q);
\end{tikzpicture}
\end{frame}
And I get:
ERROR: Package pgf Error: No shape named q is known.
How can I put an overlay on the title?