-
Notifications
You must be signed in to change notification settings - Fork 6
/
beamercolorthememacquarie.sty
149 lines (147 loc) · 4.05 KB
/
beamercolorthememacquarie.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
%%
%% This is file `beamercolorthememacquarie.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% beamercolorthememacquarie.dtx (with options: `package')
%% ---------------------------------------------------------------------------
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%%
%% https://github.com/matze/mtheme/graphs/contributors
%%
%% and the original template was based on the HSRM theme by Benjamin Weiss.
%%
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamercolorthememacquarie}[2017/01/23 Metropolis color theme]
\RequirePackage{pgfopts}
\pgfkeys{
/macquarie/color/block/.cd,
.is choice,
transparent/.code=\macquarie@block@transparent,
fill/.code=\macquarie@block@fill,
}
\pgfkeys{
/macquarie/color/background/.cd,
.is choice,
dark/.code=\macquarie@colors@dark,
light/.code=\macquarie@colors@light,
}
\newcommand{\macquarie@color@setdefaults}{
\pgfkeys{/macquarie/color/.cd,
background=light,
block=transparent,
}
}
\definecolor{mqRed}{HTML}{A6192E}
\definecolor{mqDeepRed}{HTML}{76232F}
\definecolor{mqBrightRed}{HTML}{D6001C}
\definecolor{mqMagenta}{HTML}{C6007E}
\definecolor{mqPurple}{HTML}{80225F}
\definecolor{mqCharcoal}{HTML}{373A36}
\definecolor{mqSand}{HTML}{D6D2C4}
\definecolor{mqBlack}{HTML}{000000}
\definecolor{mqWhite}{HTML}{FFFFFF}
\newcommand{\macquarie@colors@dark}{
\setbeamercolor{normal text}{%
fg=mqWhite,
bg=mqBlack
}
\usebeamercolor[fg]{normal text}
}
\newcommand{\macquarie@colors@light}{
\setbeamercolor{normal text}{%
fg=mqBlack,
bg=mqWhite
}
}
\setbeamercolor{header text}{%
fg=mqRed,
bg=mqSand
}
\setbeamercolor{alerted text}{%
fg=mqBrightRed
}
\setbeamercolor{example text}{%
fg=mqBrightRed
}
\setbeamercolor{titlelike}{fg=mqBlack, bg=mqSand}
\setbeamercolor{author}{use=header text, parent=header text}
\setbeamercolor{date}{use=header text, parent=header text}
\setbeamercolor{institute}{use=header text, parent=header text}
\setbeamercolor{structure}{use=header text, fg=header text.fg}
\setbeamercolor{palette primary}{%
use=normal text,
fg=mqRed,
bg=mqSand
}
\setbeamercolor{frametitle}{%
use=palette primary,
parent=palette primary
}
\setbeamercolor{progress bar}{%
use=alerted text,
fg=alerted text.fg,
bg=alerted text.fg!50!black!30
}
\setbeamercolor{title separator}{
use=progress bar,
parent=progress bar
}
\setbeamercolor{progress bar in head/foot}{%
use=progress bar,
parent=progress bar
}
\setbeamercolor{progress bar in section page}{
use=progress bar,
parent=progress bar
}
\newcommand{\macquarie@block@transparent}{
\setbeamercolor{block title}{%
use=normal text,
fg=normal text.fg,
bg=
}
\setbeamercolor{block body}{
bg=
}
}
\newcommand{\macquarie@block@fill}{
\setbeamercolor{block title}{%
use=normal text,
fg=normal text.fg,
bg=normal text.bg!80!fg
}
\setbeamercolor{block body}{
use={block title, normal text},
bg=block title.bg!50!normal text.bg
}
}
\setbeamercolor{block title alerted}{%
use={block title, alerted text},
bg=block title.bg,
fg=alerted text.fg
}
\setbeamercolor{block title example}{%
use={block title, example text},
bg=block title.bg,
fg=example text.fg
}
\setbeamercolor{block body alerted}{use=block body, parent=block body}
\setbeamercolor{block body example}{use=block body, parent=block body}
\setbeamercolor{footnote}{fg=normal text.fg!90}
\setbeamercolor{footnote mark}{fg=.}
\setbeamercolor{bibliography entry author}{fg=, bg=}
\setbeamercolor{bibliography entry title}{fg=, bg=}
\setbeamercolor{bibliography entry location}{fg=, bg=}
\setbeamercolor{bibliography entry note}{fg=, bg=}
\macquarie@color@setdefaults
\ProcessPgfPackageOptions{/macquarie/color}
\mode<all>
\endinput
%%
%% End of file `beamercolorthememacquarie.sty'.