From: Michael Orlitzky Date: Sat, 13 Jul 2024 01:43:02 +0000 (-0400) Subject: beamerthememjo.sty: automatically generate subsection intros X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=8213f3a2a772b1461e5b402dd3577b0feef2d96c;p=beamer-mjo.git beamerthememjo.sty: automatically generate subsection intros --- diff --git a/beamerthememjo.sty b/beamerthememjo.sty index 3684bd2..15cb047 100644 --- a/beamerthememjo.sty +++ b/beamerthememjo.sty @@ -7,10 +7,10 @@ \usefonttheme{mjo} \usecolortheme{mjo} -% Create a slide introducing new sections. +% Introduce new sections with a slude announcing the current part and +% section. \AtBeginSection[]{ - \begin{frame} - \vfill + \begin{frame}[c] \begin{center} \usebeamerfont{title} \ifx\insertpart\@empty% @@ -19,7 +19,17 @@ \fi% \insertsectionhead\par% \end{center} - \vfill + \end{frame} +} + +% Introduce new subsections with a slide announcing the current +% subsection. This does NOT include the current part/section. +\AtBeginSubsection[]{ + \begin{frame}[c] + \begin{center} + \usebeamerfont{subsection} + \insertsubsectionhead + \end{center} \end{frame} }