Beamer 大纲问题

Beamer 大纲问题

我有以下 MWE:

\documentclass[xcolor=pdftex,t,11pt]{beamer}


\AtBeginSection[]
{
\setbeamercolor{section in toc}{fg=alerted text.fg}
\setbeamercolor{section in toc shaded}{fg=structure}
\begin{frame}<beamer>
 \frametitle{Outline}
 \vspace{-4ex}
   \begin{columns}
     \begin{column}{.60\textwidth}
            \tableofcontents[sections={1-12}, currentsection, hideothersubsections]
        \end{column}
        \begin{column}{.40\textwidth}
            \tableofcontents[sections={13-30}, currentsection,  hideothersubsections]
        \end{column}   
          \end{columns}    
  \end{frame}
}


\newenvironment{stepenumerate}{\begin{enumerate}[<+->]}{\end{enumerate}}
\newenvironment{stepitemize}{\begin{itemize}[<+->]}{\end{itemize} }
\newenvironment{stepenumeratewithalert}{\begin{enumerate}[<+-| alert@+>]}{\end{enumerate}}
\newenvironment{stepitemizewithalert}{\begin{itemize}[<+-| alert@+>]}{\end{itemize} }
\newenvironment{exe}[1][]{\par\medskip
   \noindent \textbf{Esempio: }}{\medskip}


\usepackage{multicol}
\usepackage{lmodern}
\usepackage{marvosym}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{hyperref}
\usepackage[font=scriptsize]{caption}
\usepackage{multicol}
\usepackage{xcolor}
\usepackage{booktabs}
\usepackage{array}
\usepackage{upquote}
\usepackage{tikz}


\newcommand{\matr}[1]{\mathbf{#1}}   

\setbeamercolor{button}{bg=unime,fg=white}


%%%%%%%%%%%%%%%%%
%       PRESENTATION INFO        %
%%%%%%%%%%%%%%%%%

\author{XXX}
\title{ABC}
\subtitle{\large{CDE}}
\institute{{\bf COurse} \\ \vspace{2ex} Department \\Uiversity}
\date{January 2018}

\begin{document}

%%%%%%%%%%%%%%%%
%       SLIDE DEFINITIONS       %
%%%%%%%%%%%%%%%%

\begin{frame}[plain]
    \titlepage
\end{frame}

\begin{frame}{Outline}
\frametitle{Outline}
    \begin{columns}[t]
        \begin{column}{.55\textwidth}
            \tableofcontents[sections={1-12}]
        \end{column}
        \begin{column}{.5\textwidth}
            \tableofcontents[sections={13-30}]
        \end{column}
    \end{columns}

\end{frame}

\addtocontents{toc}{\vskip -0.1cm}

\section{A}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{B}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{C}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{D}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{E}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{F}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{G}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{A}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{H}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{I}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{J}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{A}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{L}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}
\section{A}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{K}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{M}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{N}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{O}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{P}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{Q}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{R}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\section{S}
\begin{frame}[fragile]
\frametitle{Introduction}
\vspace{-2ex}
\begin{itemize}
\item A b C
\end{itemize}
\end{frame}

\end{document}

我面临的问题如下。当我在每个部分之前显示大纲以使读者了解讨论的发展时,各部分标题之间的空间确实太多了。事实上,我无法显示最后几节的标题。有什么方法可以减少每个部分之前出现的大纲中各部分标题之间的空间?提前致谢

答案1

尝试不用hideothersubsections。由于您不使用子部分,因此您不需要它。

\documentclass[t,11pt]{beamer}

\AtBeginSection[]{
\setbeamercolor{section in toc}{fg=alerted text.fg}
\setbeamercolor{section in toc shaded}{fg=structure}
\begin{frame}<beamer>
\frametitle{Outline}
    \begin{columns}[t]
        \begin{column}{.48\textwidth}
            \tableofcontents[sections={1-12},currentsection]
        \end{column}
        \begin{column}{.48\textwidth}
            \tableofcontents[sections={13-30},currentsection]
        \end{column}
    \end{columns}
\end{frame}
}


\begin{document}

\begin{frame}{Outline}
\frametitle{Outline}
    \begin{columns}[t]
        \begin{column}{.48\textwidth}
            \tableofcontents[sections={1-12}]
        \end{column}
        \begin{column}{.48\textwidth}
            \tableofcontents[sections={13-30}]
        \end{column}
    \end{columns}
\end{frame}

\section{A}
\begin{frame}
\end{frame}

\section{B}
\begin{frame}
\end{frame}

\section{C}
\begin{frame}
\end{frame}

\section{D}
\begin{frame}
\end{frame}

\section{E}
\begin{frame}
\end{frame}

\section{F}
\begin{frame}
\end{frame}

\section{G}
\begin{frame}
\end{frame}

\section{A}
\begin{frame}
\end{frame}

\section{H}
\begin{frame}
\end{frame}

\section{I}
\begin{frame}
\end{frame}

\section{J}
\begin{frame}
\end{frame}

\section{A}
\begin{frame}
\end{frame}

\section{L}
\begin{frame}
\end{frame}

\section{A}
\begin{frame}
\end{frame}

\section{K}
\begin{frame}
\end{frame}

\section{M}
\begin{frame}
\end{frame}

\section{N}
\begin{frame}
\end{frame}

\section{O}
\begin{frame}
\end{frame}

\section{P}
\begin{frame}
\end{frame}

\section{Q}
\begin{frame}
\end{frame}

\section{R}
\begin{frame}
\end{frame}

\section{S}
\begin{frame}
\end{frame}

\end{document}

相关内容