![Beamer 幻灯片的渐变背景?](https://linux22.com/image/276916/Beamer%20%E5%B9%BB%E7%81%AF%E7%89%87%E7%9A%84%E6%B8%90%E5%8F%98%E8%83%8C%E6%99%AF%EF%BC%9F.png)
答案1
有了beamer
,你不需要background
包中,\usebackgroundtemplate
宏提供了设置背景的可能性。
代码
\documentclass{beamer}
\usepackage{tikz}
\usebackgroundtemplate{
\begin{tikzpicture}
\path [outer color = green!20, inner color = blue!10]
(0,0) rectangle (\paperwidth,\paperheight);
\end{tikzpicture}}
\title{This is the title.}
\begin{document}
\maketitle
\end{document}