-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMyDarkMetropolisTemplate.tex
More file actions
217 lines (170 loc) · 4.9 KB
/
MyDarkMetropolisTemplate.tex
File metadata and controls
217 lines (170 loc) · 4.9 KB
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
%% My Dark Metropolis Theme %%
%% Daniel Kostuj, 2018 %%
%% Refer to the LICENSE file %%
%% for copyright informations %%
%\documentclass[11pt]{beamer}
\documentclass[11pt, aspectratio=169]{beamer}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{unicode-math}
\usepackage{pgfplots}
\usepgfplotslibrary{dateplot}
%% Listing Settings %%
\lstset
{basicstyle=\footnotesize\ttfamily\color{white},
rulecolor=\color{CodeFG},
frame=single,
backgroundcolor=\color{CodeBG},
language=C++}
%% Document Metadata %%
\title{My Dark Metropolis Template \& Examples }
\author{The Author}
\date{The Date}
\institute[INST]{The Institute}
%% Metropolis Theme %%
%\usetheme[progressbar=frametitle]{metropolis}
\usetheme{metropolis}
%% Custom Fonts %%
%\setsansfont{San Francisco Text}
\setmonofont{CMU Typewriter Text}
%% Custom Colors %%
\definecolor{VividCerulean}{HTML}{009de0}
\definecolor{MaastrichtBlue}{HTML}{011936}
\definecolor{BlueSapphire}{HTML}{19647e}
\definecolor{DarkSlate}{HTML}{204B57}
\definecolor{MidnightBlue}{HTML}{1b3b6f}
\definecolor{SpaceCadet}{HTML}{21295c}
\definecolor{DutchWhite}{HTML}{a4c2a5}
\definecolor{Box1}{HTML}{432e36}
\definecolor{Box2}{HTML}{260c1a}
\definecolor{Alert1}{HTML}{e55829}
\definecolor{Alert2}{HTML}{bc4622 }
\definecolor{Example1}{HTML}{2f9c95}
\definecolor{Example2}{HTML}{21706b}
\definecolor{CodeBG}{HTML}{131515}
\definecolor{CodeFG}{HTML}{2b2c28}
%% Beamer Colors %%
\setbeamercolor{frametitle}{bg=black, fg=white}
\setbeamercolor{frame}{bg=black, fg=white}
\setbeamercolor{progress bar}{fg=VividCerulean, bg=SpaceCadet}
\setbeamercolor{background canvas}{bg=black, fg=white}
\setbeamercolor{palette primary}{fg=white, bg=SpaceCadet}
\setbeamercolor{normal text}{fg=white, bg=SpaceCadet}
\setbeamercolor{block title}{fg=white, bg=Alert1}
\setbeamercolor{block body}{fg=white, bg=Alert2}
\setbeamercolor{block title alerted}{fg=white, bg=Alert1}
\setbeamercolor{block body alerted}{fg=white, bg=Alert2}
\setbeamercolor{block title example}{fg=white, bg=Example1}
\setbeamercolor{block body example}{fg=white, bg=Example2}
\setbeamercolor{alerted text}{fg=VividCerulean}
\setbeamercolor{itemize item}{fg=white}
%% Settings for Alert Blocks %%
\metroset{block=fill}
%% Settings for Custom Footline %%
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,center]{frametitle}%
\usebeamerfont{author in head/foot}\insertshortauthor \ (\insertshortinstitute)
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.47\paperwidth,ht=2.25ex,dp=1ex,center]{frametitle}%
\usebeamerfont{title in head/foot}\insertshorttitle\hspace*{3em}
\end{beamercolorbox}}%
\begin{beamercolorbox}[wd=.23\paperwidth,ht=2.25ex,dp=1ex,center]{frametitle}%
\insertframenumber{} \hspace*{1ex}
\end{beamercolorbox}%
\vskip0pt%
}
\begin{document}
\maketitle
\begin{frame}{Hello :)}
Hello there!
\begin{align*}
2x + 4 &= 2 \\
\Rightarrow x &= -1
\end{align*}
This is \alert{very} cool.
\end{frame}
\begin{frame}{Definitions}
\begin{block}{MEAN Stack}
A stack that is mean.
\end{block}
\vfill
\begin{block}{MERN Stack}
A stack that is mern.
\end{block}
\end{frame}
\begin{frame}{Proof}
\begin{alertblock}{Theorem 1.1}
The function $f : \mathbb{R} \rightarrow \mathbb{R} : f(x) = \frac{1}{x}$ converges to zero.
\end{alertblock}
\begin{exampleblock}{Proof 1.1}
$\frac{1}{x} \geq \frac{1}{x+1}$
Figure the rest out for yourself.
\end{exampleblock}
\end{frame}
\begin{frame}[fragile]{Some Code}
\begin{lstlisting}
#include <iostream>
int main() {
int i = 3;
std::cout << i << std::endl;
return 0;
}
\end{lstlisting}
\end{frame}
\begin{frame}{Line plots}
Line plots look pretty \alert{swanky}.
\begin{figure}
\begin{tikzpicture}
\begin{axis}[
mlineplot,
width=0.9\textwidth,
height=6cm,
]
\addplot {sin(deg(x))};
\addplot+[samples=100] {sin(deg(2*x))};
\end{axis}
\end{tikzpicture}
\end{figure}
\end{frame}
\begin{frame}{Bar charts}
Bar charts, too.
\begin{figure}
\begin{tikzpicture}
\begin{axis}[
mbarplot,
xlabel={Foo},
ylabel={Bar},
width=0.9\textwidth,
height=6cm,
]
\addplot plot coordinates {(1, 20) (2, 25) (3, 22.4) (4, 12.4)};
\addplot plot coordinates {(1, 18) (2, 24) (3, 23.5) (4, 13.2)};
\addplot plot coordinates {(1, 10) (2, 19) (3, 25) (4, 15.2)};
\legend{lorem, ipsum, dolor}
\end{axis}
\end{tikzpicture}
\end{figure}
\end{frame}
\begin{frame}{Quotes}
\begin{quote}
C++ allows you to shoot yourself in the foot.
\end{quote}
Bernd Störstrup
\end{frame}
\begin{frame}{Animation}
\begin{itemize}[<+- | alert@+>]
\item \alert<4>{This is\only<4>{ really} important}
\item Now this
\item And now this
\end{itemize}
\end{frame}
{
\setbeamertemplate{footline}{}
\begin{frame}[standout]
Bye!
\end{frame}
}
\end{document}