Estou tentando modificar o tema Montpellier para combinar com as cores da minha Instituição, inserir o logotipo etc. É assim que personalizo o rodapé com as cores/informações desejadas:
\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
Agora preciso fazer algo semelhante com o cabeçalho, mas não consigo encontrar o código-fonte para modificá-lo. Quero manter a bela estrutura em árvore do tema Montpellier, mas adicionar o logotipo da minha instituição à direita e mudar todas as cores. Qualquer ajuda é muito apreciada!
Responder1
Você pode encontrar o código-fonte do título em beamerouterthemetree.sty
, mas se quiser apenas alterar as cores, adicionar um logotipo e similares, não precisa do código-fonte.
\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}
Com fundo preto: