使用beamer
,我试图将图像添加到标题页。目前,我通过使用命令作为命令的参数来执行此操作\date
,因为它无论如何都会保留为空白。现在,图像显示在作者下方。我不想将该\author
部分留空并手动添加姓名,因为作者也会显示在脚注中。我正在使用主题Dresden
。我尝试了很多方法,但看起来都不对。如何将标题图像添加到作者上方,同时作者仍显示在脚注中?
目前,这是我的代码:
\documentclass{beamer}
\usetheme{Dresden}
\title{Title}
\subtitle{Subtitle}
\author{Auth1 \and Auth2 \and Auth3}
\date{\includegraphics[width=117pt,height=175pt,keepaspectratio]{image.png}}
\begin{document}
\frame{\titlepage}
\end{document}
答案1
为了尽可能地实现您喜欢的任何布局,您可以定义自己的标题页:
\documentclass{beamer}
\usetheme{Dresden}
\setbeamertemplate{title page}
{
\vbox{}
\vfill
\begingroup
\centering
\begin{beamercolorbox}[sep=8pt,center]{title}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\begin{center}
\includegraphics[width=117pt,height=175pt,keepaspectratio]{pic}
\end{center}
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\endgroup
\vfill
}
\title{Title}
\subtitle{Subtitle}
\author{Auth1 \and Auth2 \and Auth3}
\date{}
\begin{document}
\frame{\titlepage}
\end{document}