-
Notifications
You must be signed in to change notification settings - Fork 1
/
beamerthemeteslabs.sty
104 lines (95 loc) · 2.74 KB
/
beamerthemeteslabs.sty
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
% colors
\definecolor{base-color}{RGB}{87, 173, 104}
% serif font for mathematical formulas
\usefonttheme[onlymath]{serif}
% structure color is base-color
\setbeamercolor{structure}{fg=base-color}
% no navigation bar
\setbeamertemplate{navigation symbols}{}
% no icons on bibliography
\setbeamertemplate{bibliography item}{}
% bibliography colors
\setbeamercolor{bibliography entry author}{fg=black}
\setbeamercolor{bibliography entry title}{fg=black}
\setbeamercolor{bibliography entry location}{fg=black}
\setbeamercolor{bibliography entry note}{fg=black}
% custom title page
\makeatletter
\setbeamertemplate{title page}
{
\vbox{}
\vfill
\begin{centering}
\includegraphics[scale=0.4]{theme/logo.png}\par
\vskip3em\par
\setbeamerfont{title}{series=\bfseries,size=\huge}
\setbeamercolor{title}{bg=white,fg=structure}
\begin{beamercolorbox}[center]{title}
\usebeamerfont{title}\inserttitle
\end{beamercolorbox}
\begin{beamercolorbox}[center]{subtitle}
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}%
\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip2em\par
\begin{beamercolorbox}[center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\begin{beamercolorbox}[center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}%
\vskip0.5em
\end{centering}
\vfill
}
\makeatother
% custom frame title
\setbeamerfont{frametitle}{series=\bfseries}
\setbeamertemplate{frametitle}
{%
\begin{centering}
\insertframetitle\par
\end{centering}
}
% custom frame footer
\setbeamerfont{footline}{size=\fontsize{9}{12}}
\setbeamertemplate{footline}
{%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,
ht=4.25ex,
dp=1ex,
left]{structure}
\raisebox{.5\baselineskip}{%
\parbox[t][4ex][t]{.333333\paperwidth}{%
\raisebox{-.3\height}{%
\hskip2ex\includegraphics[height=3ex]{theme/logo.png}%
}%
}%
}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,
ht=4.25ex,
dp=1ex,
center]{structure}%
\raisebox{.5\baselineskip}{%
\parbox[t][4ex][t]{.333333\paperwidth}{%
\centering\insertsection%
}%
}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,
ht=4.25ex,
dp=1ex,
right]{structure}%
\raisebox{.5\baselineskip}{%
\parbox[t][4ex][t]{.333333\paperwidth}{%
\raggedleft\insertframenumber\hspace*{2ex}%
}%
}
\end{beamercolorbox}}%
}%