如何將句子移到靠近標題的位置?

如何將句子移到靠近標題的位置?

我正在使用 Share Latex 網站為我的簡報建立幻燈片。

我有以下程式碼:

\documentclass{beamer}
\usetheme{CambridgeUS}
\usepackage{graphicx}
\usepackage{mathabx}

\title{}
\author{}
\institute{}
\date{}

\begin{document}

\begin{frame}
\titlepage
\frametitle{} 
\end{frame}

\begin{frame}
\begin{center}
\frametitle{Outline}
\end{center}
\begin{itemize}
\item Introduction
\item Model 1
\item Main Results
\begin{itemize}
\item Graphical Analysis
\end{itemize}
\item Model 2
\item Main Results
\begin{itemize}
\item Graphical Analysis
\item Comparative statics
\end{itemize}
\item Conclusion
\item Appendix 
\end{itemize}
\end{frame}

\begin{frame}
\begin{center}
\frametitle{Introduction}
\end{center}

\begin{itemize}
\item Academic dishonesty is a serious issue in many developing countries.
\begin{itemize}
\item Cheating in school is a social norm. 
\item Generally, the professors do not take this issue seriously.
\item Low-level of punishment for the perpetrators.
\end{itemize}
\item The objective is to capture a student's decision to either plagiarize or be honest with two prisoner's dilemma models.
\end{itemize}
\end{frame}

\end{document}

我有這張投影片: 在此輸入影像描述

如何將句子向上移動並且我還想在句子之間創建空格?

答案1

您需要將[t]選項新增至框架中,以將文字與框架頂部對齊。您可以使用enumitem包來控制逐項清單的間距,如下所示這個答案,但您必須在執行此操作後恢復預設項目符號,如下所述這裡。另外,正如評論中提到的,您不應該將其放在環境frametitlecenter

\documentclass{beamer}
\usetheme{CambridgeUS}
\usepackage{enumitem}
\setitemize{itemsep=20pt,% Change the item separation here
label=\usebeamerfont*{itemize item}% These lines are necessary to restore the bullets to each item
\usebeamercolor[fg]{itemize item}%
\usebeamertemplate{itemize item}%
}

\begin{document}

\begin{frame}[t] % Add the [t] option here to top-align the text on the slide.
\frametitle{Introduction}

\begin{itemize}
\item Academic dishonesty is a serious issue in many developing countries.
\begin{itemize}
\item Cheating in school is a social norm. 
\item Generally, the professors do not take this issue seriously.
\item Low-level of punishment for the perpetrators.
\end{itemize}
\item The objective is to capture a student's decision to either plagiarize or be honest with two prisoner's dilemma models.
\end{itemize}
\end{frame}

\end{document}

在此輸入影像描述

相關內容