源自蒙彼利埃的自定义外部主题

源自蒙彼利埃的自定义外部主题

我正在尝试修改蒙彼利埃主题以匹配我的机构颜色,插入徽标等。这是我使用所需颜色/信息自定义页脚的方法:

\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{footlinecolor}%{author in head/foot}%
 \usebeamerfont{author in head/foot}\insertauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{footlinecolor1}%{title in head/foot}%
 \usebeamerfont{title in head/foot}\insertshortdate
 \end{beamercolorbox}%
 \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{footlinecolor1}%{date in head/foot}%
  \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
 \end{beamercolorbox}}%
 \vskip0pt%
 }
 \makeatother

现在我需要对标题进行类似操作,但我似乎找不到源代码来修改它。我想保留蒙彼利埃主题的漂亮树形结构,但在右侧添加我的机构徽标,并更改所有颜色。任何帮助都非常感谢!

答案1

您可以在中找到标题的源代码beamerouterthemetree.sty,但如果您只想更改颜色、添加徽标等,则不需要源代码。

\documentclass{beamer}

\useoutertheme{infolines}
\usetheme{Montpellier}
\setbeamertemplate{footline}[infolines]

\setbeamercolor{footlinecolor}{fg=black, bg=blue!50!white}
\setbeamercolor{footlinecolor1}{fg=black, bg=blue!20!white}

%%% Footline %%%
\setbeamercolor{title in head/foot}{parent=footlinecolor}
\setbeamercolor{author in head/foot}{parent=footlinecolor1}
\setbeamercolor{date in head/foot}{parent=footlinecolor1}

%%%% headline %%%%
\setbeamercolor{section in head/foot}{bg=green}
\setbeamercolor{subsection in head/foot}{bg=yellow}
\setbeamercolor{separation line}{bg=red}

%%% Logo
\usepackage{tikz}
\addtobeamertemplate{headline}{}{%
\begin{tikzpicture}[remember picture,overlay]
\node at([shift={(5.5,-.6)}]current page.north) {\includegraphics[height=.8\headheight]{example-image}};
\end{tikzpicture}}

\begin{document}

\section{bla}
\begin{frame}
test
\end{frame}
\end{document}

在此处输入图片描述


黑色背景:

在此处输入图片描述

相关内容