用 beamer 可以轻松列出清单吗?

用 beamer 可以轻松列出清单吗?

我们可以在 Beamer 中使用吗?在 Beamer 中是否有任何有效的方法来逐项列出和子项列出?以下代码不起作用

\documentclass[mathserif,serif]{beamer}
\usepackage[at]{easylist}

\begin{document}
\author[Nck]{Newbie}
\title[Eco'trics]{Introduction to Statistics and Econometrics}
\subtitle{TA}
\institute[Blah]{Learning Univ}
\subject{Econometrics}

\begin{frame}{Variance and Covariance}

\begin{easylist}[itemize]
@\textbf{Def 4.2.1} -
        \begin{align*}
        V(X) &= E[ X - E(X)]^2\\
        &=E(X^2) - [E(X)]^2
        \end{align*}
@ \textbf{Thm 4.2.1} - If $\alpha$ and $\beta$ are constants, we have:
            \[
            V(\alpha X  + \beta) = \alpha^2V(X)
            \]
@\textbf{Covariance}, deonoted by $Cov(X,Y)$ or $\sigma_{xy}$ is a measure of the relationship between two random variables X and Y and is defined as : 
@@ $Cov(X,Y) = E[(X-E(X))(Y-E(Y))] = E(XY) - E(X) E(Y)$

\end{easylist}
\end{frame}

另外,Subject 有什么用?它出现在投影机的任何地方吗?

答案1

easylist包使用了 catcode 技巧,无法与beamer的常用帧处理代码正常工作。(与 相同verbatim。)

为了解决这个问题(但输出速度会稍微变慢),写

\begin{frame}[fragile]{...}

而是。修复原始示例中的拼写错误并稍微简化一下:

\documentclass{beamer}
\usepackage[at]{easylist}
\begin{document}
\begin{frame}[fragile]{Variance and Covariance}

\begin{easylist}[itemize]
@ \textbf{Def 4.2.1} -
        \begin{align*}
        V(X) &= E[ X - E(X)]^2\\
        &=E(X^2) - [E(X)]^2
        \end{align*}
@ \textbf{Thm 4.2.1} - If $\alpha$ and $\beta$ are constants, we have:
            \[
            V(\alpha X  + \beta) = \alpha^2V(X)
            \]
@ \textbf{Covariance}, deonoted by $Cov(X,Y)$ or $\sigma_{xy}$ is a measure of the relationship between two random variables X and Y and is defined as : 
@@ $Cov(X,Y) = E[(X-E(X))(Y-E(Y))] = E(XY) - E(X) E(Y)$

\end{easylist}
\end{frame}
\end{document}

相关内容