我有以下内容:
\begin{frame}{Questions}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
\end{frame}
这给了我
我真的不想在子部分之间分裂。可以这样做吗?
平均能量损失
\documentclass{beamer}
\usepackage{multicol}
\usetheme{default}
\begin{document}
\section{Problem Definition}
\subsection{Terminology}
\subsection{Naive Workflow}
\subsection{Fatal Problem}
\section{Current Solution}
\subsection{What we have}
\subsection{How we use it}
\section{How it Works}
\section{How to Build}
\section{Troubleshooting}
\subsection{No defaulting}
\subsection{Inconsistent defaulting}
\subsection{Most other problems}
\begin{frame}{Questions}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
\end{frame}
\end{document}
答案1
您可以手动拆分toc
:
\documentclass{beamer}
\usepackage{multicol}
\usetheme{default}
\begin{document}
\section{Problem Definition}
\subsection{Terminology}
\subsection{Naive Workflow}
\subsection{Fatal Problem}
\section{Current Solution}
\subsection{What we have}
\subsection{How we use it}
\section{How it Works}
\section{How to Build}
\section{Troubleshooting}
\subsection{No defaulting}
\subsection{Inconsistent defaulting}
\subsection{Most other problems}
\begin{frame}{Questions}
\begin{columns}[onlytextwidth,T]
\begin{column}{.45\textwidth}
\tableofcontents[sections=1-2]
\end{column}
\begin{column}{.45\textwidth}
\tableofcontents[sections=3-5]
\end{column}
\end{columns}
\end{frame}
\end{document}
答案2
multicols
不允许使用带星号的环境版本,因为消除平衡。
您可以通过在文档结构内放置标记来手动决定拆分。
下面我定义了两个\if
条件:\iffirsthalf
和\ifsecondhalf
,知道你想把它分成两半。然后,如果你只想要 ToC 的第一个标记集,你可以设置\firsthalftrue
和,或者如果你想要第二个标记集,你可以设置和:\secondhalffalse
\firsthalffalse
\secondhalftrue
\documentclass{beamer}
\let\Tiny\tiny% https://tex.stackexchange.com/a/94159/5764
\usetheme{default}
\newif\iffirsthalf
\newif\ifsecondhalf
\begin{document}
\addtocontents{toc}{\protect\iffirsthalf}% Start of first half...
\section{Problem Definition}
\subsection{Terminology}
\subsection{Naive Workflow}
\subsection{Fatal Problem}
\section{Current Solution}
\subsection{What we have}
\subsection{How we use it}
\addtocontents{toc}{\protect\fi% ...end of first half
\protect\ifsecondhalf}% Start of second half...
\section{How it Works}
\section{How to Build}
\section{Troubleshooting}
\subsection{No defaulting}
\subsection{Inconsistent defaulting}
\subsection{Most other problems}
\addtocontents{toc}{\protect\fi}% ...end of second half
\begin{frame}{Questions}
\begin{columns}[T]
\begin{column}{.4\linewidth}
\firsthalftrue\secondhalffalse
\tableofcontents
\end{column}
\begin{column}{.4\linewidth}
\firsthalffalse\secondhalftrue
\tableofcontents
\end{column}
\end{columns}
\end{frame}
\end{document}