-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbeamerthemePegasusUCF.sty
258 lines (210 loc) · 7.87 KB
/
beamerthemePegasusUCF.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
\ProvidesPackage{beamerthemePegasusUCF}[]
%%%%
%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}
%%%%%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=ucfBlack}
\setbeamercolor{date}{fg=ucfBlack}
%black components
\setbeamercolor{frametitle}{fg = ucfBlack}
\setbeamercolor{title}{fg = ucfBlack}
\setbeamercolor{normal text}{fg= ucfBlack}
\setbeamercolor{caption}{fg = ucfBlack}
\setbeamercolor{caption name}{fg = ucfBlack}
%TOC
%\setbeamercolor{section in toc}{ * \inserttocsection \par}%{fg = ucfBlack,bg = ucfBlack}
\setbeamercolor{section number projected}{bg=ucfGold,fg=ucfBlack}
\setbeamerfont{section in toc}{size=\Large}
\setbeamerfont{subsection in toc}{size=\large}
%%%%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
\setbeamerfont{section number projected}{series=\bfseries,size=\large}
\setbeamerfont{normal text}{family={\fontfamily{ppl}} }
%%%%INNER
% Standard block
\setbeamercolor{block title}{fg = ucfBlack, bg = ucfGold}
\setbeamerfont{block title}{family={\fontfamily{ppl}} }
\setbeamercolor{block body}{bg = ucfBlackQuarter}
\setbeamerfont{block body}{family={\fontfamily{ptm}} }
% Alert block
\setbeamercolor{block title alerted}{bg = ucfGold}
\setbeamerfont{block title alerted}{family={\fontfamily{ppl}} }
\setbeamercolor{block body alerted}{bg = ucfGoldHalf}
\setbeamerfont{block body alerted}{family={\fontfamily{ptm}} }
% Example block
\setbeamercolor{block title example}{bg = ucfGold}
\setbeamerfont{block title alerted}{family={\fontfamily{ppl}} }
\setbeamercolor{block body example}{bg = ucfGoldQuarter}
\setbeamerfont{block body example}{family={\fontfamily{ptm}} }
%Overall aesthetic of inner components
\useinnertheme{rounded}
%%%%%OUTER
%bg color
\setbeamercolor{background canvas}{bg=whiteSlight}
\setbeamercolor{titlepageBG1}{fg=ucfBlack,bg=ucfGold}
\setbeamercolor{titlepageBG2}{fg=ucfBlack,bg=ucfGoldQuarter}
\usepackage[absolute,overlay]{textpos}
\usepackage{graphicx}
\AtBeginSection[]
{
\ifnum \value{framenumber}>1
\begin{frame}
\frametitle{current section}
\huge{\tableofcontents[currentsection]}
\end{frame}
\else
\fi
}
%\addtocounter{framenumber}{-1}
\setbeamertemplate{title page}{
\vspace{.9cm}
\begin{textblock*}{10cm}(1cm,1.5cm)
\begin{beamercolorbox}[center,shadow=true,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=true,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/statistics}
\fi
\ifnum 2 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/mathematics}
\fi
\ifnum 3 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/engandcs}
\fi
\ifnum 4 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/eeandcompeng}
\fi
\ifnum 5 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/ist}
\fi
\ifnum 6 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/physics}
\fi
\ifnum 7 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/mechaerospace}
\fi
\ifnum 8 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/casl}
\fi
\ifnum 9 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/transportation}
\fi
\ifnum 10 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/chemistry}
\fi
\ifnum 11 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/biology}
\fi
\ifnum 12 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/econ}
\fi
\ifnum 13 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/sociology}
\fi
\ifnum 14 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/psychology}
\fi
\ifnum 15 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/business}
\fi
\ifnum 16 = \deptname
\center \includegraphics[scale=.6]{stylefiles/depts/cos}
\fi
\ifnum 0 = \deptname
\center \includegraphics[scale=.5]{stylefiles/UCFLOGOh}
\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=1cm]{stylefiles/UCFLOGO}
}\hbox{\hspace{0cm}
\begin{beamercolorbox}[ht=1.1ex,dp=1ex,wd=.82\textwidth]{frametitle}
\vspace{.13cm}\offinterlineskip\fontfamily{pbk}\selectfont\Large\insertframetitle
\end{beamercolorbox}}
\else
\begin{beamercolorbox}[wd=.9\textwidth]{title block}
\fontfamily{pbk}\selectfont\Large\insertframetitle
\end{beamercolorbox}
\fi
}
%footer
\setbeamercolor{author in head/foot}{bg=ucfBlackQuarter}
\setbeamercolor{title in head/foot}{bg=ucfBlackQuarter}
\setbeamertemplate{footline}
{
\leavevmode%
\ifnum \insertpagenumber=1
\begin{beamercolorbox}[wd=.65\paperwidth,ht=2.5ex,dp=1ex]{fg=whiteSlight,bg=whiteSlight}%{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>