So, I am wondering if there is any sort of idea to achieve this goal.
Here is the minimal working example and the issue is mentioned on the last slide, too.
I also post the same question here,
https://tex.stackexchange.com/questions ... e-examples.
\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}
Thanks to the
LaTeX
community.