beamerthemeGiraldo.sty 3.06 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
\DeclareOptionBeamer{sempavor}{\PassOptionsToPackage{sempavor}{beamercolorthemeGiraldo}}
\DeclareOptionBeamer{comvergonha}{\PassOptionsToPackage{comvergonha}{beamercolorthemeGiraldo}}
%
%	Opcoes
%
%	comsapatos ==> barra de contexo
%
\newif\ifgiraldo@calcado
\giraldo@calcadofalse
\DeclareOptionBeamer{calcado}{\giraldo@calcadotrue}
%
%
\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=64pt]{section-logo}{lhb}
\pgfdeclareimage[width=96pt]{main-logo}{lue}
\titlegraphic{\pgfuseimage{main-logo}}
%\logo{\pgfputat{\pgfxy(-1.2,8)}{\pgfbox[center,base]{\pgfuseimage{ue-logo}}}}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% Temas por omissao
%
\usecolortheme{Giraldo}
\usefonttheme[onlymath]{serif}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% Afinação de elementos nas páginas
%
\ifgiraldo@calcado
	\setbeamertemplate{footline}[text line]{
		\insertsectionnavigationhorizontal{\linewidth}{}{\hskip0pt plus1filll\textbf{\insertframenumber}/\inserttotalframenumber}
	}
\else
	\setbeamertemplate{footline}[text line]{
		\hskip0pt plus1filll\textbf{\insertframenumber}/\inserttotalframenumber
	}
\fi
%
%	
%
\setbeamertemplate{headline}{}
%
%
%
\setbeamertemplate{navigation symbols}{}
%
%	Titulo da pagina
%
\addtobeamertemplate{frametitle}{}{%
	\begin{tikzpicture}[remember picture,overlay]
		\node[anchor=north east] at (current page.north east) {
			\pgfuseimage{page-logo}};
	\end{tikzpicture}
}
%\logo{\pgfputat{\pgfxy(-1.2,8)}{\pgfbox[center,base]{\pgfuseimage{section-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]
		\setbeamertemplate{footline}[text line]{}
		%
		%	FIXME: hardcoded logo coordinates (while in frametitle are page referenced...)
		%
		\logo{\pgfputat{\pgfxy(-1.19,8.09)}{\pgfbox[center,base]{\pgfuseimage{section-logo}}}}
		\begin{frame}<beamer>
			\tableofcontents[currentsection]
		\end{frame}
	\endgroup
}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% 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}