缺少插入 beamer 文档的 \endcsname

缺少插入 beamer 文档的 \endcsname

我已经创建了一个 beamer 演示文稿背页但我不知道我的错误意味着什么

>Missing \endcsname inserted.
<to be read again> 
                   \relax 
l.99 \end{frame}

这是我的短信

\documentclass{beamer}
\usetheme{Warsaw}
\title{Gettysburg Cemetery Dedication}
\author{Abraham Lincoln}
\institute{United States of America}
\date{19 Nov 1863}

\begin{document}
\begin{frame}
\titlepage % beamer’s \maketitle
\end{frame}

\begin{frame}
\frametitle{Outline}
\begin{itemize}
\item Agenda
\item Review
\item Summary
\end{itemize}
\end{frame}
\tableofcontents

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Agenda}

\begin{frame}
\frametitle{Agenda}
\begin{itemize}
\item Met on battlefield (great)
\item Dedicate portion of field --- fitting!
\item Unfinished work (great tasks)
\end{itemize}
\end{frame}

\begin{frame}
\frametitle{Not on Agenda!}
\begin{itemize}
\item Dedicate
\pause\item Consecrate
\pause\item Hallow (in narrow sense)
\pause\item Add or detract
\pause\item Note or remember what we say
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Review}
\begin{frame}
\frametitle{Key Objectives \& Success Factors}
\begin{itemize}
\item What makes nation unique:
\begin{itemize}
\item Conceived in Liberty
\item are equal
\end{itemize}

\begin{block}{Shared vision:}
\begin{itemize}
\item  New birth of freedom.
\item  Gov't of/for/by the people.
\end{itemize}
\end{block}

\end{itemize}
\end{frame}

\begin{frame}
\frametitle{Organizational Overview}
\begin{figure}
\includegraphics[width=0.5\textwidth]{gettysburg_graph}
\end{figure}
%\begin{equation}
%\lable{Four Score and Seven}
%-(4 * 20 + 7) = -87
%\end{equation}
\end{frame}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Summary}
\begin{frame}
\frametitle{Summary}
\begin{columns}
\begin{column}
\begin{itemize}
\item New nation
\item Civil war
\item Dedicate field
\end{itemize}
\end{column}

\begin{column}
\begin{itemize}
\item Dedicated to unfinished work
\item New birth of freedom
\item Government not perish
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\end{document}

答案1

您的代码中有两个错误:

  1. 您在等式中使用了\lable\label它在您的代码中被注释掉了,但是一旦您取消注释,您就会收到错误)。
  2. 环境column需要指定宽度的长度。

更正后的代码(我使用 标记了更改%HERE):

\documentclass{beamer}
\usetheme{Warsaw}


\begin{document}

\begin{frame}
\frametitle{Organizational Overview}
\begin{figure}
\includegraphics[width=0.5\textwidth]{example-image-a}
\end{figure}
%\begin{equation}
%\label{Four Score and Seven}% HERE
%-(4 * 20 + 7) = -87
%\end{equation}
\end{frame}

\section{Summary}
\begin{frame}
\frametitle{Summary}
\begin{columns}
\begin{column}{.5\linewidth}% HERE
\begin{itemize}
\item New nation
\item Civil war
\item Dedicate field
\end{itemize}
\end{column}

\begin{column}{.5\linewidth}% HERE
\begin{itemize}
\item Dedicated to unfinished work
\item New birth of freedom
\item Government not perish
\end{itemize}
\end{column}
\end{columns}
\end{frame}

\end{document}

相关内容