答案1
您可以在幻灯片之前声明背景,然后在幻灯片之后取消声明背景:
\documentclass{beamer}
\usepackage{tikz}
\begin{document}
\begin{frame}
Background transparent image, not here
\end{frame}
\usebackgroundtemplate{% declare it
\tikz[overlay,remember picture] \node[opacity=0.3, at=(current page.center)] {
\includegraphics[height=\paperheight,width=\paperwidth]{example-image-a}};
}
\begin{frame}
Background transparent image, centered on slide
\end{frame}
\usebackgroundtemplate{ } %% undeclare it
\begin{frame}
Background transparent image, not here
\end{frame}
\end{document}
另一方面,你也可以使用组:
\bgroup
\usebackgroundtemplate{%
\tikz[overlay,remember picture] \node[opacity=0.3, at=(current page.center)] {
\includegraphics[height=\paperheight,width=\paperwidth]{example-image-a}};
}
\begin{frame}
Background transparent image, centered on slide
\end{frame}
\egroup