-
Notifications
You must be signed in to change notification settings - Fork 7
/
beamerthemeIllinois.sty
97 lines (78 loc) · 2.67 KB
/
beamerthemeIllinois.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
\ProvidesPackage{beamerthemeIllinois}
% Adapted from the University of Oregon theme (http://ix.cs.uoregon.edu/~peter/uotheme/)
% and also from some mangled pieces of the default theme. That probably puts this under
% GPLv2.
\usepackage{tabularx}
%% The options for this template
% If this option is present, include the navigation buttons
% in the lower right corner.
\newif\ifbeamer@nav
\beamer@navfalse
\DeclareOptionBeamer{nav}{\beamer@navtrue}
% Use a more standard black-on-white scheme
\newif\ifbeamer@white
\beamer@whitefalse
\DeclareOptionBeamer{white}{\beamer@whitetrue}
\newif\ifbeamer@nologo
\beamer@nologofalse
\DeclareOptionBeamer{nologo}{\beamer@nologotrue}
\ProcessOptionsBeamer
\mode<presentation>
%% Set up the logos used in the theme
% This is the logo that goes in the upper right corner.
\logo{\includegraphics[height=0.6cm]{imark}}
% This logo appears below the date on the title page.
\titlegraphic{\includegraphics[height=3cm]{ilogo}}
\setbeamertemplate{frametitle}[default][center]
% Removes the logo from the lower right so that we can place it less obtrusively
\defbeamertemplate*{sidebar right}{uillinois theme}
{
\vfill%
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
\vskip2pt%
}
\useoutertheme{split}
% Redefine the frameheader to include a logo
\defbeamertemplate*{frametitle}{uillinois theme}[1][left]
{
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
\@tempdima=\textwidth%
\advance\@tempdima by\beamer@leftmargin%
\advance\@tempdima by\beamer@rightmargin%
\begin{beamercolorbox}[sep=0.3cm,#1,wd=\the\@tempdima]{frametitle}
\usebeamerfont{frametitle}%
\vbox{}\vskip-1ex%
\if@tempswa\else\csname beamer@fte#1\endcsname\fi%
\begin{tabularx}{.95\@tempdima}{lXr}
\ifbeamer@nologo\insertframetitle&&\else\insertframetitle&&\insertlogo
\fi
\end{tabularx}\par%
{%
\ifx\insertframesubtitle\@empty%
\else%
{\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle\strut\par}%
\fi
}%
\vskip-1ex%
\if@tempswa\else\vskip-.3cm\fi% set inside beamercolorbox... evil here...
\end{beamercolorbox}%
}
\useinnertheme{circles}
\ifbeamer@white
\usecolortheme{IllinoisWhite}
\else
\usecolortheme{Illinois}
\fi
% Circles are much nicer for bullet points, but the circles
% inner theme does not give you rounded boxes. Override these
% settings as in the rounded theme.
\setbeamertemplate{title page}[default][colsep=-4bp,rounded=true]
\setbeamertemplate{blocks}[rounded]
% Disable the navigation bar unless it was explicitly requested
\ifbeamer@nav
\else
\setbeamertemplate{navigation symbols}{}
\fi
\setbeamerfont{block title}{size={}}
\mode
<all>