Support for framesubtitle

This commit is contained in:
Lukas Pietzschmann
2024-02-07 11:13:31 +01:00
parent 9678f6819b
commit dd6f24e935
2 changed files with 21 additions and 15 deletions

View File

@@ -301,22 +301,28 @@
} }
\setbeamertemplate{frametitle}{% \setbeamertemplate{frametitle}{%
\vspace{1em}% \vspace{1em}\hspace{-\beamer@leftsidebar}\begin{beamercolorbox}[wd=\beamer@leftsidebar]{frametitle}%
\beamercolorbox[leftskip=-\beamer@leftsidebar]{frametitle}% \ifx\insertsection\empty\else%
\strut\usebeamerfont{frametitle}\parbox{\dimexpr\beamer@leftsidebar}{\strut% \color{accent}\thesection.%
\ifx\insertsection\empty\else% \ifx\insertsubsection\empty%
\color{accent}\thesection.% \ifnum\framespersection>1%
\ifx\insertsubsection\empty% \color{black!25!white}\scalebox{.7}{\theframesinsection}%
\ifnum\framespersection>1% \fi%
\color{black!25!white}\scalebox{.7}{\theframesinsection}% \else%
\thesubsection.\color{black!25!white}%
\ifnum\framespersubsection>1%
\scalebox{.7}{\theframesinsubsection}%
\fi%
\fi% \fi%
\else% \fi
\thesubsection.\color{black!25!white}% \end{beamercolorbox}%
\ifnum\framespersubsection>1% \begin{beamercolorbox}{frametitle}%
\scalebox{.7}{\theframesinsubsection}% \insertframetitle%
\fi% \end{beamercolorbox}
\fi% \ifx\insertframesubtitle\empty\else%
\fi}\insertframetitle\endbeamercolorbox% \begin{beamercolorbox}{framesubtitle}%
\usebeamerfont{subtitle}\insertframesubtitle%
\end{beamercolorbox}\fi%
} }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Binary file not shown.