-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemeLilly.sty
executable file
·152 lines (127 loc) · 4.36 KB
/
beamerthemeLilly.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
\ProvidesPackage{beamerthemeLilly}
% 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.
% Edit by Haoda Fu 9/7/2014 Version 1.0
\usepackage{tabularx}
%% The options for this template
% If this option [nav] is present, include the navigation buttons in
% the lower right corner. The default is no navigation buttons
\newif\ifbeamer@nav
\beamer@navfalse
\DeclareOptionBeamer{nav}{\beamer@navtrue}
% Use a more standard black-on-white scheme. The option [white] is
% not enabled by default.
\newif\ifbeamer@white
\beamer@whitefalse
\DeclareOptionBeamer{white}{\beamer@whitetrue}
% If the option [nologo] is provided, the Lilly logo on the right side of
% the slide title is suppressed. The logo is on by default.
\newif\ifbeamer@nologo
\beamer@nologofalse
\DeclareOptionBeamer{nologo}{\beamer@nologotrue}
% The default logo has the crest above the Lilly name, which uses
% a lot of vertical room. For a more 'compact' look, use the
% [compactlogo] option.
\newif\ifbeamer@compactlogo
\beamer@compactlogofalse
\DeclareOptionBeamer{compactlogo}{\beamer@compactlogotrue}
% The option [sections] shows the current section name under the slide
% title. There are no sections shown by default.
\newif\ifbeamer@sections
\beamer@sectionsfalse
\DeclareOptionBeamer{sections}{\beamer@sectionstrue}
% The option [noslidenumbers] suppresses the display of slide numbers.
% Slide numbers are shown by default
\newif\ifbeamer@noslidenumbers
\beamer@noslidenumbersfalse
\DeclareOptionBeamer{noslidenumbers}{\beamer@noslidenumberstrue}
\ProcessOptionsBeamer
\mode<presentation>
%% Set up the logos used in the theme
% This is the logo that goes in the upper right corner, in the frametitle.
\logo{\includegraphics[height=0.6cm]{LillyLogo_White_EPS.pdf}}
% This logo appears below the date on the title page.
\ifbeamer@compactlogo
\ifbeamer@white
\titlegraphic{\includegraphics[height=1.8cm]{LD_H_RGB.pdf}}
\else
\titlegraphic{\includegraphics[height=2.5cm]{LD_H_RGB.pdf}}
\fi
\else
\ifbeamer@white
\titlegraphic{\includegraphics[height=3cm]{LD_V_RGB.pdf}}
\else
\titlegraphic{\includegraphics[height=3cm]{LD_V_RGB.pdf}}
\fi
\fi
\setbeamertemplate{frametitle}[default][center]
% Removes the logo from the lower right so that we can place it less obtrusively
\defbeamertemplate*{sidebar right}{uwisconsin theme}
{
\vfill%
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
\vskip2pt%
}
\newcommand{\frameTitleAndSection}[0]{
\ifbeamer@sections
\parbox{3in}{\insertframetitle \\ \tiny\usebeamercolor[fg]{section text}\insertsectionhead}
\else
\insertframetitle
\fi
}
\ifbeamer@noslidenumbers
\else
\useoutertheme{subtle}
\fi
% Redefine the frameheader to include a logo
\defbeamertemplate*{frametitle}{uwisconsin 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}{lr}
\ifbeamer@nologo
\frameTitleAndSection &
\else
\insertlogo & \frameTitleAndSection
\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{LillyWhite}
\else
\usecolortheme{Lilly}
\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][shadow=true]
\newenvironment{variableblock}[3]{%
\setbeamercolor{block body}{#2}
\setbeamercolor{block title}{#3}
\begin{block}{#1}}{\end{block}}
% Disable the navigation bar unless it was explicitly requested
\ifbeamer@nav
\else
\setbeamertemplate{navigation symbols}{}
\fi
\setbeamerfont{block title}{size={}}
\mode
<all>