]> gitweb.michael.orlitzky.com - beamer-mjo.git/commitdiff
beamer{outer,}thememjo.sty: disable section hyperlinks
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 9 May 2025 14:58:45 +0000 (10:58 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 9 May 2025 15:00:30 +0000 (11:00 -0400)
These aren't very useful, and they mess up the font color if you
enable color for hyperlinks.

beamerouterthememjo.sty
beamerthememjo.sty

index 8539464ed4450bf33d5d97659a26020558447d77..6ec81506956e1c2916260c6ab5cc1b70aed75455 100644 (file)
@@ -5,9 +5,12 @@
 \setbeamertemplate{page number in head/foot}[totalframenumber]%
 
 % Insert the Section (and optionally, Part:) into the header.
+% We disable hyperlinks in the header because they mess up
+% the font color and aren't terribly useful.
 \setbeamertemplate{headline}{
   \begin{beamercolorbox}[ht=3ex,dp=1.125ex,%
     leftskip=.3cm,rightskip=.3cm plus1fil]{title in head}%
+    \NoHyper%
     \usebeamerfont*{frametitle}
     \usebeamercolor[fg]{frametitle}
     \ifx\insertpart\@empty%
@@ -15,6 +18,7 @@
     \insertpart: %
     \fi%
     \insertsectionhead%
+    \endNoHyper%
   \end{beamercolorbox}%
   \vskip\parskip\par%
 }
index 15cb0479fc37b3c9d77b8cd59d4b7f1a765b2e55..9db0135947dd60c4b3dd834f6e7cd25bc1bf055b 100644 (file)
@@ -7,10 +7,11 @@
 \usefonttheme{mjo}
 \usecolortheme{mjo}
 
-% Introduce new sections with a slude announcing the current part and
-% section.
+% Introduce new sections with a slide announcing the current part and
+% section. Disable hyperlinking to avoid messing up the font color.
 \AtBeginSection[]{
   \begin{frame}[c]
+    \NoHyper%
     \begin{center}
       \usebeamerfont{title}
       \ifx\insertpart\@empty%
       \fi%
       \insertsectionhead\par%
     \end{center}
+    \endNoHyper%
   \end{frame}
 }
 
 % Introduce new subsections with a slide announcing the current
 % subsection. This does NOT include the current part/section.
+% Disable hyperlinking to avoid messing up the font color.
 \AtBeginSubsection[]{
   \begin{frame}[c]
+    \NoHyper%
     \begin{center}
       \usebeamerfont{subsection}
       \insertsubsectionhead
     \end{center}
+    \endNoHyper%
   \end{frame}
 }