如何在 beamer 中添加与作者姓名一致的导演姓名?

如何在 beamer 中添加与作者姓名一致的导演姓名?

我想在投影仪中将导演姓名与作者姓名对齐,例如:

\author{Made by:\\Author name}
\director{Directed by:\\Director name}

但如果我尝试定义导演的话:

\def\director#1{\def\Director{#1}}\director{Director's Name}

然后它会写在第一帧的顶部。有什么建议吗?

答案1

您可以根据columns环境采用以下方法:

\documentclass{beamer}
\usepackage[T1]{fontenc}

\usetheme{CambridgeUS}
\title{My title}
\institute{My institute}
\author[Author name]{Made by:\\Author name} %<= used the short author name [] for the footline
\newcommand{\director}{Directed by:\\Director name}

% re-definition of the title page
\setbeamertemplate{title page}{
\centering
\begin{beamercolorbox}[rounded=true,shadow=true,sep=8pt,center]{title}
\inserttitle \par
\end{beamercolorbox}
\vfill
\begin{beamercolorbox}[leftskip=8cm,center,wd=0.7\textwidth]{author}
\begin{columns}[T]
\begin{column}{.49\textwidth}%
\centering
\insertauthor
\end{column}
\begin{column}{.49\textwidth}%
\centering
\director
\end{column}
\end{columns}
\end{beamercolorbox}
\vfill
\usebeamerfont{institute}\insertinstitute \par
\vfill
\centering
\insertdate\par
\vfill
}

\begin{document}
\begin{frame}
\titlepage
\end{frame}

\begin{frame}{Title}
example text
\end{frame}
\end{document}

这将为您提供:

在此处输入图片描述

在此处输入图片描述

请注意,我采用了简称,以便author不在脚注中显示字符串Made by:

相关内容