Beamer 中的列表间距问题

Beamer 中的列表间距问题

当我跑步时:

\documentclass{beamer}
\usetheme{Warsaw}
\begin{document}
\title{Talk to your statistician early and often}
\author{Peter Flom}
\date{\today}

\frame{\titlepage}

\frame{\frametitle{Table of contents}\tableofcontents}


\section{What goes wrong}
\frame{\frametitle{Introduction}}
\begin{itemize}
  \item Write the analysis section after the proposal is written
  \item Do the analysis after the data is collected
  \item Have the analysis drive the research instead of vice versa
  \item P-ing on the research
\end{itemize}
\end{document}

一切看起来都很好,但如果我跑

\documentclass{beamer}
\usetheme{Warsaw}
\begin{document}
\title{Talk to your statistician early and often}
\author{Peter Flom}
\date{\today}

\frame{\titlepage}

\frame{\frametitle{Table of contents}\tableofcontents}


\section{What goes wrong}
\frame{\frametitle{Introduction}}
\begin{itemize}
  \item Write the analysis section after the proposal is written
  \item Do the analysis after the data is collected
  \item Have the analysis drive the research instead of vice versa
  \item P-ing on the research
\end{itemize}


 \subsection{Write the analysis section after the proposal is written}
   \frame{\frametitle{I have a proposal due Tuesday, can you write the analysis section?}}
   \begin{enumerate}
     \item Jan. 2016 - Dr. B, a new postdoc, has an idea for a grant
     \item Feb - Aug 2016 - Dr. B reads the literature (while doing everything else)
     \item Aug 2016 - Dr. B drafts something and shows it to his mentor
     \item Nov 2016 - his mentor replies
     \item Dec 2016 - Dr. B rewrites and sends to lots of people
     \item Jan - Mar 2017 - they reply
     \item Apr 2017 - Dr B writes a 2nd draft and sends it topeople
     \item May - Sep 2017 - they reply
     \item Oct 2017 - Dr. B writes a third draft
     \item Nov 2017 - Nov 2018 - Dr. B looks for good RFPs
     \item Dec 2018 - he finds one, due date : Jan 1. He redrafts it and
     \item Dec 23 2018 - he brings it to me and asks me to write the analysis section.
   \end{enumerate}

\end{document}

那么第一个列表(PDF 格式)的间距就很奇怪,项目分散开来,占据了整个屏幕。

我怎样才能解决这个问题?

(在 Windows 10 机器上使用 WinEdt 10.1、MikTeX 2.9)。

答案1

您使用的\frame方式不恰当。它应该覆盖整个框架内容。\begin{frame}...\end{frame}在我看来,使用更直观,有助于避免此类问题。

\documentclass{beamer}
\usetheme{Warsaw}
\begin{document}
\title{Talk to your statistician early and often}
\author{Peter Flom}
\date{\today}

\frame{\titlepage}

\frame{\frametitle{Table of contents}\tableofcontents}


\section{What goes wrong}
\begin{frame}[t]
\frametitle{Introduction}
\begin{itemize}
  \item Write the analysis section after the proposal is written
  \item Do the analysis after the data is collected
  \item Have the analysis drive the research instead of vice versa
  \item P-ing on the research
\end{itemize}
\end{frame}


\subsection{Write the analysis section after the proposal is written}

\begin{frame}[t]
\frametitle{I have a proposal due Tuesday, can you write the analysis section?}
\begin{enumerate}
  \item Jan.\ 2016 - Dr.\ B, a new postdoc, has an idea for a grant
  \item Feb - Aug 2016 - Dr.\ B reads the literature (while doing everything else)
  \item Aug 2016 - Dr.\ B drafts something and shows it to his mentor
  \item Nov 2016 - his mentor replies
  \item Dec 2016 - Dr.\ B rewrites and sends to lots of people
  \item Jan - Mar 2017 - they reply
  \item Apr 2017 - Dr B writes a 2nd draft and sends it topeople
  \item May - Sep 2017 - they reply
  \item Oct 2017 - Dr.\ B writes a third draft
  \item Nov 2017 - Nov 2018 - Dr.\ B looks for good RFPs
  \item Dec 2018 - he finds one, due date : Jan 1. He redrafts it and
  \item Dec 23 2018 - he brings it to me and asks me to write the analysis section.
\end{enumerate}
\end{frame} 

\end{document}

输出变为

在此处输入图片描述

[t]在最后两帧中添加了 ,以使内容在顶部对齐。在第 2 帧中,没有这样的选项,您可以看到差异。我\在后面添加了Dr.和 ,Jan.以改善间距。

相关内容