-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemeRubiks.sty
executable file
·259 lines (216 loc) · 8.64 KB
/
beamerthemeRubiks.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
259
% based upon beamerthemeQuedlinburg
% Copyright 2005 by Andreas Tille <[email protected]>
%
% some modifications by Joachim Breitner, © 2005
% some more modifications by Jan Dillmann, © 2007-2008
%
% This program can be redistributed and/or modified under the terms
% of the GNU Public License, version 2.
\mode<presentation>
% shadow of not yet presented items
\setbeamercovered{dynamic}
% View structure of presentation before new section
\AtBeginSection[]
{
\begin{frame}<beamer>
\frametitle{Kapitelübersicht}
\tableofcontents[currentsection]
\end{frame}
}
\useinnertheme[shadow=true]{rounded}
\setbeamercolor{section in head/foot}{parent=palette quaternary}
\setbeamercolor{section in head/foot}{parent=palette tertiary}
\setbeamercolor{subsection in head/foot}{parent=palette secondary}
\setbeamercolor{author in head/foot}{parent=subsection in head/foot}
\setbeamercolor{title in head/foot}{parent=section in head/foot}
\def\beamer@theme@footline@empty{}
\def\beamer@theme@footline@authorinstitute{
\defbeamertemplate*{footline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
\hfill%
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
}
\def\beamer@theme@footline@authortitle{
\defbeamertemplate*{footline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
\leavevmode{\usebeamerfont{title in head/foot}\insertshorttitle}%
\hfill%
{\usebeamerfont{author in head/foot}\usebeamercolor[fg]{author in head/foot}\insertshortauthor}%
\hfill%
{\usebeamerfont{author in head/foot}\usebeamercolor[fg]{author in head/foot}\insertframenumber{} / \inserttotalframenumber}%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
}
\def\beamer@theme@footline@institutetitle{
\defbeamertemplate*{footline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
\leavevmode{\usebeamerfont{title in head/foot}\insertshorttitle}%
\hfill%
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
}
\def\beamer@theme@footline@authorinstitutetitle{
\defbeamertemplate*{footline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
\hfill%
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
{\usebeamerfont{title in head/foot}\insertshorttitle}%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
}
\DeclareOptionBeamer{footline}{\csname beamer@theme@footline@#1\endcsname}
\DeclareOptionBeamer{subsection}[true]{\csname beamer@theme@subsection#1\endcsname}
\ProcessOptionsBeamer
%% from shadow1 (removed there)
\addtobeamertemplate{headline}
{}
{%
\vskip-0.2pt
\pgfuseshading{beamer@topshade}
\vskip-2pt
}
\newif\ifbeamer@theme@subsection
\beamer@theme@subsectiontrue
% Head
\defbeamertemplate*{headline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}
\end{beamercolorbox}
\begin{beamercolorbox}{section in head/foot}
\vskip2pt\insertnavigation{\paperwidth}\vskip2pt
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
\end{beamercolorbox}
}
% From shade
\AtBeginDocument{
\pgfdeclareverticalshading{beamer@topshade}{\paperwidth}{%
color(0pt)=(bg);
color(4pt)=(black!50!bg)}
}
\addtobeamertemplate{headline}
{}
{%
\vskip-0.2pt
\pgfuseshading{beamer@topshade}
\vskip-2pt
}
\setbeamercolor{section in head/foot}{parent=palette quaternary}
\setbeamercolor{frametitle}{parent=subsection in head/foot}
\setbeamercolor{frametitle right}{parent=section in head/foot}
%% end of miniframes outer theme definitions
%% Further definitions
\mode
<all>
%% split1 ende
\setbeamercolor{frametitle}{parent=subsection in head/foot}
\setbeamercolor{frametitle right}{parent=section in head/foot}
\pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{\paperheight}{%
color(0pt)=(frametitle.bg);
color(\paperwidth)=(frametitle right.bg)}
\defbeamertemplate*{frametitle}{shadow1 theme}
{%
\nointerlineskip%
\vskip-2pt%
\hbox{\leavevmode
\advance\beamer@leftmargin by -12bp%
\advance\beamer@rightmargin by -12bp%
\beamer@tempdim=\textwidth%
\advance\beamer@tempdim by \beamer@leftmargin%
\advance\beamer@tempdim by \beamer@rightmargin%
\hskip-\Gm@lmargin\hbox{%
\setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\paperwidth}%
\vbox{}\vskip-.75ex%
\leftskip0.3cm%
\rightskip0.3cm plus1fil\leavevmode
\insertframetitle%
\ifx\insertframesubtitle\@empty%
\strut\par%
\else
\par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\insertframesubtitle}\strut\par}%
\fi%
\nointerlineskip
\vbox{}%
\end{minipage}}%
\beamer@tempdim=\ht\beamer@tempbox%
\advance\beamer@tempdim by 2pt%
\begin{pgfpicture}{0pt}{0pt}{\paperwidth}{\beamer@tempdim}
\usebeamercolor{frametitle right}
\pgfrect[clip]{\pgforigin}{\pgfpoint{\paperwidth}{\beamer@tempdim}}
\pgfbox[left,base]{\pgfuseshading{beamer@frametitleshade}}
\pgfputat{\pgfrelative{\pgfpoint{\paperwidth}{0.5\beamer@tempdim}}{\pgfpoint{-5mm}{-0mm}}}{\pgfbox[right,center]{}}%\pgfuseimage{uni-logo}}}
\end{pgfpicture}
\hskip-\paperwidth%
\box\beamer@tempbox%
}%
\hskip-\Gm@rmargin%
}%
\nointerlineskip
\vskip-0.2pt
\hbox to\textwidth{\hskip-\Gm@lmargin\pgfuseshading{beamer@topshade}\hskip-\Gm@rmargin}
\vskip-2pt
}
\mode<presentation>
% Dark blue theme by Jan Dillmann
\definecolor{craneorange}{RGB}{0,255,0} % ?
\definecolor{craneblue}{RGB}{0,0,0} % font
\definecolor{myblue}{RGB}{24, 44, 87} % slide header background
\definecolor{mywhite}{RGB}{255, 255, 255} % slide headers text
\definecolor{myorange}{RGB}{250, 232, 40} % box header background
\definecolor{myyellow}{RGB}{255, 251, 145} % box body background
\definecolor{boxheader}{RGB}{0, 0, 0} % box headers text
\definecolor{myred}{RGB}{255, 112, 100} % box header background
\definecolor{mygreen}{RGB}{145, 212, 80} % box header background
\setbeamercolor{structure}{fg=craneblue}
\setbeamercolor{palette primary}{fg=mywhite,bg=myblue!75}
\setbeamercolor{palette secondary}{fg=mywhite,bg=myblue!50}
\setbeamercolor{palette tertiary}{fg=mywhite,bg=myblue!25}
\setbeamercolor{palette quaternary}{fg=mywhite,bg=myblue}
\setbeamercolor{titlelike}{parent=palette quaternary}
\setbeamercolor{block title}{fg=boxheader,bg=myorange}
\setbeamercolor{block title alerted}{use=alerted text,fg=craneblue,bg=myred}
\setbeamercolor{block title example}{use=example text,fg=craneblue,bg=mygreen}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=myyellow}
\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!25!bg}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!25!bg}
\setbeamercolor{sidebar}{bg=craneorange!70}
\setbeamercolor{palette sidebar primary}{fg=craneblue}
\setbeamercolor{palette sidebar secondary}{fg=craneblue!75}
\setbeamercolor{palette sidebar tertiary}{fg=craneblue!75}
\setbeamercolor{palette sidebar quaternary}{fg=craneblue}
\setbeamercolor*{separation line}{}
\setbeamercolor*{fine separation line}{}
\mode
<all>