我知道這與其他問題類似。其他答案涉及:
- 添加透明影像
- 將圖像居中,但我找不到兩者的答案。
透過先前的答案,我可以成功地使我的圖像透明或居中,但不能兩者兼而有之。我嘗試過將兩者結合起來的方法,但沒有成功。
這是我在介紹幻燈片中使用的程式碼
\usepackage{tikz}
\usebackgroundtemplate{
\vbox to \paperheight
{\tikz \node[opacity=0.2]
{\vfil\hbox to \paperwidth
{\hfil\includegraphics[width=1.5in]{name.png}
\hfil}\vfil} ; }
}
答案1
結合工作投影機中的透明影像背景和投影機包中完整幻燈片上的影像,你可以這樣做:
\documentclass{beamer}
\usepackage{tikz}
\usebackgroundtemplate{%
\tikz[overlay,remember picture] \node[opacity=0.3, at=(current page.center)] {
\includegraphics[height=\paperheight,width=\paperwidth]{example-image-a}};
}
\begin{document}
\begin{frame}
Background transparent image, centered on slide
\end{frame}
\end{document}
您必須編譯兩次才能使圖像居中。