From 854476554db89fa03d9856f30a0353193e0b084a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 9 May 2025 10:58:45 -0400 Subject: [PATCH] beamer{outer,}thememjo.sty: disable section hyperlinks These aren't very useful, and they mess up the font color if you enable color for hyperlinks. --- beamerouterthememjo.sty | 4 ++++ beamerthememjo.sty | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/beamerouterthememjo.sty b/beamerouterthememjo.sty index 8539464..6ec8150 100644 --- a/beamerouterthememjo.sty +++ b/beamerouterthememjo.sty @@ -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% } diff --git a/beamerthememjo.sty b/beamerthememjo.sty index 15cb047..9db0135 100644 --- a/beamerthememjo.sty +++ b/beamerthememjo.sty @@ -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% @@ -19,17 +20,21 @@ \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} } -- 2.49.0