我正在用 Beamer 类编写我的第一份文档,我想增加标题页中作者和日期之间的垂直间距,以便最后一个位于页面底部。我的 MWE 是:
\documentclass{beamer}
\title{Some title in the middle of the page}
\date{Some date in the bottom of the page}
\begin{document}
\frame{\titlepage}
\end{document}
如果有人能帮忙,我将不胜感激。提前致谢!
答案1
在我看来,最安全的方法是定义您自己的标题页,并根据您的喜好调整间距。
\documentclass{beamer}
\title{Some title in the middle of the page}
\date{Some date in the bottom of the page}
\makeatletter
\setbeamertemplate{title page}{%
\vbox{}
% \vfill
\vspace{3.5cm}% NEW
\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}%
\vskip1em\par
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
\vspace{1.5cm}% NEW
\begin{beamercolorbox}[sep=8pt,center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
% {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\endgroup
% \vfill
}
\makeatother
\begin{document}
\frame{\titlepage}
\end{document}