-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeamerthemefractalsoft.sty
231 lines (181 loc) · 6.57 KB
/
beamerthemefractalsoft.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
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
%%%%%%%%%%%%%%%%
% Fractal Soft %
%%%%%%%%%%%%%%%%
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\DeclareOptionBeamer{shadow}[true]{\def\beamer@themerounded@shadow{#1}}
\ExecuteOptionsBeamer{shadow=false}
\ProcessOptionsBeamer
\mode<presentation>
\useoutertheme{shadow}
\useinnertheme[shadow=true]{rounded}
\definecolor{couleurbarrehaut}{HTML}{C0BEBF}
\definecolor{couleurbarrebas}{RGB}{190,190,190}
\AtBeginDocument{
\pgfdeclareverticalshading{beamer@belowframetitle}{\the\paperwidth}{%
color(0pt)=(bg);
color(4pt)=(black!50!bg)
}
}
\addtobeamertemplate{headline}
{}
{
\@tempdimb=2.75ex%
\ifnum\beamer@subsectionmax<\beamer@sectionmax%
\multiply\@tempdimb by\beamer@sectionmax%
\else%
\multiply\@tempdimb by\beamer@subsectionmax%
\fi%
\vskip-1\@tempdimb
\includegraphics[width=1.2cm]{images/fractalsoft-logotype.png}
}
\defbeamertemplate*{block begin}{fractalsoft theme}
{
\begin{beamerboxesrounded}[upper=block title color,lower=block background,shadow=true]
{\insertblocktitle}
}
\setbeamertemplate{block body alerted}{fractalsoft theme}
{
\setbeamercolor{global structure}{parent=alerted text}
}
\defbeamertemplate*{block end}{fractalsoft theme}
{
\end{beamerboxesrounded}
}
\defbeamertemplate*{block example begin}{fractalsoft theme}
{
\begin{beamerboxesrounded}[upper=example title color,lower=example background,shadow=true]
{\insertblocktitle}
}
\defbeamertemplate*{block exaples end}{fractalsoft theme}
{
\end{beamerboxesrounded}
}
\defbeamertemplate*{block alerted begin}{fractalsoft theme}
{
\begin{beamerboxesrounded}[upper=alert title color,lower=alert background,shadow=true]
{\insertblocktitle}
}
\defbeamertemplate*{block alerted end}{fractalsoft theme}
{
\end{beamerboxesrounded}
}
\defbeamertemplate*{frametitle}{fractalsoft theme}
{
\nointerlineskip%
\begin{beamercolorbox}[wd=\paperwidth,ht=1cm]{frametitle}
\usebeamerfont*{frametitle}
\vspace{10pt}
\insertframetitle
\end{beamercolorbox}%
\vskip-21pt
\insertvrule{1pt}{black}
\nointerlineskip
}
%% Footline
\defbeamertemplate*{footline}{fractalsoft theme}
{
\vbox{%
\hspace{-0.5mm}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.75ex,dp=1ex,right]{author in head/foot}%
\usebeamerfont{author in head/foot}%
\insertshortauthor%
\hspace{1.5em}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.55\paperwidth,ht=2.75ex,dp=1ex,left]{title in head/foot}%
\usebeamerfont{date in head/foot}%
\hspace{1em}
\insertshorttitle
\end{beamercolorbox}%
\vskip-18pt%
\hspace{.910\paperwidth}%
\begin{beamercolorbox}[wd=10.5mm,ht=2ex,dp=1ex,center, rounded = true, center]{frames in head/foot}%
\usebeamerfont{title in head/foot}%
\insertframenumber{} / %
\inserttotalframenumber%
\end{beamercolorbox}%
}%
\vskip0pt%
}
\defbeamertemplate*{section navigation}{fractalsoft theme}{}
\defbeamertemplate*{title page}{fractalsoft theme}
{
\begin{beamercolorbox}[ht=2cm,rounded=true,shadow=true,center]{block title color}%
\includegraphics[width=2cm]{images/fractalsoft-logotype.png}%
\vbox to 2cm{%
\vfill%
\usebeamerfont*{title}%
\inserttitle%
\newline%
\usebeamerfont*{subtitle}%
\insertsubtitle%
\vfill%
}
\end{beamercolorbox}%
\vskip10pt%
\begin{center}%
\insertauthor%
\par\par%
\insertdate%
\end{center}%
}
\userightsidebartemplate{0cm}{}
%% Color theme %%
\definecolor{gris1}{HTML}{C8C8C8}
\definecolor{gris2}{HTML}{B3B2B2}
\definecolor{fractalsoft-red}{HTML}{970102}
\definecolor{fractalsoft-grey}{HTML}{DCDCDC}
\definecolor{fractalsoft-graphite}{HTML}{3D3D4D}
\definecolor{fractalsoft-light grey}{HTML}{CDCFD0}
\definecolor{fractalsoft-black}{HTML}{cccccc}
\definecolor{fractalsoft-grey footer}{HTML}{EDECEC}
\definecolor{fractalsoft-green}{HTML}{095003}
\setbeamercolor{normal text}{fg=black,bg=fractalsoft-grey}
\setbeamercolor{structure}{fg=fractalsoft-red}
\setbeamercolor{alerted text}{fg=red!85!black}
\setbeamercolor{item projected}{use=item,fg=white,bg=fractalsoft-red}
\setbeamercolor*{block title color}{fg=black, bg=fractalsoft-black}%%%%%%% DEFAULT %%%%%%%%%%%%%%%%
\setbeamercolor*{block background}{fg=black, bg=white}%%%%%%%%%%%%%%%%%%%% BLOCK %%%%%%%%%%%%%%%%
\setbeamercolor*{example title color}{fg=white, bg=fractalsoft-green}%% EXAMPLE %%%%%%%%%%%%%%%%
\setbeamercolor*{example background}{fg=black, bg=white}%%%%%%%%%%%%%%%%%% BLOCK %%%%%%%%%%%%%%%%
\setbeamercolor*{alert title color}{fg=white, bg=fractalsoft-red}%%%%%%%%% ALERT %%%%%%%%%%%%%%%%
\setbeamercolor*{alert background}{fg=black, bg=white}%%%%%%%%%%%%%%%%%%%% BLOCK %%%%%%%%%%%%%%%%
\setbeamercolor*{palette primary}{fg=fractalsoft-grey,bg=fractalsoft-light grey}
\setbeamercolor*{palette secondary}{fg=black,bg=fractalsoft-red} % box color
\setbeamercolor*{palette tertiary}{black!100!red}
\setbeamercolor*{palette quaternary}{black!1!red}
\setbeamercolor*{sidebar}{parent=palette primary}
\setbeamercolor*{palette sidebar primary}{fg=fractalsoft-red}
\setbeamercolor*{palette sidebar secondary}{fg=red}
\setbeamercolor*{palette sidebar tertiary}{fg=fractalsoft-red}
\setbeamercolor*{palette sidebar quaternary}{fg=red}
\setbeamercolor{framesubtitle}{bg=fractalsoft-grey}
\setbeamercolor*{subtitle}{fg=fractalsoft-grey}
\setbeamercolor*{block title}{fg=fractalsoft-grey}
\setbeamercolor*{block title alerted}{parent=alerted text}
\setbeamercolor*{block title example}{parent=example text}
\setbeamercolor*{block body}{}
\setbeamercolor*{block body alerted}{}
\setbeamercolor*{block body example}{}
\setbeamercolor*{titlelike}{fg=black, bg=fractalsoft-light grey}
\setbeamercolor*{author in head/foot}{fg=white,bg=fractalsoft-graphite}
\setbeamercolor*{title in head/foot}{fg=white,bg=fractalsoft-red}
\setbeamercolor*{frames in head/foot}{fg=black,bg=fractalsoft-black}
\setbeamercolor*{section in head/foot}{fg=white, bg=fractalsoft-graphite}
\setbeamercolor*{subsection in head/foot}{fg=white, bg=fractalsoft-red}
\setbeamercolor*{section in toc}{fg=black}
%% Font theme %%
\usefonttheme{professionalfonts}
\setbeamerfont{title}{size = \huge}
\setbeamerfont{frametitle}{size = \Large}
\setbeamerfont{subsection in toc}{size = \tiny}
\setbeamerfont{section in toc}{size = \small}
\setbeamerfont{title}{size = \Large}
\setbeamerfont{subtitle}{size = \small}
\setbeamerfont{section in head/foot}{size = \tiny}
\setbeamerfont{subsection in head/foot}{size = \tiny}
%% Inner theme %%
\setbeamertemplate{blocks}[ball]
\setbeamertemplate{items}[ball]
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
\mode<all>