我正在使用该软件包进行演示beamer
,我想知道是否有一种简单的方法可以将单张幻灯片的图像重新用于摘要幻灯片。到目前为止,我为每张相关幻灯片制作 PDF 打印件,我想将其用于摘要(在 MWE 中命名summary-1
)summary-4
。之后,我将每张打印的 PDF 都包含在摘要幻灯片中。
除了 MWE 之外,我还提供了下面最后两个叠加层的屏幕截图,以及MWE 的 PDF供下载。请注意,只有在创建前四张幻灯片中的图像后才可以编译完整的 MWE。我完全清楚这一点,这就是我问这个问题的原因。
有没有办法避免将我想要使用的单张幻灯片制作成 PDF?显然,如果必须手动完成,这可能会被忘记,从而导致摘要中的幻灯片过时。就我个人而言,我非常喜欢这种类型的摘要,因为它可以很好地概述演讲并简化之后的问答环节。
\documentclass[t,english,aspectratio=169]{beamer}
\usetheme{metropolis}
\usepackage[overlay,absolute]{textpos}
\usepackage{babel}
\usepackage{graphicx}
\begin{document}
\begin{frame}
\frametitle{First Topic}
Slide on first topic}
\end{frame}
\begin{frame}
\frametitle{Second Topic}
Slide on second topic}
\end{frame}
\begin{frame}
\frametitle{Third Topic}
Slide on third topic}
\end{frame}
\begin{frame}
\frametitle{Fourth Topic}
Slide on fourth topic}
\end{frame}
\begin{frame}
\frametitle{Summary}
\begin{textblock}{0}(0.2,1.3)
\includegraphics<2->[width=7cm]{summary-1}
\end{textblock}
\begin{textblock}{0}(8.0,1.3)
\includegraphics<3->[width=7cm]{summary-2}
\end{textblock}
\begin{textblock}{0}(0.2,8.3)
\includegraphics<4->[width=7cm]{summary-3}
\end{textblock}
\begin{textblock}{0}(8.0,8.3)
\includegraphics<5->[width=7cm]{summary-4}
\end{textblock}
\begin{textblock}{0}(1.8,1.5)
\includegraphics<1-1>[width=12.5cm]{summary-1}
\includegraphics<2-2>[width=12.5cm]{summary-2}
\includegraphics<3-3>[width=12.5cm]{summary-3}
\includegraphics<4-4>[width=12.5cm]{summary-4}
\end{textblock}
\end{frame}
\end{document}
答案1
可以避免制作单独的 pdf 的步骤。如果您有演示文稿的副本,您可以简单地指定页码。
\documentclass[t,english,aspectratio=169]{beamer}
\usetheme{moloch}% modern fork of the metropolis theme
\usepackage[overlay,absolute]{textpos}
\usepackage{babel}
%\usepackage{graphicx}
\begin{document}
\begin{frame}
\frametitle{First Topic}
Slide on first topic
\end{frame}
\begin{frame}
\frametitle{Second Topic}
Slide on second topic
\end{frame}
\begin{frame}
\frametitle{Third Topic}
Slide on third topic
\end{frame}
\begin{frame}
\frametitle{Fourth Topic}
Slide on fourth topic
\end{frame}
\begin{frame}
\frametitle{Summary}
\begin{textblock}{0}(0.2,1.3)
\includegraphics<2->[width=7cm,page=1]{summary}
\end{textblock}
\begin{textblock}{0}(8.0,1.3)
\includegraphics<3->[width=7cm,page=2]{summary}
\end{textblock}
\begin{textblock}{0}(0.2,8.3)
\includegraphics<4->[width=7cm,page=3]{summary}
\end{textblock}
\begin{textblock}{0}(8.0,8.3)
\includegraphics<5->[width=7cm,page=4]{summary}
\end{textblock}
\begin{textblock}{0}(1.8,1.5)
\includegraphics<1-1>[width=12.5cm,page=1]{summary}
\includegraphics<2-2>[width=12.5cm,page=2]{summary}
\includegraphics<3-3>[width=12.5cm,page=3]{summary}
\includegraphics<4-4>[width=12.5cm,page=4]{summary}
\end{textblock}
\end{frame}
\end{document}
答案2
通过使用 pdf 页码的参考,我们可以做得更好:
\documentclass[t,english,aspectratio=169]{beamer}
\usetheme{metropolis}
\usepackage{refcount}
\begin{document}
\begin{frame}
\frametitle{First Topic}
\label{summary1}
Slide on first topic
\end{frame}
\begin{frame}
\frametitle{Second Topic}
\label{summary2}
Slide on second topic
\end{frame}
\begin{frame}
\frametitle{Third Topic}
\label{summary3}
Slide on third topic
\end{frame}
\begin{frame}
\frametitle{Fourth Topic}
\label{summary4}
Slide on fourth topic
\end{frame}
\begin{frame}[standout]{Summary}
\vspace{-0.3cm}
\def\width{6.5cm}
\begin{tabular}{cc}
\includegraphics[width=\width,page=\getpagerefnumber{summary1}]{tmp_summary}&\includegraphics[width=\width,page=\getpagerefnumber{summary2}]{tmp_summary}\\
\includegraphics[width=\width,page=\getpagerefnumber{summary3}]{tmp_summary}&\includegraphics[width=\width,page=\getpagerefnumber{summary4}]{tmp_summary}
\end{tabular}
\end{frame}
\end{document}