在 Beamer 中点亮目录

在 Beamer 中点亮目录

我正在尝试为 Beamer 中的目录着色。默认情况下,当目录出现时,所有条目都是灰色的,但我希望它们按照我的主题着色。如何做到这一点?

MWE 如下

\documentclass[slidestop,compress,mathserif,11pt,xcolor=dvipsnames]{beamer}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} %Beamer theme v 2.2
\usepackage{kerkis}
\setbeamercovered{higly dynamic}
\usetheme{Ilmenau} % Beamer theme v 3.0
\useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top
\usefonttheme{serif}
\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}
\title[Short Title]{Full Title}
\author{Author}
\institute{Institute}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\frametitle{Contents}
\tiny{\tableofcontents[currentsection]}
\end{frame}

\section{first section}
\begin{frame}
Intro to section
\end{frame}

\subsection{first subsection}
\begin{frame}
Theory
\end{frame}

\subsection{second subsection}
\begin{frame}
Experiment
\end{frame}

\subsection{third subsection}
\begin{frame}
Results
\end{frame}

\section{Back up slides}

\begin{frame}
1st Back up slide
\end{frame}

\begin{frame}
2nd Back up slide
\end{frame}

\begin{frame}
3rd Back up slide
\end{frame}

\end{document}

答案1

ToC 从您的主题中继承颜色;问题是您正在使用

\tableofcontents[currentsection]

在第一个\section命令之前,因此没有当前部分要突出显示,因此所有信息都以阴影显示。只需删除[currentsection]

\documentclass[t,compress,11pt,xcolor=dvipsnames]{beamer}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} %Beamer theme v 2.2
\usefonttheme[onlymath]{serif}
\usepackage{kerkis}
\setbeamercovered{higly dynamic}
\usetheme{Ilmenau} % Beamer theme v 3.0
\useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top
\usefonttheme{serif}
\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}

\setbeamerfont{section in toc}{size=\tiny}
\setbeamerfont{subsection in toc}{size=\tiny}

\title[Short Title]{Full Title}
\author{Author}
\institute{Institute}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\frametitle{Contents}
\tableofcontents
\end{frame}

\section{first section}
\begin{frame}
Intro to section
\end{frame}

\subsection{first subsection}
\begin{frame}
Theory
\end{frame}

\subsection{second subsection}
\begin{frame}
Experiment
\end{frame}

\subsection{third subsection}
\begin{frame}
Results
\end{frame}

\section{Back up slides}

\begin{frame}
1st Back up slide
\end{frame}

\begin{frame}
2nd Back up slide
\end{frame}

\begin{frame}
3rd Back up slide
\end{frame}

\end{document}

在此处输入图片描述

或者,设置subsection in toc颜色,使用阴影LHCblue

\documentclass[t,compress,11pt,xcolor=dvipsnames]{beamer}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} %Beamer theme v 2.2
\usefonttheme[onlymath]{serif}
\usepackage{kerkis}
\setbeamercovered{higly dynamic}
\usetheme{Ilmenau} % Beamer theme v 3.0
\useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top
\usefonttheme{serif}
\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}

\setbeamerfont{section in toc}{size=\tiny}
\setbeamerfont{subsection in toc}{size=\tiny}
\setbeamercolor{subsection in toc}{fg=LHCblue!40!black}

\title[Short Title]{Full Title}
\author{Author}
\institute{Institute}

\begin{document}

\begin{frame}
\titlepage
\end{frame}

\begin{frame}
\frametitle{Contents}
\tableofcontents
\end{frame}

\section{first section}
\begin{frame}
Intro to section
\end{frame}

\subsection{first subsection}
\begin{frame}
Theory
\end{frame}

\subsection{second subsection}
\begin{frame}
Experiment
\end{frame}

\subsection{third subsection}
\begin{frame}
Results
\end{frame}

\section{Back up slides}

\begin{frame}
1st Back up slide
\end{frame}

\begin{frame}
2nd Back up slide
\end{frame}

\begin{frame}
3rd Back up slide
\end{frame}

\end{document}

在此处输入图片描述

如果你希望在每个部分的开头都有目录,你可以使用类似

\AtBeginSection[]
{
\begin{frame}<beamer>
\frametitle{Outline}
\tableofcontents[currentsection]
\end{frame}
}

在序言中。

相关内容