So while designing a beamer theme, I came across the neat solution to select page specific templates through the pagestyle (Theme with a different footline for the titlepage). While this works for a lot of the templates, it does not work for the frametitle
template, as you can see in my MWE:
\documentclass{beamer}
\defbeamertemplate*{frametitle}{regular}{Regular Frametitle}
\defbeamertemplate{frametitle}{special}{Special Frametitle}
\makeatletter
\def\ps@navigation@sectionpage{%
\setbeamertemplate{headline}{Special Headline}
\setbeamertemplate{frametitle}[special]
\setbeamertemplate{footline}{Special Footline}
}
\makeatother
\begin{document}
\begin{frame}
\frametitle{~}
This page shall have the regular frametitle
\end{frame}
\begin{frame}
\frametitle{~}
This page shall have the special headline, frametitle and footline
\makeatletter\thispagestyle{navigation@sectionpage}\makeatother
\end{frame}
\begin{frame}
\frametitle{~}
This page shall have the regular frametitle
\end{frame}
\end{document}
What I want to achieve is, that the framtitle is different through some sort of automatic for the slide that contains \tableofcontents
and I therefore wanted to introduce a macro that selects a special page style and then ejects \tableofcontents
. Maybe this is not the smartest solution, but is there another way to achieve the same behaviour for the frametitle
as with this pagestyle selection?