-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbeamerthemeNotreDame.sty
182 lines (154 loc) · 5.84 KB
/
beamerthemeNotreDame.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
\ProvidesPackage{beamerthemeNotreDame}
% 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 [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 UW 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 university 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}
\newif\ifbeamer@fullFooter
\beamer@fullFooterfalse
\DeclareOptionBeamer{fullFooter}{\beamer@fullFootertrue}
\ProcessOptionsBeamer
\mode<presentation>
\setbeamertemplate{frametitle}[default][center]
% Removes the logo from the lower right so that we can place it less obtrusively
\defbeamertemplate*{sidebar right}{notredame theme}
{
\vfill%
\llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
\vskip2pt%
}
% Redefine the frameheader to include a logo
\defbeamertemplate*{frametitle}{notredame 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}
% 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]
% \setbeamercolor*{author in head/foot}{parent=palette tertiary}
\setbeamercolor*{title in head/foot}{parent=palette secondary}
\setbeamercolor*{page in head/foot}{parent=palette primary}
% \setbeamercolor*{section in head/foot}{parent=palette tertiary}
% \setbeamercolor*{subsection in head/foot}{parent=palette primary}
\defbeamertemplate*{footline}{footTitleAuthorDate}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\expandafter\beamer@ifempty\expandafter{\beamer@shortinstitute}{}{~~\insertshortinstitute}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{title in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\defbeamertemplate*{footline}{footerSimple}
{
\leavevmode%
\makebox[\paperwidth][r]{\insertframenumber{} / \inserttotalframenumber{}\hspace*{1ex}}%
\vspace*{1ex}%
\vskip0pt%
}
\setbeamersize{text margin left=1em,text margin right=1em}
%%%%%% IF SWITCHES %%%%%%
\ifbeamer@sections
\useoutertheme{miniframes}
\fi
\ifbeamer@white
\usecolortheme{NotreDameWhite}
\else
\usecolortheme{NotreDame}
\fi
% This logo appears below the date on the title page.
\ifbeamer@compactlogo
\ifbeamer@white
\logo{\includegraphics[height=0.6cm]{ND_Logos/monogram/ND_monogram_gold_metallic}}
\titlegraphic{\includegraphics[height=1.5cm]{ND_Logos/college_of_science/science_mark_black}}
\else
\logo{\includegraphics[height=0.6cm]{ND_Logos/monogram/ND_monogram_blue}}
\titlegraphic{\includegraphics[height=1.5cm]{ND_Logos/college_of_science/science_mark_white}}
\fi
\else
\ifbeamer@white
\logo{\includegraphics[height=0.6cm]{ND_Logos/monogram/ND_monogram_gold_metallic}}
\titlegraphic{\includegraphics[height=1.5cm]{ND_Logos/college_of_science/science_mark_black}}
\else
\logo{\includegraphics[height=0.6cm]{ND_Logos/monogram/ND_monogram_blue}}
\titlegraphic{\includegraphics[height=1.5cm]{ND_Logos/college_of_science/science_mark_white}}
\fi
\fi
% Disable the navigation bar unless it was explicitly requested
\ifbeamer@nav
\else
\setbeamertemplate{navigation symbols}{}
\fi
\ifbeamer@fullFooter
\setbeamertemplate{footline}[footTitleAuthorDate]
\else
\ifbeamer@noslidenumbers
\else
\setbeamertemplate{footline}[footerSimple]
\fi
\fi
\mode<all>