我有一个演示文稿,其中有章节和小节标题,它们显示在每节/小节的开头。我试图将它们分成两列。我已设法将原始目录设为两列格式,但随后在章节/小节标题处显示的目录不是两列格式。我希望得到一些帮助
我注意到的另一个问题是第一个目录中的两列没有对齐——第二列高于第一列。不知道为什么。
以下是 MWE:
\documentclass[table,xcolor=pdftex,dvipsnames]{beamer}
\usetheme{Madrid}
\usecolortheme{whale}
\beamertemplatenavigationsymbolsempty
\usepackage{multicol}
\AtBeginSection[]
{
\begin{frame}<beamer>
\frametitle{Outline}
\tableofcontents[
currentsection
]
\end{frame}
}
\AtBeginSubsection[]
{
\begin{frame}<beamer>
\frametitle{Outline}
\tableofcontents[
currentsection,currentsubsection
]
\end{frame}
}
\begin{document}
\section*{Outline}
\begin{frame}
\frametitle{Outline}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
\end{frame}
\section{Introduction -- Graph Types}
\section{Property Graph Processing}
\subsection{Classification}
\subsection{Online querying}
\subsection{Offline analytics}
\section{Graph Analytics Approaches}
\subsection{MapReduce \& Variants}
\subsection{Classification of Native Approaches}
\section{Graph Analytics Systems}
\subsection{Vertex-Centric BSP}
\subsection{Vertex-Centric Asynchronous}
\subsection{Vertex-Centric GAS}
\subsection{Block-Centric BSP}
\subsection{Edge-Centric BSP}
\addtocontents{toc}{\newpage}
\section{OLAP-Style Analytics}
\subsection{Graph Summarization}
\subsection{Snapshot-based Aggregation}
\subsection{Graph Cube}
\subsection{Pagrol}
\subsection{Gagg Model}
\end{document}
答案1
我不会将这个multicol
包与 beamer 一起使用,因为 beamer 有自己的列环境。这样可以避免顶部错位。
为了使节和小节也分为两列,请重复使用任何代码来获得这两列的toc
全局值。toc
toc
\documentclass[table,xcolor=pdftex,dvipsnames]{beamer}
\usetheme{Madrid}
\usecolortheme{whale}
\beamertemplatenavigationsymbolsempty
\AtBeginSection[]{
\begin{frame}<beamer>
\frametitle{Outline}
\begin{columns}[T]
\begin{column}{.45\textwidth}
\tableofcontents[currentsection,sections=1-4]
\end{column}
\begin{column}{.45\textwidth}
\tableofcontents[currentsection,sections=5]
\end{column}
\end{columns}
\end{frame}
}
\AtBeginSubSection[]{
\begin{frame}<beamer>
\frametitle{Outline}
\begin{columns}[T]
\begin{column}{.45\textwidth}
\tableofcontents[currentsection,currentsubsection,sections=1-4]
\end{column}
\begin{column}{.45\textwidth}
\tableofcontents[currentsection,currentsubsection,sections=5]
\end{column}
\end{columns}
\end{frame}
}
\begin{document}
\begin{frame}
\frametitle{Outline}
\begin{columns}[T]
\begin{column}{.45\textwidth}
\tableofcontents[sections=1-4]
\end{column}
\begin{column}{.45\textwidth}
\tableofcontents[sections=5]
\end{column}
\end{columns}
\end{frame}
\section{Introduction -- Graph Types}
\section{Property Graph Processing}
\subsection{Classification}
\subsection{Online querying}
\subsection{Offline analytics}
\begin{frame}\end{frame}
\section{Graph Analytics Approaches}
\subsection{MapReduce \& Variants}
\subsection{Classification of Native Approaches}
\begin{frame}\end{frame}
\section{Graph Analytics Systems}
\subsection{Vertex-Centric BSP}
\subsection{Vertex-Centric Asynchronous}
\subsection{Vertex-Centric GAS}
\subsection{Block-Centric BSP}
\subsection{Edge-Centric BSP}
\begin{frame}\end{frame}
%\addtocontents{toc}{\newpage}
\section{OLAP-Style Analytics}
\subsection{Graph Summarization}
\subsection{Snapshot-based Aggregation}
\subsection{Graph Cube}
\subsection{Pagrol}
\subsection{Gagg Model}
\begin{frame}\end{frame}
\end{document}