这张幻灯片显示编译错误。我猜是空间不够。我的问题:a) 为什么 align 在警告块内不起作用?b) 为什么 allowframebreaks 在我的特定幻灯片中不起作用。
\documentclass{beamer}
\usepackage{mathpazo}
\usepackage{setspace}
\usetheme{CambridgeUS}
\usecolortheme{dolphin}
\usefonttheme{serif}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{color}
\usepackage{pgfpages}
\usepackage{multirow}
\usepackage{enumerate}
\usepackage{mathtools}
\title[L]{Blah}
\subtitle{Lectur}
\author{Some Random Guy}
\institute[L]{L}
\setbeamertemplate{enumerate items}[default]
\useoutertheme{tree}
\setbeamercolor{block title}{bg=blue!30,fg=black}
%\setbeamercolor{alertblock title}{bg=red!30,fg=black}
\setbeamertemplate{section in toc}{\hspace* {2em}\inserttocsectionnumber.~\inserttocsection\par}
\setbeamertemplate{subsection in toc}{\hspace*{4em}\inserttocsectionnumber.\inserttocsubsectionnumber.~\inserttocsubsection\par}
\newcommand{\bbeta}[1]{\boldsymbol\beta_{\scriptscriptstyle #1}}
\newcommand{\undset}[2]{\underset{\scriptscriptstyle #1}{#2}}
\newcommand{\by}[1]{\mathbf Y_{\scriptscriptstyle #1}}
\newcommand{\bx}[1]{\mathbf x_{\scriptscriptstyle #1}}
\newcommand{\beps}[1]{\boldsymbol\epsilon_{\scriptscriptstyle #1}}
%\setbeamercolor {item}{fg=red}
%\setbeamercolor{itemize item}{fg=red} %\setbeamercolor{itemize subitem}{fg=blue}
\setbeameroption{show notes}
\addtobeamertemplate{block alerted begin}{
\def\@listi{\leftmargin3em
\topsep 3\p@ \@plus2\p@ \@minus2.5\p@
\parsep 0\p@
\itemsep3\p@ \@plus2\p@ \@minus3\p@}
}
\begin{document}
\section{Covariance matrix}
\begin{frame}[allowframebreaks]{Strategy - Start with the Covariance}
\begin{itemize}
\item We can use the shortcut formula $\sigma_{Y_1Y_2}=E[Y_1Y_2]-E[Y_1]E[Y_2]$.
\item Recall $E[Y_1]=2/3$ from our previous lecture.
\item You should easily be able to verify that $E[Y_2]=4/3$.
\item \begin{alertblock}
\begin{align*}
E[Y_1] &= \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} y_1 f(y_1,y_2) dy_1 dy_2 \\
& = \int_{-\infty}^{\infty} y_1 f_1(y_1) dy_1
\end{align*}
\end{alertblock}
\end{itemize}
\end{frame}
\end{document}**strong text**
错误是 - !TeX 容量超出,抱歉 [输入堆栈大小=5000]。 \end #1->\csname end#1 \endcsname \@checkend {#1}\expandafter \endgroup \if@e... l.176 \end{frame}
答案1
问题是alertblock
需要一个参数,即块的标题。