我们如何才能添加一条额外更宽的线,并与标题具有相同的颜色背景,以便在幻灯片的右下角包含该机构的徽标?
目前调整后的页脚如下:
\documentclass{beamer}
\usetheme{metropolis}
\setbeamertemplate{frame footer}{\insertshortauthor~(\insertshortinstitute)\hfill\insertshorttitle}
\setbeamerfont{page number in head/foot}{size=\tiny}
\setbeamercolor{footline}{fg=gray}
\author{names}
\institute{institute}
\title{Quack}
\begin{document}
\begin{frame}
content...
\end{frame}
\end{document}
答案1
您可以像下面这样重新定义 fooline:
\documentclass{beamer}
\usetheme{moloch}% modern fork of the metropolis theme
\setbeamertemplate{frame footer}{\insertshortauthor~(\insertshortinstitute)\hfill\insertshorttitle}
\setbeamerfont{page number in head/foot}{size=\tiny}
%\setbeamercolor{footline}{fg=gray}
\author{names}
\institute{institute}
\title{Quack}
\setbeamercolor{footline}{fg=black!2, bg=mDarkTeal}
\makeatletter
\setbeamertemplate{footline}{%
\begin{beamercolorbox}[wd=\textwidth, sep=1ex]{footline}
\usebeamerfont{page number in head/foot}%
\usebeamertemplate*{frame footer}
\hfill%
\raisebox{-2ex}{\includegraphics[height=6ex]{example-image-duck}}
\end{beamercolorbox}%
}
\makeatother
\begin{document}
\begin{frame}
content...
\end{frame}
\end{document}