从 beamer 中的文章模式中删除所有框架内容

从 beamer 中的文章模式中删除所有框架内容

当使用文章模式时,从投影仪演示文稿中删除所有框架内容的最佳方法是什么?以下是 MWE:

\documentclass[ignorenonframetext]{beamer}
%\documentclass{article}\usepackage{beamerarticle}

\begin{document}

\begin{frame}{This is frame 1}
Content of frame 1, but shouldn't be in the article
\end{frame}

This text should appear in the article, but not within the presentation.

\begin{frame}{This is frame 2}
Content of frame 2, but shouldn't be in the article
\end{frame}

This text should appear in the article, but not within the presentation.

\end{document}

这个想法是,投影仪演示是讲座,而帧间文本将是单独排版的家庭作业问题。

编辑

我在全局框架选项下搜索,理想情况下,我希望有类似的解决方案问题:

\documentclass[presentation]{beamer}

除非选项在某种程度上需要在article课堂内!

答案1

如果某些内容仅打算在演示文稿中使用 ,则可以将其指定为覆盖选项<presentation>。以同样的方式,您可以使用<article>

您可以使用这些覆盖选项的一些示例是

\begin{frame}<presentation>

或者

 \mode<article>{This text should appear in the article, but not within the presentation.}

%\documentclass[ignorenonframetext]{beamer}
\documentclass{article}\usepackage{beamerarticle}

\begin{document}

\begin{frame}<presentation>{This is frame 1}
Content of frame 1, but shouldn't be in the article
\end{frame}

This text should appear in the article, but not within the presentation.

\begin{frame}<presentation>{This is frame 2}
Content of frame 2, but shouldn't be in the article
\end{frame}

This text should appear in the article, but not within the presentation.

\end{document}

相关内容