-
Notifications
You must be signed in to change notification settings - Fork 7
/
style.tex
172 lines (146 loc) · 5.3 KB
/
style.tex
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
% Copyright 2012 by Aécio S. R. Santos <aecio.solando@gmail.com>.
%
% In principle, this file can be redistributed and/or modified under
% the terms of the GNU Public License, version 2.
%
% However, this file is supposed to be a template to be modified
% for your own needs. For this reason, if you use this file as a
% template and not specifically distribute it as part of a another
% package/program, I grant the extra permission to freely copy and
% modify this file as you see fit and even to delete this copyright
% notice.
% Redefines the font type
\usepackage{helvet}
\usefonttheme[onlymath]{serif}
% Some useful colors
\definecolor{lightblue}{rgb}{.0, .68, .84}
\definecolor{black}{rgb}{0, 0, 0}
\definecolor{gray}{rgb}{0.3, 0.3, 0.3}
%
% BLUE color scheme
%
\newcommand{\setcolorschemeblue}{
\definecolor{titlecolor}{rgb}{0, 0.37, 0.59}
\definecolor{bulletscolor}{rgb}{.0, .68, .84}
\definecolor{alertcolor}{rgb}{.0, .68, .84}
}
%
% PURPLE color scheme
%
% Purple color pallete
% base 0.35, 0.2, 0.55 (between h2 and h3)
% h1 0.21, 0.1, 0.34 (darker)
% h2 0.28, 0.2, 0.45
% h3 0.44, 0.4, 0.70
% h4 0.51, 0.2, 0.71 (lighter)
%
\newcommand{\setcolorschemepurple}{
\definecolor{titlecolor}{rgb}{0.35, 0.2, 0.55}
\definecolor{bulletscolor}{rgb}{0.44, 0.4, 0.70}
\definecolor{alertcolor}{rgb}{0.35, 0.2, 0.55}
}
%
% GREEN color scheme
%
\newcommand{\setcolorschemegreen}{
\definecolor{titlecolor}{rgb}{0, 0.5, 0.48}
\definecolor{bulletscolor}{rgb}{0.2,0.2,0.7}
\definecolor{alertcolor}{rgb}{.0, .68, .84}
}
% Define default colors scheme
\setcolorschemeblue
% Define color of alert text
\setbeamercolor{alerted text}{fg=alertcolor}
% block environment
%\setbeamertemplate{blocks}[rounded=true, shadow=true]
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamercolor*{block body}{fg=black,bg=titlecolor!20!white}
%\setbeamercolor*{block title}{fg=titlecolor!70!black,bg=titlecolor!40!white}
\setbeamercolor*{block title}{fg=titlecolor!10!white,bg=titlecolor!75!white}
%\setbeamerfont{block title}{size=\large,series=\bf}
% Define font sizes
\setbeamerfont{frametitle}{parent=structure,size=\Large}
\setbeamerfont{framesubtitle}{parent=frametitle,size=\footnotesize}
\setbeamerfont{itemize/enumerate body}{size=\fontsize{16pt}{17.6pt}}
\setbeamerfont{itemize/enumerate subbody}{size=\fontsize{14pt}{15,4pt}}
\setbeamerfont{itemize/enumerate subsubbody}{size=\footnotesize}
% Define font sizes for bibliography
\setbeamerfont{bibliography entry author}{size=\small}
\setbeamerfont{bibliography entry title}{size=\small}
\setbeamerfont{bibliography entry location}{size=\small}
\setbeamerfont{bibliography entry note}{size=\small}
% Redefine the cover title fonts to be bold
%\setbeamerfont{title}{size=\Large, series=\bfseries}
% Redefine cover title color
\setbeamercolor{title}{fg=titlecolor}
% Redefine title color
\setbeamercolor{frametitle}{fg=titlecolor,size=20pt}
% Uncomment to redefine bullets with round format
%\useinnertheme[shadow]{rounded}
%\setbeamertemplate{blocks}[rounded][shadow=\beamer@themerounded@shadow]
%\setbeamertemplate{items}[ball]
% Redefine table of content colors
\setbeamercolor{section in toc}{fg=titlecolor}
\setbeamercolor{subsection in toc}{fg=titlecolor!40!black}
% Redefine bibliography colors
\setbeamercolor{bibliography entry author}{fg=titlecolor!25!black}
\setbeamercolor{bibliography entry title}{fg=titlecolor}
\setbeamercolor{bibliography entry location}{fg=titlecolor!25!black}
% Redefine bullets color
\setbeamercolor*{item}{fg=bulletscolor}
% Redefine spacing of left margin of bullets
\setlength{\leftmargini}{1.3em}
\setlength{\leftmarginii}{1em}
\setlength{\leftmarginiii}{1em}
% Redefine space between of items in 'itemize' enviroment
\newlength{\wideitemsep}
\setlength{\wideitemsep}{\itemsep}
\addtolength{\wideitemsep}{0.25pt}
\let\olditem\item
\renewcommand{\item}{\setlength{\itemsep}{\wideitemsep}\olditem}
% Redefine space before a nested itemize
\makeatletter
\def\@listii{\leftmargin\leftmarginii
\topsep 0.9ex
\parsep 0\p@ \@plus\p@
\itemsep \parsep}
\makeatother
% Redefine width of text area margins
\setbeamersize{text margin left=1em,text margin right=1em}
% Define summary items depth
\setcounter{tocdepth}{2}
% Redefine styles of frames' title
\setbeamertemplate{frametitle} {
\vspace{0.2cm}
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
\begin{beamercolorbox}[]{frametitle}
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
\usebeamerfont{frametitle}{%
\strut\insertframetitle\strut\par%
}
{%
\ifx\insertframesubtitle\@empty%
\else
\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle\strut\par
\fi
\vspace{-.9cm}%
{
\textcolor{gray} {\rule[5pt]{\linewidth}{.5pt}\vspace{-8pt}}
}
}%
\vskip-0.5ex%
\if@tempswa\else\vskip-.9cm\fi
\end{beamercolorbox}%
\vspace{0.2cm}
}
% Removes navigation bar
\beamertemplatenavigationsymbolsempty
% Redefine footline to show only slide number
\setbeamertemplate{footline}{
\begin{beamercolorbox}[wd=1\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
%\hfill
\insertframenumber{} % Only current slide number
%\insertframenumber{} / \inserttotalframenumber % Current slide number and total of slides
\hspace{2ex}
\end{beamercolorbox}
}