如何在投影機中明確分割長 TOC?

如何在投影機中明確分割長 TOC?

假設我有一個很長的目錄beamer,由於該allowframebreaks選項,LaTeX 將其擴展為兩張(或更多)幻燈片。

\documentclass[12pt]{beamer}
\usetheme{madrid}
\usepackage[american]{babel}
\usepackage[utf8]{inputenx}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\title{List of Donald Duck universe characters}
\author{Walt Disney}

\begin{document}

\section{Main characters}
\subsection{Donald Duck}
\subsection{Daisy Duck}
\subsection{Huey, Dewey, and Louie}
\subsection{Scrooge McDuck}
\subsection{Ludwig Von Drake}

\section{Relatives}
\subsection{Duck family (Disney)}
\subsection{Clan McDuck}

\section{Duck characters}
\subsection{Umperio Bogarto}
\subsection{Bum Bum Ghigno}
\subsection{Magica De Spell}
\subsection{Evroniani}
\subsection{Flintheart Glomgold}
\subsection{Gloria}
\subsection{Gotrocks}
\subsection{Grand Mogul}
\subsection{Mata Harrier}
\subsection{Brigitta MacBridge}

\begin{frame}[allowframebreaks]{Donald Duck universe characters}
\tableofcontents
\end{frame}

\end{document}

第一張投影片已填入最大範圍,其餘部分位於第二張投影片上(頂部對齊)。但是,我想對其進行微調,以便第1 節和第2 節顯示在幻燈片1 上,而第3 節(包括其所有小節)顯示在幻燈片2 上。垂直居中,而不是頂部對齊。我還想在後續投影片上保留自動標題編號,即 I、II、III。

我知道關於\framebreak,但不知道該放在哪裡! \tableofcontents[hideothersubsections]作為在這裡建議似乎也沒有達到目的。

答案1

\documentclass[12pt]{beamer}
\usetheme{Madrid}
\usepackage[american]{babel}
\usepackage[utf8]{inputenx}
\usepackage[T1]{fontenc}
\usepackage{lmodern}

\title{List of Donald Duck universe characters}
\author{Walt Disney}

\begin{document}

\section{Main characters}
\subsection{Donald Duck}
\subsection{Daisy Duck}
\subsection{Huey, Dewey, and Louie}
\subsection{Scrooge McDuck}
\subsection{Ludwig Von Drake}

\section{Relatives}
\subsection{Duck family (Disney)}
\subsection{Clan McDuck}

\section{Duck characters}
\subsection{Umperio Bogarto}
\subsection{Bum Bum Ghigno}
\subsection{Magica De Spell}
\subsection{Evroniani}
\subsection{Flintheart Glomgold}
\subsection{Gloria}
\subsection{Gotrocks}
\subsection{Grand Mogul}
\subsection{Mata Harrier}
\subsection{Brigitta MacBridge}

\begin{frame}[allowframebreaks]{Donald Duck universe characters}
  \tableofcontents[sections={1-2}]
    \framebreak
  \tableofcontents[sections={3}]
\end{frame}

\end{document}

答案2

我的建議是避免將目錄分成幾個框架。備擇方案:

1)開始只顯示部分(沒有子部分):

\begin{frame}{ToC}
\setcounter{tocdepth}{1}
\tableofcontents
% \setcounter{tocdepth}{2} % allow subsequent ToCs *with* subsections  
\end{frame}

....或更短:

\begin{frame}{ToC}
\tableofcontents[hideallsubsections]
\end{frame}

姆韋1

簡單就是演示的力量。

2) 與前面的觀點不相容,從每個部分開始顯示目錄,但突出顯示當前部分,並可選擇僅顯示本部分的子部分:

% In the preamble!!
\AtBeginSection
{\begin{frame}{ToC}
\tableofcontents[currentsection,hideothersubsections]
\end{frame}}
\begin{document}

如果你離開了第 1 點的框架,則設定tocdepth相反!2

姆韋2

在某些情況下(例如顯示第三部分)這還不夠,因為有 10 個小節。那我的建議是:

a) 不顯示任何小節(保留tocdepth在 中1)。簡單就是力量。

b) 如果可能的話,重新設計結構,減少分段。

c) 使用多列,例如:

% In the preamble!!
\usepackage{multicol}
\AtBeginSection
{\begin{frame}{ToC}
\begin{multicols}{2}
\tableofcontents[currentsection,hideothersubsections]
\end{multicols}
\end{frame}}
\begin{document}

米韋3

d) 刪除陰影部分,僅顯示實際部分的目錄 \tableofcontents[sectionstyle=show/hide,subsectionstyle=show/show/hide]

姆韋4

答案3

您可以指定要顯示哪個部分作為選項:

\tableofcontents[sections={1-3}]

因此,您可以手動指定在每個框架中顯示哪個部分:

\begin{frame}{Outline}
  \tableofcontents[sections={1-3}]
\end{frame}
\begin{frame}
   \tableofcontents[sections={4-5}]
\end{frame}

答案4

\section*{Outline}
\begin{frame}{Agenda}
\begin{columns}[onlytextwidth]
\column{0.5\textwidth}
\tableofcontents[sections = 1-2]
\column{0.5\textwidth}
\tableofcontents[sections = 3-4]
\end{columns}
\end{frame}

\section{Executive Summary}
\subsection{Vision and Objectives}
\subsection{Current Needs and Status}
\subsection{Approaches}
\subsection{Review}
\section{The 5 W's and the H}
\subsection{What?}
\subsection{Why?}
\subsection{Where?}
\subsection{When?}
\subsection{Who?}
\section{Examples}

產生以下輸出:

在此輸入影像描述

相關內容