[Tex/LaTex] Suppress frame title when using allowframebreaks in beamer

beamer

How can I suppress the title completely on the continuation slides when using allowframebreaks in beamer?

In the example below, Title should only appear on the first slide.

\documentclass{beamer}

\begin{document}
\begin{frame}[allowframebreaks]{Title}
A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\
\framebreak
B\\ B\\ B\\ B\\ B\\ B\\ B\\\framebreak B\\ B\\ B\\ B\\ B\\ B\\
\end{frame}
\end{document}

Thanks.

Best Answer

You can patch \beamer@continueautobreak so that it doesn't call \frametitle or \framesubtitle:

\documentclass{beamer}

\usepackage{etoolbox}
\makeatletter
\patchcmd{\beamer@continueautobreak}{\frametitle}{\beamer@gobbleoptional}{}{\errmessage{failed to patch}}
\patchcmd{\beamer@continueautobreak}{\framesubtitle}{\beamer@gobbleoptional}{}{\errmessage{failed to patch}}
\makeatother

\begin{document}
\begin{frame}[allowframebreaks]{Title}
A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\ A\\
\framebreak
B\\ B\\ B\\ B\\ B\\ B\\ B\\\framebreak B\\ B\\ B\\ B\\ B\\ B\\
\end{frame}
\end{document}
Related Question