我给一个框架添加了一个覆盖层,而我的 beamer 文件开始对我下面剪切和粘贴的两个框架产生问题。更准确地说:
如果我保留文本中的两个框架并进行编译,错误是“file ends while searching use of \frame”如果我只取出第二帧,也会发生同样的情况。如果我只取出第一帧,错误是“environment undefined”,并且会显示第二帧最后一行对应的行号。
我真的不知道该怎么办。我不是很熟练地使用 beamer/latex,但是这些框架非常简单,我看不出有什么错误。
如果您有时间帮助我,我将不胜感激。
提前谢谢您!
\documentclass[xcolor=dvipsnames]{beamer}
\usepackage{colourchange}
\mode<presentation> {
\usetheme{Dresden}
\setbeamertemplate{navigation symbols}{}
}
\usepackage{graphicx}
\usepackage{booktabs}
\begin{document}
\begin{frame}%[<+->]
\frametitle{How do Experience and Metaphysics relate to each other?}
\begin{itemize}
\item<2-> Experience does not distinguish between the A- and the B-theory
\item<3-> Experience is \textit{compatible} with the A-theory, the B-theory\ldots
\item<4-> \ldots Berkelyan idealism, Cartesian skeptics, Russellian skeptics\ldots
\item<5-> \ldots Hyper-Russellian skeptics:
\begin<itemize>
\item<6->{only one conscious experience exists (and it is indistinguishable from \textit{this} experience that \textit{you} are having \textit{now})
\end{itemize}
\item<7-> Yet, it does not follow that experience cannot support better a metaphysical theory over a competing one: \only<9->{All your experiences exists \textit{vs.} hyper-Russellian skeptics}
\end{itemize}
\end{frame}
%------------------------------------------------
%------------------------------------------------
\begin{frame}%[<+->]
\frametitle{An Abductive Argument for the A-theory}
\begin<itemize>
\item<2-> Different claim: ``Experience \textit{better supports} the A-theory''
\begin{enumerate}
\item<3-> Our experience has $E_T$
\item<4-> The thesis $A_1$ that the passage of time is an objective, mind-independent fact is an essential part of our best explanation of why our experience has $E_T$
\item<5-> \textbf{The A-theory is true}
\end{enumerate}
\end{itemize}
\end{frame}
\end{document}
答案1
查找文档中的错误beamer
可能很困难,因为缺少括号通常发现得太晚了。
它有助于拥有一个与主文档具有相同序言的“样板”文档,其中一次准备一个框架,然后在正确编译时粘贴到主文档中。
就你的情况而言,你缺少一个括号:
\begin<itemize>
\item<6->{only one conscious experience exists (and it is indistinguishable from \textit{this} experience that \textit{you} are having \textit{now})
\end{itemize}
应该
\begin<itemize>
\item<6->{only one conscious experience exists (and it is indistinguishable from \textit{this} experience that \textit{you} are having \textit{now})}
\end{itemize}
您还有两个拼写错误:
\begin<itemize>
当然应该
\begin{itemize}
(两处)。