我对 Beamer 还不太熟悉,目前正在准备一个演示文稿,其中我的标题幻灯片带有背景图像。它看起来像这样:
我想将姓名和日期包含在蓝色块中(并将它们也设为白色)。我该怎么做?
编辑。我的代码如下:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{graphicx}
\usetheme{Frankfurt}
\title{La Banque Centrale Européenne et ses actions}
\author{My name”}
\date{Janvier 2023}
\begin{document}
{
\usebackgroundtemplate{\includegraphics[width=\paperwidth].{eurosymbol.jpeg}}
\begin{frame}
\maketitle
\end{frame}
}
\end{document}
答案1
您可以重新定义title page
模板:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{graphicx}
\usetheme{Frankfurt}
\title{La Banque Centrale Européenne et ses actions}
\author{My name}
\date{Janvier 2023}
\makeatletter
\setbeamertemplate{title page}
{
\vbox{}
\vfill
\begingroup
\centering
\begin{beamercolorbox}[sep=8pt,center,shadow=true,rounded=true]{title}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\vskip1em\par
\usebeamerfont{author}\insertauthor
\vskip1em\par
\usebeamerfont{institute}\insertinstitute
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\endgroup
\vfill
}
\makeatother
\begin{document}
{
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{example-image-duck}}
\begin{frame}
\maketitle
\end{frame}
}
\end{document}