我当前的幻灯片设计为显示当前部分以及每个部分开头的子部分/子子部分。
梅威瑟:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usetheme{Madrid}
\usecolortheme{default}
\title[MyUNI]
{The Paper Title ...}
\author[F.~Author, S.~Author \& L.~Author]
{F.~Author\inst{1} S.~Author\inst{1,}\inst{2} \and L.~ Author\inst{1,}\inst{3}}
\institute[UNI]
{
\inst{1}%
The University
\and
\inst{2}%
Institute ABC
\and
\inst{3}%
Lab XYZ
}
\date[VLC2021]
{The Conference 2021 \\October 15-19, 2021}
\AtBeginSection[]
{\begin{frame}
\frametitle{ToC}
\tableofcontents[currentsection,
hideothersubsections,
subsubsectionstyle=show/show/show/hide
]
\end{frame}
}
\setbeamertemplate{caption}[numbered]
\begin{document}
\frame{\titlepage}
\section{Introduction}
\subsection{Conceptual Framework}
\begin{frame}{Conceptual Framework}
\begin{figure}
\centering
\includegraphics[scale=0.5]{example-image-c}
\caption{Conceptual framework.}
\end{figure}
\end{frame}
\section{Data Anlysis}
\subsection{Method 1}
\subsection{Method 2}
\section{Proposed Algorithm}
\subsection{Algo\_blah}
\subsubsection{hypothesis test 1}
\subsubsection{hypothesis test 2}
\subsubsection{hypothesis test 3}
\begin{frame}{Review}
Some text here.
\end{frame}
\end{document}
但是,我想在第一个条目上显示所有章节和小节(即标题幻灯片之后),这样我就可以在我开始之前讨论我的演示结构并让人们了解我的演讲的大概情况。
我如何实现这个目标?
答案1
您可以使用开关来决定这是否是第一个目录。如果它是第一个显示的目录,则显示所有内容,否则仅显示当前部分。以下通过引入来实现这一点\iffirsttoc
:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usetheme{Madrid}
\usecolortheme{default}
\title[MyUNI]
{The Paper Title ...}
\author[F.~Author, S.~Author \& L.~Author]
{F.~Author\inst{1} S.~Author\inst{1,}\inst{2} \and L.~ Author\inst{1,}\inst{3}}
\institute[UNI]
{
\inst{1}%
The University
\and
\inst{2}%
Institute ABC
\and
\inst{3}%
Lab XYZ
}
\date[VLC2021]
{The Conference 2021 \\October 15-19, 2021}
\newif\iffirsttoc
\firsttoctrue
\AtBeginSection[]
{\begin{frame}
\frametitle{ToC}
\iffirsttoc
\tableofcontents
\global\firsttocfalse
\else
\tableofcontents[currentsection,
hideothersubsections,
subsubsectionstyle=show/show/show/hide
]
\fi
\end{frame}
}
\setbeamertemplate{caption}[numbered]
\begin{document}
\frame{\titlepage}
\section{Introduction}
\subsection{Conceptual Framework}
\begin{frame}{Conceptual Framework}
\begin{figure}
\centering
\includegraphics[scale=0.5]{example-image-c}
\caption{Conceptual framework.}
\end{figure}
\end{frame}
\section{Data Anlysis}
\subsection{Method 1}
\subsection{Method 2}
\section{Proposed Algorithm}
\subsection{Algo\_blah}
\subsubsection{hypothesis test 1}
\subsubsection{hypothesis test 2}
\subsubsection{hypothesis test 3}
\begin{frame}{Review}
Some text here.
\end{frame}
\end{document}