-
Notifications
You must be signed in to change notification settings - Fork 52
/
beamercolorthemexjtubeamer.sty
254 lines (240 loc) · 5.58 KB
/
beamercolorthemexjtubeamer.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
%%
%% Copyright 2016-2023 Obster-Y
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainer of this work is Obster-Y.
%%
%% This work contains source codes from `beamercolorthemesjtubeamer.dtx' devloped
%% by sjtuG and distributed under Apache License V2.0
%%
%% This work consists of the files beamercolorthemexjtubeamer.sty.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamercolorthemexjtubeamer}[2023/05/28 v1.0.0 xjtubeamer color theme]
%%%%%%%%%%%%%
%% PALETTE %%
%%%%%%%%%%%%%
%% RED: GRADIENT PALETTE %%
% \definecolor{xjtuRedPrimary }{RGB}{200, 22 , 30 } % #C8161E
% \definecolor{xjtuRedSecondary }{RGB}{185, 9 , 87 } % #B90957
% \definecolor{xjtuRedTertiary }{RGB}{145, 50 , 122} % #91327A
% \definecolor{xjtuRedQuaternary}{RGB}{93 , 70 , 132} % #5D4684
%% BLUE: GRADIENT PALETTE %%
% \definecolor{xjtuBluePrimary }{RGB}{0 , 78 , 151} % #004E97
% \definecolor{xjtuBlueSecondary }{RGB}{0 , 122, 185} % #007AB9
% \definecolor{xjtuBlueTertiary }{RGB}{0 , 162, 187} % #00A2BB
% \definecolor{xjtuBlueQuaternary}{RGB}{0 , 198, 162} % #00C6A2
%% RED: SPOT PALETTE %%
\definecolor{xjtuRedPrimary}{RGB}{200, 22 , 30 } % #C8161E
\definecolor{xjtuRedSecondary}{RGB}{202, 134, 123} % #CA867B
\definecolor{xjtuRedTertiary}{RGB}{255, 229, 219} % #FFE5DB
\definecolor{xjtuRedQuaternary}{RGB}{90 , 186, 182} % #5ABAB6
%% BLUE: SPOT PALETTE %%
\definecolor{xjtuBluePrimary}{RGB}{0 , 78 , 151} % #004E97
\definecolor{xjtuBlueSecondary}{RGB}{83 , 126, 206} % #537ECE
\definecolor{xjtuBlueTertiary}{RGB}{229, 240, 255} % #E5F0FF
\definecolor{xjtuBlueQuaternary}{RGB}{214, 164, 25 } % #D6A419
%%%%%%%%%%%%
%% COLORS %%
%%%%%%%%%%%%
\DefineOption{color}{color}{red}
\DefineOption{color}{color}{blue}
\ExecuteOptionsBeamer{red}
\DefineOption{color}{lum}{light}
\DefineOption{color}{lum}{dark}
\ExecuteOptionsBeamer{dark}
\ProcessOptionsBeamer
\if\EqualOption{color}{color}{red}
\colorlet{cprimary}{xjtuRedPrimary}
\colorlet{csecondary}{xjtuRedSecondary}
\colorlet{ctertiary}{xjtuRedTertiary}
\colorlet{cquanternary}{black}
\else
\colorlet{cprimary}{xjtuBluePrimary}
\colorlet{csecondary}{xjtuBlueSecondary}
\colorlet{ctertiary}{xjtuBlueTertiary}
\colorlet{cquanternary}{white}
\fi
%%%%%%%%%%%%%%%%%%%%%%
%% STRUCTURE COLORS %%
%%%%%%%%%%%%%%%%%%%%%%
\setbeamercolor{structure}{
fg=cprimary
}
\if\EqualOption{color}{lum}{light}
\setbeamercolor{palette primary}{
bg=white,
fg=cprimary,
}
\setbeamercolor{palette secondary}{
bg=white,
fg=cprimary!50!csecondary,
}
\setbeamercolor{palette tertiary}{
bg=white,
fg=csecondary,
}
\else
\setbeamercolor{palette primary}{
bg=cprimary,
fg=white,
}
\setbeamercolor{palette secondary}{
bg=cprimary!50!csecondary,
fg=white,
}
\setbeamercolor{palette tertiary}{
bg=csecondary,
fg=white,
}
\fi
\setbeamercolor{background canvas}{
bg=white,
}
\setbeamercolor{normal text}{
fg=black,
bg=black!40,
}
\setbeamercolor*{block title}{
parent=structure,
}
\setbeamercolor{titlelike}{
fg=cprimary,
bg=,
}
\setbeamercolor{title}{
use={palette primary},
fg=palette primary.fg,
bg=,
}
\setbeamercolor{subtitle}{
use={palette secondary},
fg=palette secondary.fg,
bg=,
}
\setbeamercolor{author}{
use={palette primary},
fg=palette primary.fg,
bg=,
}
\setbeamercolor{institute}{
parent=author,
}
\setbeamercolor{date}{
parent=author,
}
\setbeamercolor{logo}{
fg=cprimary,
bg=,
}
\setbeamercolor{block title}{
fg=white,
bg=cprimary!90
}
\setbeamercolor{block title alerted}{
use=alerted text,
fg=white,
bg=csecondary,
}
\setbeamercolor{block title example}{
use=example text,
fg=cquanternary,
bg=ctertiary,
}
\setbeamercolor{block body}{
parent=normal text,
use=block title,
bg=block title.bg!15,
}
\setbeamercolor{block body alerted}{
parent=normal text,
use=block title alerted,
bg=block title alerted.bg!15,
}
\setbeamercolor{block body example}{
parent=normal text,
use=block title example,
bg=block title example.bg!15,
}
\setbeamercolor{block body stamp}{
bg=,
}
\setbeamercolor{footnote}{
fg=black,
bg=,
}
\setbeamercolor{part title}{
parent={palette primary},
}
\setbeamercolor{section title}{
parent={palette secondary},
}
\setbeamercolor{subsection title}{
parent={palette tertiary},
}
\setbeamercolor{section in head/foot}{
fg=white,
bg=cprimary,
}
\setbeamercolor{subsection in head/foot}{
fg=cprimary,
bg=cprimary!20,
}
\setbeamercolor{navigation symbols in head/foot}{
fg=white,
bg=cprimary!20,
}
\setbeamercolor{institute in head/foot}{
fg=white,
bg=,
}
\setbeamercolor{author in head/foot}{
fg=white,
bg=,
}
\setbeamercolor{page number in head/foot}{
fg=white,
bg=,
}
\setbeamercolor{frametitle}{
use=titlelike,
fg=titlelike.fg,
bg=white,
}
\setbeamercolor{frametitle right}{
parent=subsection in head/foot,
}
\setbeamercolor{alerted text}{
fg=cprimary,
}
\setbeamercolor{bibliography item}{
fg=black,
bg=,
}
\setbeamercolor{bibliography entry author}{
fg=black,
bg=,
}
\setbeamercolor{bibliography entry title}{
fg=black,
bg=,
}
\setbeamercolor{bibliography entry location}{
fg=black,
bg=,
}
\setbeamercolor{bibliography entry note}{
fg=black,
bg=,
}
\endinput
%% EOF: beamercolorthemexjtubeamer.sty