In Re-using the title of the previous Beamer slide, Andrew Stacey gave a solution for repeating frametitle and framesubtitle to the next frame.
However it does not work for framesubtitle. How should I modify the commands in order to make it work?
Example.
\documentclass{beamer}
\usepackage[utf8]{inputenc}
%\url{https://tex.stackexchange.com/q/66274/86}
\makeatletter
\def\beamer@checkframetitle{%
\begingroup
\edef\temp{%
\endgroup
\noexpand\frametitle
[\unexpanded\expandafter{\beamer@savedshortframetitle}]%
{\unexpanded\expandafter{\beamer@savedframetitle}}%
}
\temp
\@ifnextchar\bgroup\beamer@inlineframetitle{}}
\long\def\beamer@@frametitle[#1]#2{%
\beamer@ifempty{#2}{}{%
\gdef\insertframetitle{{#2\ifnum\beamer@autobreakcount>0\relax{}\space\usebeamertemplate*{frametitle
continuation}\fi}}%
\gdef\beamer@frametitle{#2}%
\gdef\beamer@shortframetitle{#1}%
\global\let\beamer@savedshortframetitle\beamer@shortframetitle
\global\let\beamer@savedframetitle\beamer@frametitle
}%
}
\global\let\beamer@savedshortframetitle\@empty
\global\let\beamer@savedframetitle\@empty
\makeatother
% \end{add previous title and subtitle}
\title{Test Title}
\author{Pablo}
\date{September 23, 2013}
\institute{Teste Institute}
\begin{document}
\frame{\titlepage}
\frame{
\frametitle{Title}
\framesubtitle{Subtitle}
\begin{itemize}
\item{Testing}
\end{itemize}
}
\frame{
\begin{itemize}
\item{New item}
\end{itemize}
}
\end{document}
I just edited the question adding an example code.
My problem is that in both examples from the links there is no \framsubtitle being used. I added a subtitle to the example you posted and it is not carried to the next slide.
In my example, I expect the "Subtitle" to be in both slides, however it just appear in the first one.
What am I doing wrong?
Thanks Again!!
– Pablo Musa Sep 21 '13 at 18:29\framesubtitle, and my initial assumption was that it was the short title (ie the optional argument to\frametitle), hence my confusion. – Andrew Stacey Sep 21 '13 at 19:43