-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbeamerthemeOTS.sty
More file actions
67 lines (57 loc) · 2.21 KB
/
beamerthemeOTS.sty
File metadata and controls
67 lines (57 loc) · 2.21 KB
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
% This document is distributed under the creative commons license:
% Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
% For the full license, see:
% http://creativecommons.org/licenses/by-sa/4.0/
\ProvidesPackage{beamerthemeOTS} [2014/08/23 v1.0 Beamer package with OTS logo and cc-by-sa license]
\mode<presentation>
\useoutertheme{split}
\usecolortheme{whale}
\setbeamercolor*{titlelike}{parent=structure}
\setbeamercovered{transparent}
\mode
<all>
\setbeamertemplate{headline}
{%
\leavevmode%
\def\titleHeight{14ex}
\hspace{-3pt}
\begin{beamercolorbox}[wd=.2\paperwidth,ht=\titleHeight]{logo in
head/foot}%
\vbox to
\titleHeight{\vfil\hbox to
0.2\paperwidth{\hfil\includegraphics[height=\titleHeight-1px]
{./OTS.jpg}\hfil}\vfil}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=\titleHeight]
{section in head/foot}%
\vbox to \titleHeight{\vfil\insertsectionnavigation{.3\paperwidth}\vfil}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=\titleHeight]{subsection in
head/foot}%
\vbox to
\titleHeight{\vfil\insertsubsectionnavigation{.5\paperwidth}\vfil}%
\end{beamercolorbox}%
%\fi%
}
\setbeamertemplate{footline}
{%
\leavevmode%
\hbox{\begin{beamercolorbox}[wd=.4\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.2\paperwidth,ht=2.5ex,dp=1.125ex, center]{title in head/foot}%
\vspace{-1.125ex}\vbox{\vfil \includegraphics[height=3.5ex]{./cc-by-sa-31px.png}\vfil}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.4\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}
}%
\vskip0pt%
}
\definecolor{medBlack}{RGB}{78,78,78}
\definecolor{OTSBlue}{RGB}{8,90,135}
\setbeamercolor{section in head/foot}{bg=medBlack}
\setbeamercolor{logo in head/foot}{parent=section in head/foot}
\setbeamercolor{title in head/foot}{parent=section in head/foot}
\setbeamercolor{subsection in head/foot}{parent=section in head/foot}
\setbeamercolor{structure}{fg=OTSBlue}