beamerthemeGiraldo.sty
3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
% 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}