Beamerarticle 生成未定义的控制序列

Beamerarticle 生成未定义的控制序列

我生成了一份报告,其中包括我所有讲座的所有投影仪幻灯片。为了清理笔记中的(垂直)间距,我重新定义了框架,如下所示:

\renewenvironment{frame}{\ignorespaces}{\ignorespacesafterend}

\frametitle每当我使用(与\begin{frame}{The Title})时都会产生错误

短期解决办法就是忍受间距问题。这是我能做的最好的事情吗?MWE 关注

\documentclass[twocolumn]{report}

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}

\usepackage{beamerarticle}

% Following line causes the trouble % % % % % %
\renewenvironment{frame}{\ignorespaces}{\ignorespacesafterend}
% % % % % % % % % % % % % % % % % % % % % % % % 

\begin{document}

\mode<all>
\section{Price Instruments}

\begin{frame}{Fees Reconsidered}

\begin{description}
\item[Environmental Tax Reform (ETR)]  introducing
fees and reducing  income or corporate taxes

\item[double dividend] besides reducing emissions, the reduction in
other taxes is likely to partially\footnote{But not completely.}
offset the negative consequences of the fee on the economy.
\end{description}

\end{frame}
\mode*

\begin{frame}
\frametitle{Fees Reconsidered}

\begin{description}
\item[Environmental Tax Reform (ETR)]  introducing
fees and reducing  income or corporate taxes

\item[double dividend] besides reducing emissions, the reduction in
other taxes is likely to partially\footnote{But not completely.}
offset the negative consequences of the fee on the economy.
\end{description}

\end{frame}

\mode*

\end{document}

答案1

框架环境是 beamer 的核心元素,例如激活各种 beamer 特定宏,如\frametitle。如果您重新定义框架环境,您将无法使用它们。

相反,您可以使用frame begin/end模板添加您想要在帧开始和结束时执行的任何代码:

\documentclass[twocolumn]{report}

\usepackage[english]{babel}
\usepackage[latin1]{inputenc}

\usepackage{beamerarticle}

\setbeamertemplate{frame begin}{\vspace{-0.2cm}}
\setbeamertemplate{frame end}{\vspace{-0.2cm}}


\begin{document}

\section{Price Instruments}

\begin{frame}{Fees Reconsidered}

\begin{description}
\item[Environmental Tax Reform (ETR)]  introducing
fees and reducing  income or corporate taxes

\item[double dividend] besides reducing emissions, the reduction in
other taxes is likely to partially\footnote{But not completely.}
offset the negative consequences of the fee on the economy.
\end{description}

\end{frame}

\begin{frame}
\frametitle{Fees Reconsidered}

\begin{description}
\item[Environmental Tax Reform (ETR)]  introducing
fees and reducing  income or corporate taxes

\item[double dividend] besides reducing emissions, the reduction in
other taxes is likely to partially\footnote{But not completely.}
offset the negative consequences of the fee on the economy.
\end{description}

\end{frame}

\end{document}

相关内容