beamerthemeGiraldo.sty 2.59 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.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% Opcoes
%
\newif\ifgiraldo@sempavor
\giraldo@sempavorfalse
\DeclareOptionBeamer{sempavor}{\giraldo@sempavortrue}
\ProcessOptionsBeamer
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% Logotipo(s)
%
\pgfdeclareimage[width=64pt]{ue-logo}{logo_horizontal_duas_linhas}
\pgfdeclareimage[width=64pt]{ue-logo-branco}{logo_horizontal_duas_linhas_invertido}
\pgfdeclareimage[width=96pt]{ue-logo-principal}{logo_principal}
\titlegraphic{\pgfuseimage{ue-logo-principal}}
%\logo{\pgfputat{\pgfxy(-1.2,8)}{\pgfbox[center,base]{\pgfuseimage{ue-logo}}}}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% Temas por omissao
%
\usecolortheme{Giraldo}
\usefonttheme[onlymath]{serif}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% Opcao sempavor
%
\ifgiraldo@sempavor
	\pgfdeclareimage[width=64pt]{ue-logo}{logo_horizontal_duas_linhas}
	\setbeamercolor{frametitle}{bg=ue-red,fg=white}
\else
	\pgfdeclareimage[width=64pt]{ue-logo}{logo_horizontal_duas_linhas}
\fi
\logo{\pgfputat{\pgfxy(-1.2,8)}{\pgfbox[center,base]{\pgfuseimage{ue-logo}}}}

%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% Pagina de seccao
%
\AtBeginSection
{	\begingroup
	\setbeamercolor{background canvas}{bg=ue-red}		
	\setbeamercolor{palette tertiary}{
		use={structure,normal text},
		fg=ue-red,
		bg=ue-red
	}
	\setbeamercolor{section in toc}{
		fg=white}
	\setbeamercolor{section in toc shaded}{
		fg=ue-red}
	\setbeamertemplate{section in toc shaded}[default][42]
	\logo{\pgfputat{\pgfxy(-1.2,8)}{\pgfbox[center,base]{\pgfuseimage{ue-logo-branco}}}}
	\begin{frame}<beamer>
		\tableofcontents[currentsection]
	\end{frame}
	\endgroup
}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% Afinação de elementos nas páginas
%
\setbeamertemplate{footline}[text line]{
	\insertsectionnavigationhorizontal{\linewidth}{\hskip0pt plus1filll}{\textbf{\insertframenumber}/\inserttotalframenumber}
}
\setbeamertemplate{headline}{}
\setbeamertemplate{navigation symbols}{}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% Correccoes
%
%	Avisos sobre as fontes
%
\let\Tiny=\tiny
%
%	Dicionarios para Portugues
%
\languagepath{Portuguese}
\newtranslation[to=Portuguese]{Definition}{Defini\c{c}\~{a}o}
\newtranslation[to=Portuguese]{Example}{Exemplo}
\newtranslation[to=Portuguese]{Theorem}{Teorema}
\uselanguage{Portuguese}