我正在创建 Beamer 演示文稿,我想将章节标题作为链接包含在带有超链接的标题中。我还希望目录显示在每个章节的开头,章节标题作为蓝色链接。我使用主题 Ilmenau。
当我这样做时,章节标题在框架的目录中和导航栏的目录中都显示为蓝色。然后,无法在导航栏中读取章节标题。
我能做些什么吗?
我还想删除标题和框架标题之间的空行,因为我不会使用子部分。该怎么做?
抱歉,我是 Beamer 的新手。
这是一个可重现的例子:
\documentclass{beamer}
\usepackage[UTF8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\usepackage{lmodern}
\usepackage{hyperref}
\usepackage{url}
\def\bibfont{\footnotesize}
\addto\captionsfrench{\def\contentsname{}}
\hypersetup{
colorlinks = true,
linkcolor=blue,
urlcolor=blue
}
\usetheme{Ilmenau}
\title[Meeting]{Meeting}
\subtitle{Subject of the meeting}
\author[M. Dupont]{P. Dupont\inst{1,2,3} \and P. Dupond\inst{1} \and E. Dupond\inst{2} \and F. Dupont\inst{3}}
\institute[Dupont's Institution]{
\inst{1}
Dupont Lab, France\\
Univ. of Dupont
\and
\inst{2}
Dupond, France\\
Univ. of Dupond
\and
\inst{3}
Dupond Factory, Paris
}
\date{17/09/2018}
\addtobeamertemplate{navigation symbols}{}{%
\usebeamerfont{footline}%
\usebeamercolor[fg]{footline}%
\hspace{1em}%
\insertframenumber/\inserttotalframenumber
}
\setbeamercolor{footline}{fg=blue}
\setbeamercolor{section in head/foot}{fg=white}
\begin{document}
\frame{\titlepage}
\AtBeginSection[]
{
\begin{frame}
\frametitle{Section's outline}
\tableofcontents[currentsection]
\end{frame}
%\setbeamercolor{section in toc}{fg=black}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Introduction}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{First subject}
\end{frame}
\begin{frame}{Second subject}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Organization}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{First subject}
\end{frame}
\begin{frame}{Second subject}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Development}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{First subject}
\end{frame}
\begin{frame}{Second subject}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Conclusion}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{First subject}
\end{frame}
\begin{frame}{Second subject}
\end{frame}
\end{document}
答案1
您可以使用以下方式更改目录条目的颜色
\setbeamercolor{section in toc}{fg=structure}
(我建议使用颜色
structure
而不是blue
,因为它blue
会与周围元素产生可怕的颜色冲突)隐藏子部分导航:
\makeatletter \beamer@theme@subsectionfalse \makeatother
你不需要
hyperref
用 beamer 加载包,beamer 已经为你提供了babel 选项
francais
已弃用,请french
改用
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{lmodern}
\def\bibfont{\footnotesize}
\addto\captionsfrench{\def\contentsname{}}
\usetheme{Ilmenau}
\makeatletter
\beamer@theme@subsectionfalse
\makeatother
\title[Meeting]{Meeting}
\subtitle{Subject of the meeting}
\author[M. Dupont]{P. Dupont\inst{1,2,3} \and P. Dupond\inst{1} \and E. Dupond\inst{2} \and F. Dupont\inst{3}}
\institute[Dupont's Institution]{
\inst{1}
Dupont Lab, France\\
Univ. of Dupont
\and
\inst{2}
Dupond, France\\
Univ. of Dupond
\and
\inst{3}
Dupond Factory, Paris
}
\date{17/09/2018}
\addtobeamertemplate{navigation symbols}{}{%
\usebeamerfont{footline}%
\usebeamercolor[fg]{footline}%
\hspace{1em}%
\insertframenumber/\inserttotalframenumber
}
\setbeamercolor{footline}{fg=structure}
\setbeamercolor{section in head/foot}{fg=white}
\setbeamercolor{section in toc}{fg=structure}
\begin{document}
\frame{\titlepage}
\AtBeginSection[]
{
\begin{frame}
\frametitle{Section's outline}
\tableofcontents[currentsection]
\end{frame}
%\setbeamercolor{section in toc}{fg=black}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Introduction}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{First subject}
\end{frame}
\begin{frame}{Second subject}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Organization}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{First subject}
\end{frame}
\begin{frame}{Second subject}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Development}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{First subject}
\end{frame}
\begin{frame}{Second subject}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Conclusion}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}{First subject}
\end{frame}
\begin{frame}{Second subject}
\end{frame}
\end{document}