使用 Beamer 在暂停列表中交错图像

使用 Beamer 在暂停列表中交错图像

我的 Beamer 代码中有以下框架:

\begin{frame}{Motivation}
    \begin{itemize}
        \item<1-> We deal with a lot of cameras.
        \item<1-> We do lots of experiments.
        \item<2-> How to multiplex the video streams?
        \item<3-> How to unify the API for controlling distinct cameras?
    \end{itemize}
\end{frame}

这非常适合用作“暂停列表”,其中每个项目都以幻灯片形式结束。但是,我想交错全尺寸图像,但我不知道该怎么做。我的意思是,每个项目之间都有一张幻灯片,里面有一些来自的图片\includegraphics

我尝试复制框架,但定位最终错误,也尝试将图像放在项目列表中,但最终也变得很奇怪。

答案1

有很多种方法可以实现这一点,这是一个非常基本的方法:

\documentclass{beamer}
\begin{document}
\begin{frame}[t]
\frametitle{Motivation}
    \begin{itemize}
        \item<1-2,4,6-> We deal with a lot of cameras.
        \item<1-2,4,6-> We do lots of experiments.
        \item<4,6-> How to multiplex the video streams?
        \item<6-> How to unify the API for controlling distinct cameras?
    \end{itemize}
\centering\vspace*{-2cm}%
\only<3>{\includegraphics{example-image-a}}\only<5>{\includegraphics{example-image-b}}
\vfill  
\end{frame}
\end{document}

在此处输入图片描述

如果您愿意加载tikz,事情就会变得更加优雅和直接。

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{overlay-beamer-styles}
\begin{document}
\begin{frame}[t]
\frametitle{Motivation}
    \begin{itemize}
        \item<1-> We deal with a lot of cameras.
        \item<1-> We do lots of experiments.
        \item<4-> How to multiplex the video streams?
        \item<6-> How to unify the API for controlling distinct cameras?
    \end{itemize}
\begin{tikzpicture}[overlay,remember picture]
 \node[visible on=<3>,anchor=south] at ([yshift=3mm]current page.south)
 {\includegraphics[height=8cm]{example-image-a}};
 \node[visible on=<5>,anchor=south] at ([yshift=3mm]current page.south)
 {\includegraphics[height=8cm]{example-image-b}};
\end{tikzpicture}
\end{frame}
\end{document}

在此处输入图片描述

答案2

来自 tikz概念验证就像与 Sam Carter 讨论的那样,但根据图像进行了调整,不过这里的最大比例为 66%

在此处输入图片描述

\documentclass{beamer}

\setbeamercovered{transparent}
\usepackage{mwe}

\begin{document}

\begin{frame}{Motivation}
\begin{itemize}[<+>]
\item \alt<.>{We will now look at the following four images}{Start}
\item \alt<.>{\includegraphics[scale=0.66]{example-image}\\ We deal with a lot of cameras.}{Cameras}
\item \alt<.>{\includegraphics[scale=0.66]{example-image-a}\\ We do lots of experiments.}{Experiments}
\item \alt<.>{\includegraphics[scale=0.66]{example-image-b}\\ How to multiplex the video streams?}{Multiplex}
\item \alt<.>{\includegraphics[scale=0.66]{example-image-c}\\ How to unify the API for controlling distinct cameras?}{API Control}
\end{itemize}
\end{frame}


\end{document}

相关内容