Beamer:防止/禁用在实际内容之前出现单独的小节标题

Beamer:防止/禁用在实际内容之前出现单独的小节标题

最近我开始质疑我决定在实际内容之前显示各个小节标题的决定。我仍然想在小节内容之前显示一次下一节的大纲,但是我觉得显示相同的大纲并强调即将到来的小节标题有点过头了(在我看来,这种方法会产生太多额外的幻灯片)。

因此,在我仍在最终确定我的决定时,我希望有一个选项来切换 Beamer 演示文稿的当前行为以进行部分大纲管理,由以下代码控制。对于上述替代行为,应该在代码中进行哪些更改?

\AtBeginSubsection[]
{
  \begin{frame} %<beamer>
    \frametitle{Outline}
    \setcounter{tocdepth}{2}
    \tableofcontents[
      currentsection,
      currentsubsection,
      sectionstyle=show/hide,
      subsectionstyle=show/shaded/hide
    ]
  \end{frame}
}

答案1

我已经弄清楚了我的问题。出现这种不良行为的原因是我正在使用两种方法章节大纲管理 同时地手动的(通过\tableofcontents)和自动的(通过\AtBeginSection)。以下 MWE 与使固定-禁用自动控制代码- 说明情况。

\documentclass[12pt]{beamer}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{tikz}
\usetikzlibrary{mindmap, trees, shadows, shapes, backgrounds, calc, fadings, positioning, decorations.pathreplacing, intersections, fit}
\usepackage{smartdiagram}

\usepackage{palatino}

\usetheme{Boadilla}
\usecolortheme{orchid}
\useinnertheme{rectangles}
\beamertemplateshadingbackground{gray!5}{gray!20}
\setbeamertemplate{navigation symbols}{}

% THE FIX -- LEFT FOR ILLUSTRATION -- TO BE DELETED
%\AtBeginSection[]
%{
%  \begin{frame} %<beamer>
%    \frametitle{Outline}
%    \setcounter{tocdepth}{2}
%    \tableofcontents[
%    currentsection,
%    currentsubsection,
%    sectionstyle=show/hide,
%    subsectionstyle=show/shaded/hide
%    ]
%  \end{frame}
%}

\begin{document}

% Produce top-level TOC
\frame{\tableofcontents[hideallsubsections]}

\section{Introduction}
\frame[shrink=10]{\tableofcontents[currentsection,hideothersubsections]}

\subsection{Background and Problem}
\subsection{Research Goals and Questions}
\subsection{Relevance and Significance}
% Other subsections here

\section{Existing Research}
\frame[shrink=10]{\tableofcontents[currentsection,hideothersubsections]}

\subsection{Information Systems Success}
\subsection{Free/Libre and Open Source Software (FLOSS)}
\subsection{The Success of FLOSS}
% Other subsections here

\section{Methodology}
\frame[shrink=10]{\tableofcontents[currentsection,hideothersubsections]}

\subsection{Research Design}
\subsection{Measurement of Variables}
\subsection{Data Analysis}
% Other subsections here

\section{Results}
\frame[shrink=10]{\tableofcontents[currentsection,hideothersubsections]}

\subsection{Research Workflow: Reproducible Research Approach}
\subsection{Design of Research Software}
\subsection{Reformulated Hypotheses}
% Other subsections here

\section{Conclusions}
\frame[shrink=10]{\tableofcontents[currentsection,hideothersubsections]}

\subsection{Discussion}
\subsection{Implications}
\subsection{Limitations}
\subsection{Future Research}
\subsection{Summary}

\end{document}

相关内容