
我的一张幻灯片的背景图像部分透明。我想将此幻灯片的背景颜色设置为黑色,但不起作用。
例子:
\documentclass{beamer}
\begin{document}
{
\setbeamercolor{background canvas}{bg=black}
\setbeamertemplate{background canvas}{\includegraphics[height=\paperheight]{muon1.png}}
\begin{frame}[plain]
\end{frame}
}
\end{document}
答案1
只需使用background
图像和background canvas
黑色背景的模板:
\documentclass{beamer}
\begin{document}
{
\setbeamercolor{background canvas}{bg=black}
\setbeamertemplate{background}{\includegraphics[height=\paperheight]{muon1.png}}
\begin{frame}[plain]
\end{frame}
}
\end{document}