]> gitweb.michael.orlitzky.com - beamer-mjo.git/commitdiff
beamerthememjo.sty: automatically generate subsection intros
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 13 Jul 2024 01:43:02 +0000 (21:43 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 13 Jul 2024 01:43:53 +0000 (21:43 -0400)
beamerthememjo.sty

index 3684bd22fe268fb7735bf19b6336bd7dd138710c..15cb0479fc37b3c9d77b8cd59d4b7f1a765b2e55 100644 (file)
@@ -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%
       \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}
 }