beamerthemeGiraldo.sty 1.54 KB
% Copyright 2014 by Francisco Coelho
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
\mode<presentation>
%
% \DeclareOptionBeamer{nosidebar}{\PassOptionsToPackage{nosidebar}{beamerouterthemeGiraldo}}
% \DeclareOptionBeamer{hideothersubsections}{\PassOptionsToPackage{hideothersubsections}{beamerouterthemeGiraldo}}
%
\newif\ifhidesections
\hidesectionsfalse
%
\DeclareOptionBeamer{hidesections}[true]{\csname hidesections#1\endcsname}
\DeclareOptionBeamer{strongtitles}{\PassOptionsToPackage{strongtitles}{beamercolorthemeGiraldo}}
\ProcessOptionsBeamer
%
\pgfdeclareimage[width=64pt]{university-logo}{logo_horizontal_duas_linhas}
\pgfdeclareimage[width=64pt]{university-logo-inverted}{logo_horizontal_duas_linhas_invertido}
\logo{\pgfputat{\pgfxy(-1.2,8)}{\pgfbox[center,base]{\pgfuseimage{university-logo}}}}
%
\ifhidesections
\else
	\AtBeginSection[] {%
		\begingroup%
			\setbeamertemplate{footline}[]%
			\setbeamercolor{background canvas}{bg=ue-red}
			\setbeamercolor{section in toc shaded}{fg=black}
			\setbeamercolor{section in toc}{fg=white}
			\logo{\pgfputat{\pgfxy(-1.2,8)}{\pgfbox[center,base]{\pgfuseimage{university-logo-inverted}}}}
			\begin{frame}<beamer>
				\tableofcontents[currentsection]
			\end{frame}
		\endgroup
	}
\fi

\usecolortheme{Giraldo}
\usefonttheme{default}
\useinnertheme{default}
\useoutertheme{Giraldo}

\setbeamertemplate{headline}{}
\setbeamertemplate{footline}[frame number]
\setbeamertemplate{navigation symbols}{}
\let\Tiny=\tiny
\mode
<all>