在这个 Beamer 文件中,我需要在标题页中同时包含我自己的研究所名称和我所演讲的研究所的名称。例如这一。另外,由于在脚注中我既有我的名字,也有标题和日期,我不希望它们被更改。
\documentclass{beamer}
\usetheme{Darmstadt}
\defbeamertemplate*{footline}{infolines theme}
{\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor~~
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\addtobeamertemplate{block begin}{%
\setlength{\textwidth}{0.8\textwidth}%
}{}
\addtobeamertemplate{block alerted begin}{%
\setlength{\textwidth}{0.8\textwidth}%
}{}
\addtobeamertemplate{block example begin}{%
\setlength{\textwidth}{0.8\textwidth}%
}{}
% Class options include: notes, handout, trans
%
\title{Title} % Enter your title between curly braces
\subtitle{}
\author{author name} % Enter your name between curly braces
\institute{My Institute Name Researcher} % Enter your institute name between curly braces
\date{June 2018} % Enter the date or \today between curly braces
\mode<presentation>{}
\begin{frame}
\end{frame}
end{document}
答案1
肮脏的黑客:
\documentclass{beamer}
\usetheme{Darmstadt}
\defbeamertemplate*{footline}{infolines theme}
{\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor~~
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\addtobeamertemplate{block begin}{%
\setlength{\textwidth}{0.8\textwidth}%
}{}
\addtobeamertemplate{block alerted begin}{%
\setlength{\textwidth}{0.8\textwidth}%
}{}
\addtobeamertemplate{block example begin}{%
\setlength{\textwidth}{0.8\textwidth}%
}{}
% Class options include: notes, handout, trans
%
\title{Title} % Enter your title between curly braces
\subtitle{}
\author{author name} % Enter your name between curly braces
\institute{My Institute Name Researcher\\[0.5cm] visting Institute} % Enter your institute name between curly braces
\date{June 2018} % Enter the date or \today between curly braces
\mode<presentation>{}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}