-
Notifications
You must be signed in to change notification settings - Fork 6
/
beamerthemePegasusUCFdark.sty
303 lines (251 loc) · 10.4 KB
/
beamerthemePegasusUCFdark.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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
\ProvidesPackage{beamerthemePegasusUCFdark}[]
%%%%
%beamer theme style file created for the university of UCF (university of central Florida) by Alexander V. Mantzaris using colors and logo images that adhere to official external brand presence
\mode<presentation>
%%%ALEX 1inner \ 2outer \ color \ font
\usepackage{color}
\usepackage{verbatim}
\usepackage{graphicx}
%%%%?!?!?!?
\usepackage{tcolorbox}
\usepackage{arev}
\usepackage[light]{iwona}
\usepackage[T1]{fontenc}
\usepackage[black]{merriweather}
%%%%?!?!?!?
%%%%%COLOR
%golds
\definecolor{ucfGold}{RGB}{255, 202, 6}
\definecolor{ucfGoldHalf}{RGB}{255, 229, 131}
\definecolor{ucfGoldQuarter}{RGB}{254, 242, 193}
%blacks
\definecolor{ucfBlack}{RGB}{0, 0, 0}
\definecolor{ucfBlackHalf}{RGB}{127, 127, 127}
\definecolor{ucfBlackQuarter}{RGB}{191, 191, 191}
%White
\definecolor{whiteSlight}{RGB}{244, 244, 244}
%gold components
\setbeamercolor{framesubtitle}{fg=ucfBlack}
\setbeamercolor{alerted text}{fg=ucfBlack}
\setbeamercolor{example text}{fg=ucfBlack}
\setbeamercolor{structure}{fg=ucfBlack}
\setbeamercolor{item}{fg = ucfGold}
\setbeamercolor{subitem}{fg = ucfGoldHalf}
\setbeamercolor{subsubitem}{fg = ucfGoldQuarter}
\setbeamercolor{description item}{fg = ucfBlack}
\setbeamercolor{author}{fg=ucfGold}
\setbeamercolor{date}{fg=ucfBlack}
%black components
\setbeamercolor{frametitle}{fg = ucfGold}
\setbeamercolor{title}{fg = ucfBlack}
\setbeamercolor{normal text}{fg= ucfGoldQuarter}
\setbeamercolor{caption}{fg = ucfBlack}
\setbeamercolor{caption name}{fg = ucfBlack}
\setbeamercolor{section in toc}{fg=ucfGold}
\setbeamercolor{subsection in toc}{fg=ucfGold}
%TOC
%\setbeamercolor{section in toc}{ * \inserttocsection \par}%{fg = ucfBlack,bg = ucfBlack}
\setbeamercolor{section number projected}{bg=ucfGold,fg=ucfBlack}
\setbeamerfont{section in toc}{family={\fontfamily{ppl}},size=\Large}
\setbeamerfont{subsection in toc}{size=\large}
\setbeamerfont{section number projected}{series=\bfseries,size=\large}
\setbeamerfont{normal text}{family={\fontfamily{arev}} }
\setbeamerfont{frametitle}{ family={\fontfamily{ppl}} }
\setbeamertemplate{section in toc shaded}[default][20]
\setbeamertemplate{sections in toc}[circle]
%%%%fonts (UCF have serif family; main fonts are GOTHAM(direct clear) and CHRONICLE(compact elegant), secondary are KNOCKOUT(compact impact) and ARCHER (casual))
\usefonttheme{professionalfonts}
\usefonttheme{serif} % default family is serif
\useinnertheme{rounded}
\setbeamertemplate{items}[circle]
\setbeamercolor{itemize item}{fg=ucfGold,bg=ucfGold}
\setbeamercolor{items}{fg=ucfGold,bg=ucfGold}
\setbeamertemplate{itemize item}{\normalsize$\bullet$} %[circle]
%\setbeamertemplate{itemize item}[rounded][shadow=false]
%\setbeamertemplate{itemize item}{\color{red}$\blacksquare$}
%%%%INNER
% Standard block
\setbeamercolor{block title}{fg = ucfBlack, bg = ucfGold}
\setbeamerfont{block title}{family={\bfseries\fontfamily{ppl}} }
\setbeamercolor{block body}{fg = ucfBlack,bg = ucfBlackQuarter}
\setbeamerfont{block body}{family={\fontfamily{ppl}} }
% Alert block
\setbeamercolor{block title alerted}{bg = ucfGold}
\setbeamerfont{block title alerted}{family={\bfseries\fontfamily{ppl}} }
\setbeamercolor{block body alerted}{bg = ucfGoldHalf}
\setbeamerfont{block body alerted}{family={\fontfamily{ppl}} }
\setbeamercolor{block body alerted}{fg=ucfBlack}
% Example block
\setbeamercolor{block title example}{bg = ucfGold}
\setbeamerfont{block title example}{family={\bfseries\fontfamily{iwona}} }
\setbeamercolor{block body example}{fg=ucfGoldHalf, bg = ucfBlackHalf}
\setbeamerfont{block body example}{family={\fontfamily{iwona}} }
%%%?!?!?!?
\newenvironment{newblock1}[1]
{\begin{tcolorbox}[title=#1,fonttitle=\fontfamily{ppl},title filled=false,coltitle=ucfGold,colback=ucfBlack,colframe=ucfGold,coltext= ucfGold,fonttitle=\fontfamily{ptm},colbacktitle=ucfBlack,fonttitle=\bfseries\fontfamily{ptm} ]}
{\end{tcolorbox}}
\newenvironment{newblock2}[1]
{\begin{tcolorbox}[title=#1,fonttitle=\fontfamily{ppl},title filled=false,coltitle=ucfBlack,colback=ucfBlack,colframe=ucfGold,coltext= ucfGold,fonttitle=\fontfamily{ptm},colbacktitle=ucfGold,fonttitle=\bfseries\fontfamily{ptm} ]}
{\end{tcolorbox}}
%%%?!?!?!
%Overall aesthetic of inner components
%%%%%OUTER
%bg color
\setbeamercolor{background canvas}{bg=ucfBlack}
\setbeamercolor{titlepageBG1}{fg=ucfBlack,bg=ucfGold}
\setbeamercolor{titlepageBG2}{fg=ucfBlack,bg=ucfGoldHalf}
\usepackage[absolute,overlay]{textpos}
\usepackage{graphicx}
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}{\leavevmode\leftskip=3.2em\rlap{\hskip-2em\inserttocsectionnumber.\inserttocsubsectionnumber}\small\inserttocsubsection\par}
\setbeamertemplate{section in head/foot} {\hfill\insertsectionheadnumber.~\insertsectionhead}
\setbeamertemplate{section in head/foot shaded}{\color{structure!50}\hfill\insertsectionheadnumber.~\insertsectionhead}
\setbeamertemplate{section in toc}{\inserttocsectionnumber.~\inserttocsection}
\AtBeginSection[]
{
%\setbeamerfont{section number projected}{size=\large}
%\setbeamercolor{section number projected}{bg=red,fg=green}
%\usebeamercolor[bg]{section number projected}%
\ifnum \value{framenumber}>1
\begin{frame}
\frametitle{current section}
%\usebeamercolor[bg]{section number projected}%
%\usebeamerfont[bg]{section number projected}%
%\huge{\tableofcontents[currentsection]}
\color{ucfGold}{\tableofcontents[currentsection]}%\huge $\bullet$\insertsectionhead }
\end{frame}
\else
\fi
}
%\addtocounter{framenumber}{-1}
\setbeamertemplate{title page}{
\vspace{.9cm}
\begin{textblock*}{10cm}(1cm,1.5cm)
\begin{beamercolorbox}[center,shadow=false,rounded=true,sep=1.2ex]{titlepageBG1}
\fontfamily{pbk}\selectfont{\Large \inserttitle}\\
\end{beamercolorbox}
\end{textblock*}
%\hspace{3cm}
\vspace{.8cm}
%\begin{textblock*}{5cm}(1cm,4cm)
\center\begin{beamercolorbox}[center,shadow=false,rounded=true,sep=1ex,wd=0.6\textwidth]{titlepageBG2}
\fontfamily{ppl}\selectfont {\large \insertauthor}\\
\end{beamercolorbox}
%\end{textblock*}
\vspace{.32cm}
\begin{textblock*}{6cm}(1cm,7cm)
\ifnum 1 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/statisticsDark}
\fi
\ifnum 2 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/mathematicsDark}
\fi
\ifnum 3 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/engandcsDark}
\fi
\ifnum 4 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/eeandcompengDark}
\fi
\ifnum 5 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/istDark}
\fi
\ifnum 6 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/physicsDark}
\fi
\ifnum 7 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/mechaerospaceDark}
\fi
\ifnum 8 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/caslDark}
\fi
\ifnum 9 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/transportationDark}
\fi
\ifnum 10 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/chemistryDark}
\fi
\ifnum 11 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/biologyDark}
\fi
\ifnum 12 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/econDark}
\fi
\ifnum 13 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/sociologyDark}
\fi
\ifnum 14 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/psychologyDark}
\fi
\ifnum 15 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/businessDark}
\fi
\ifnum 16 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/cosDark}
\fi
\ifnum 0 = \deptname
\center \includegraphics[scale=.5]{stylefiles/UCFLOGOhDark}
\fi
\end{textblock*}
%\insertauthor
%\insertdate
\addtocounter{framenumber}{-1}
}
\setbeamercolor{title block}{fg=ucfBlack,bg=ucfGold}
%frametitle
\setbeamertemplate{frametitle}
{
\ifnum 90 > \deptname
\vskip -0.8pt
\leavevmode
\hbox{\hspace{-.2cm}
\includegraphics[width=1.1cm]{stylefiles/UCFLOGO}
%MAKE BOLD FRAMETITLE
}\hbox{\hspace{0cm}
\bfseries \begin{beamercolorbox}[ht=1.1ex,dp=1ex,wd=.82\textwidth]{ frametitle}
\vspace{.13cm}\offinterlineskip\fontfamily{pbk}\selectfont\Large\insertframetitle
\end{beamercolorbox}}
\else
%MAKE BOLD FRAMETITLE
\bfseries \begin{beamercolorbox}[wd=.9\textwidth]{title block}
\fontfamily{pbk}\selectfont\Large\insertframetitle
\end{beamercolorbox}
\fi
}
%footer
\setbeamercolor{author in head/foot}{fg=ucfGold,bg=ucfBlack}
\setbeamercolor{title in head/foot}{fg=ucfGold,bg=ucfBlack}
\setbeamertemplate{footline}
{
\leavevmode%
\ifnum \insertpagenumber=1
\begin{beamercolorbox}[wd=.65\paperwidth,ht=2.5ex,dp=1ex]{fg=ucfBlack,bg=ucfBlack}%{author in head/foot}% %\insertshorttitle % <definition of footline style on page 1>
\end{beamercolorbox}
\else
% <definition of footline style on other pages>
\hbox{%
\begin{beamercolorbox}[wd=.65\paperwidth,ht=2.5ex,dp=1ex]{author in head/foot}%
\hspace{.2cm} \usebeamerfont{author in head/foot}\fontfamily{pbk}\selectfont\insertshorttitle
\ifx\insertsection\empty
\else
$\rightarrow$\fontfamily{pbk}\selectfont\insertsection
\fi
\ifx\insertsubsection\empty
\else
$\rightarrow$ \fontfamily{pbk}\selectfont\insertsubsection%\insertshortauthor
\fi
%\hspace{2cm}\insertframenumber{} / \inserttotalframenumber\hspace*{1ex}
\end{beamercolorbox}%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}
\insertframenumber{} / \inserttotalframenumber\hspace*{1ex}
\end{beamercolorbox}%
}
}
\fi
}
%%%%MISC
% We will also remove the navigation symbols, which I personally don't find very useful
\setbeamertemplate{navigation symbols}{}
%%%%%END
\mode<all>