From 9313259306ecfe652d5617d5921468b5b9565862 Mon Sep 17 00:00:00 2001 From: schrc3b6 Date: Wed, 21 Feb 2024 16:57:30 +0100 Subject: [PATCH] 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. --- beamerthemeawesome.sty | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/beamerthemeawesome.sty b/beamerthemeawesome.sty index b0eeb5a..4741727 100644 --- a/beamerthemeawesome.sty +++ b/beamerthemeawesome.sty @@ -84,7 +84,9 @@ \let\oldft\frametitle \renewcommand\frametitle[2][]{% \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% }