
Estou tentando criar exemplos no título do quadro LaTeX Beamer, contá-los e referenciá-los no outro título do quadro. Pesquisando no Google, consegui contar os exemplos, mas não consegui referenciá-los no próximo slide do título.
Então, estou me perguntando se existe algum tipo de ideia para atingir esse objetivo.
Aqui está o exemplo mínimo de trabalho com o arquivo PDF gerado correspondente.
\documentclass[xcolor=dvipsnames]{beamer}
\usepackage[T1]{fontenc}
\usetheme{AnnArbor}
\usecolortheme{whale}
\setbeamercolor{title}{bg=RoyalPurple}
\setbeamercolor{frametitle}{fg=white,bg=RoyalPurple}
\usepackage{amsmath}
\newcounter{exm}
\newcommand\ExmT{%
\frametitle{\refstepcounter{exm}{Example}~\theexm}}
\resetcounteronoverlays{exm}
\begin{document}
\frame{
\ExmT
David Hilbert is a great Mathematician!
}
\frame{
\ExmT
Bernhard Riemann is another greatest mathematician in the history!
}
\frame{{How do you define Mathematics?}
Mathematics is a language of sciences. Moreover, $\cdots$
}
\frame{{Rmarks on Example 1}
{\color{red}\textbf{I am writing Remarks on Example 1 (on the title of this
frame) manually but is there a way to reference Example 1 automatically?}}
Not the frame number.
}
\end{document}