Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132928 views
License: OTHER
1
%%
2
%% This is file `beamercolorthememetropolis.sty',
3
%% generated with the docstrip utility.
4
%%
5
%% The original source files were:
6
%%
7
%% beamercolorthememetropolis.dtx (with options: `package')
8
%% ---------------------------------------------------------------------------
9
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
10
%% contributors can be found at
11
%%
12
%% https://github.com/matze/mtheme/graphs/contributors
13
%%
14
%% and the original template was based on the HSRM theme by Benjamin Weiss.
15
%%
16
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
17
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
18
%% ---------------------------------------------------------------------------
19
\NeedsTeXFormat{LaTeX2e}
20
\ProvidesPackage{beamercolorthememetropolis}[2017/01/23 Metropolis color theme]
21
\RequirePackage{pgfopts}
22
\pgfkeys{
23
/metropolis/color/block/.cd,
24
.is choice,
25
transparent/.code=\metropolis@block@transparent,
26
fill/.code=\metropolis@block@fill,
27
}
28
\pgfkeys{
29
/metropolis/color/background/.cd,
30
.is choice,
31
dark/.code=\metropolis@colors@dark,
32
light/.code=\metropolis@colors@light,
33
}
34
\newcommand{\metropolis@color@setdefaults}{
35
\pgfkeys{/metropolis/color/.cd,
36
background=light,
37
block=transparent,
38
}
39
}
40
\definecolor{mDarkBrown}{HTML}{604c38}
41
\definecolor{mDarkTeal}{HTML}{2C3F6B}
42
\definecolor{mLightBrown}{HTML}{7473BD}
43
\definecolor{mLightGreen}{HTML}{14B03D}
44
\newcommand{\metropolis@colors@dark}{
45
\setbeamercolor{normal text}{%
46
fg=black!2,
47
bg=mDarkTeal
48
}
49
\usebeamercolor[fg]{normal text}
50
}
51
\newcommand{\metropolis@colors@light}{
52
\setbeamercolor{normal text}{%
53
fg=mDarkTeal,
54
bg=black!2
55
}
56
}
57
\setbeamercolor{alerted text}{%
58
fg=mLightBrown
59
}
60
\setbeamercolor{example text}{%
61
fg=mLightGreen
62
}
63
\setbeamercolor{titlelike}{use=normal text, parent=normal text}
64
\setbeamercolor{author}{use=normal text, parent=normal text}
65
\setbeamercolor{date}{use=normal text, parent=normal text}
66
\setbeamercolor{institute}{use=normal text, parent=normal text}
67
\setbeamercolor{structure}{use=normal text, fg=normal text.fg}
68
\setbeamercolor{palette primary}{%
69
use=normal text,
70
fg=normal text.bg,
71
bg=normal text.fg
72
}
73
\setbeamercolor{frametitle}{%
74
use=palette primary,
75
parent=palette primary
76
}
77
\setbeamercolor{progress bar}{%
78
use=alerted text,
79
fg=alerted text.fg,
80
bg=alerted text.fg!50!black!30
81
}
82
\setbeamercolor{title separator}{
83
use=progress bar,
84
parent=progress bar
85
}
86
\setbeamercolor{progress bar in head/foot}{%
87
use=progress bar,
88
parent=progress bar
89
}
90
\setbeamercolor{progress bar in section page}{
91
use=progress bar,
92
parent=progress bar
93
}
94
\newcommand{\metropolis@block@transparent}{
95
\setbeamercolor{block title}{%
96
use=normal text,
97
fg=normal text.fg,
98
bg=
99
}
100
\setbeamercolor{block body}{
101
bg=
102
}
103
}
104
\newcommand{\metropolis@block@fill}{
105
\setbeamercolor{block title}{%
106
use=normal text,
107
fg=normal text.fg,
108
bg=normal text.bg!80!fg
109
}
110
\setbeamercolor{block body}{
111
use={block title, normal text},
112
bg=block title.bg!50!normal text.bg
113
}
114
}
115
\setbeamercolor{block title alerted}{%
116
use={block title, alerted text},
117
bg=block title.bg,
118
fg=alerted text.fg
119
}
120
\setbeamercolor{block title example}{%
121
use={block title, example text},
122
bg=block title.bg,
123
fg=example text.fg
124
}
125
\setbeamercolor{block body alerted}{use=block body, parent=block body}
126
\setbeamercolor{block body example}{use=block body, parent=block body}
127
\setbeamercolor{footnote}{fg=normal text.fg!90}
128
\setbeamercolor{footnote mark}{fg=.}
129
\setbeamercolor{bibliography entry author}{fg=, bg=}
130
\setbeamercolor{bibliography entry title}{fg=, bg=}
131
\setbeamercolor{bibliography entry location}{fg=, bg=}
132
\setbeamercolor{bibliography entry note}{fg=, bg=}
133
\metropolis@color@setdefaults
134
\ProcessPgfPackageOptions{/metropolis/color}
135
\mode<all>
136
\endinput
137
%%
138
%% End of file `beamercolorthememetropolis.sty'.
139
140