Fix title recursion for frame breaks

If allowframebreaks is used. The Title is repeated n times, with n the
number of used framebreaks. When allowframebreaks is used a short title for
the frame is automatically added. Since this theme renews the frametitle
command and appends the short title to the frametitle, the frametitle is
duplicated for each framebreak resulting in a slide with 4 titles on the
third framebreak.

This patch simply checks for the breakcount and if this is a frame with
multiple breaks the original frametitle command function is used.
This commit is contained in:
schrc3b6
2024-02-21 16:57:30 +01:00
committed by Lukas Pietzschmann
parent dd6f24e935
commit 9313259306

View File

@@ -84,7 +84,9 @@
\let\oldft\frametitle \let\oldft\frametitle
\renewcommand\frametitle[2][]{% \renewcommand\frametitle[2][]{%
\ifx\relax#1\relax\oldft{#2}\else% \ifx\relax#1\relax\oldft{#2}\else%
\oldft{#2\hfill\normalfont\large\color{darkgray}\raisebox{0.3ex}{#1}}% \ifnum\beamer@autobreakcount>0\oldft[#1]{#2}\else%
\oldft{#2\hfill\normalfont\large\color{darkgray}\raisebox{0.3ex}{#1}}%
\fi%
\fi% \fi%
} }