我想在 beamer 模板的标题页中添加一个额外的元素。我尝试过重新调整元素的用途和位置\institute{}
,但将其向下移动会导致页面高度增加。例如:
\documentclass{beamer}
\usetheme{metropolis} % Use metropolis theme
\setbeamertemplate{institute}{
\vspace*{6em}
\insertinstitute%
\par%
}
\title{A minimal example}
\date{\today}
\author{Matthias Vogelgesang}
\date{}
\institute{I want the new element here}
\begin{document}
\maketitle
\end{document}
如何添加位于页面左下角某处的元素,同时保留模板设置的页面高度?
答案1
tikzpicture
您可以在任何您喜欢的地方添加覆盖。
\documentclass{beamer}
\usepackage{tikz}
\usetheme{metropolis} % Use metropolis theme
\setbeamertemplate{institute}{\begin{tikzpicture}[overlay,remember picture]
\node[anchor=south west] at (current page.south west){\insertinstitute};
\end{tikzpicture}}
\title{A minimal example}
\author{Matthias Vogelgesang}
\date{}
\institute{I want the new element here}
\begin{document}
\maketitle
\end{document}