![使用 Beamer 清空目录](https://linux22.com/image/337426/%E4%BD%BF%E7%94%A8%20Beamer%20%E6%B8%85%E7%A9%BA%E7%9B%AE%E5%BD%95.png)
我的 beamer 目录是空的,我有 4 个部分和 3 个子部分,但它们都没有出现在目录中。这是我的代码:
\documentclass[smaller,t]{beamer}
\usepackage[frenchb]{babel}
\frenchbsetup{option1=false,option2=true,option3=false}
\usepackage{media9}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{subcaption}
\usepackage{amssymb}
\newcommand{\includemovie}[4] {\includemedia[width=#1,height=#2,activate=pageopen,addresource=#3,flashvars={src=#3&loop=true&controlBarAutoHide=false}]{#4}{StrobeMediaPlayback.swf}}
\usepackage{amsmath}
\usepackage{color}
\usepackage{isomath}
\usepackage{bm}
\usepackage{stmaryrd}
\usepackage[mathscr]{euscript}
{
\usetheme[width=1.5cm]{Berkeley}
\usecolortheme{beaver}
\usefonttheme{professionalfonts}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}{\raggedright\insertcaption\par}
\setbeamercovered{transparent}
}
\setbeamertemplate{sidebar right}{}
\setbeamertemplate{footline}[frame number]
\begin{document}
\begin{frame} % premier transparent
\frametitle{Plan de présentation}
\tableofcontents
\end{frame}
\section{Problématique}
\begin{frame}
\frametitle{Contexte industriel}
\end{frame}
\end{document}
答案1
代码
{
\usetheme[width=1.5cm]{Berkeley}
\usecolortheme{beamer}
\usefonttheme{professionalfonts}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}{\raggedright\insertcaption\par}
\setbeamercovered{transparent}
}
实际上所有设置都发生在一个{...}
组内,即设置在组结束后不再存在。
省略该{...}
对,则会\tableofcontents
出现在侧边栏中,但是,colortheme 对于这一点来说非常不方便!
\documentclass[smaller,t]{beamer}
\usepackage[frenchb]{babel}
%\frenchbsetup{option1=false,option2=true,option3=false}
\usepackage{media9}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{subcaption}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{color}
\usepackage{isomath}
\usepackage{bm}
\usepackage{stmaryrd}
\usepackage[mathscr]{euscript}
\newcommand{\includemovie}[4] {\includemedia[width=#1,height=#2,activate=pageopen,addresource=#3,flashvars={src=#3&loop=true&controlBarAutoHide=false}]{#4}{StrobeMediaPlayback.swf}}
\usetheme[width=1.5cm]{Berkeley}
\usecolortheme{crane}
%\usecolortheme{beaver}% hard to see!
\usefonttheme{professionalfonts}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}{\raggedright\insertcaption\par}
\setbeamercovered{transparent}
\setbeamertemplate{sidebar right}{}
\setbeamertemplate{footline}[frame number]
\begin{document}
\begin{frame}{Plan de présentation} % premier transparent
%\frametitle{Plan de présentation}
\tableofcontents[currentsection]
\end{frame}
\section{Problématique}
\begin{frame}{Contexte industriel}
\end{frame}
\section{Et maintenant}
\begin{frame}{Des baguettes}
\begin{center}
\includegraphics[scale=0.3]{Nl-baguettes2.jpg}
\captionof{figure}{Nom nom nom}
\end{center}
Source: \url{CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=422101}
\end{frame}
\end{document}