![带有 \setbeamercovered{transparent} 的图形](https://linux22.com/image/332603/%E5%B8%A6%E6%9C%89%20%5Csetbeamercovered%7Btransparent%7D%20%E7%9A%84%E5%9B%BE%E5%BD%A2.png)
使用 \setbeamercovered{transparent} 可以透明显示幻灯片的覆盖部分。如果文本中有(小)图片,则按原样显示。Beamer 只有这张图片,因此它显示这张图片。我的问题是:如何将图片的灰色版本提供给 beamer,以便在幻灯片的覆盖部分使用此灰色版本?
答案1
叠加是替换图像最简单的方法。但在生成图像的灰度版本时,您必须自己找到正确的亮度值。
\documentclass{beamer}
\usetheme{Warsaw}
\setbeamercovered{transparent}
\setbeamertemplate{navigation symbols}{}
\usepackage{beamerthemeshadow}
\usepackage{tikz}
\begin{document}
\begin{frame}
\begin{block}{Theorem}
Theorem Text Here
\end{block}
\vfill \pause
\begin{example}
\centering
\includegraphics<-.>[height=0.4\textwidth]{example-image}
\includegraphics<.(1)->[height=0.4\textwidth]{example-grid-100x100bp}
\end{example}
\vfill \pause
\begin{block}{Corollary}
Corollary text here
\end{block}
\end{frame}
\end{document}
编辑
正如问题中没有问到的那样,这对于 qed 符号来说完全相同
\documentclass{beamer}
\usetheme{Warsaw}
\setbeamercovered{transparent}
\setbeamertemplate{navigation symbols}{}
\usepackage{beamerthemeshadow}
\usepackage{tikz}
\setbeamertemplate{qed symbol}{%
\includegraphics<-.>[width=0.5cm,height=0.5cm]{example-image}
\includegraphics<.(1)->[width=0.5cm,height=0.5cm]{example-grid-100x100bp}
}
\begin{document}
\begin{frame}
\begin{proof}
\begin{itemize}
\item First item.
\item Second item.
\item Third item.
\end{itemize}
\end{proof}
\vfill \pause
\begin{proof}
\begin{itemize}
\item First item.
\pause
\item Second item.
\pause
\end{itemize}
\end{proof}
\vfill \pause
\begin{block}{Corollary}
Corollary text here
\end{block}
\end{frame}
\end{document}