-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.tex
413 lines (269 loc) · 7.91 KB
/
example.tex
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
\documentclass[aspectratio=1610,dvipsnames, noamsthm]{beamer}
\input{metadatas}
\newcommand{\rootdir}{.}
\input{header}
\addbibresource{Prez.bib}
% \setbeameroption{show notes on second screen=right}
\usetheme{material}
\begin{document}
\usePrimaryPink
\useAccentLime
{
\setbeamertemplate{footline}{}
\begin{frame}
\titlepage
\end{frame}
}
\usePrimaryAmber
\useAccentPink
\begin{frame}{Material theme design}
\begin{card}
{\color{accent}Material Design theme} is a theme for Beamer inspired by Google's Material Design. \\[5mm]
This manual only covers the theme itself, for more information on Material Design go to:
\\\url{https://material.io}
\\
{\color{accent}Forked from:\\
\url{https://github.com/edasubert/beamerMaterialDesign}}
\end{card}
\end{frame}
\usePrimaryBlueGrey
\useAccentAmber
\begin{frame}{Table of contents}
\begin{card}
\tableofcontents
\end{card}
\end{frame}
\usePrimaryTeal
\useAccentBlueGrey
\section{Setup}
\begin{frame}{Setup}
\begin{card}
Setup is really easy:
{\color{accent}\textbackslash usetheme\{material\}}
\end{card}
\begin{card}
Further you might want to customize the background with: \\[2mm]
{\color{accent}\textbackslash useLightTheme} or {\color{accent}\textbackslash useDarkTheme} \\[2mm]
and primary and accent colors.
\end{card}
\end{frame}
\usePrimaryCyan
\useAccentTeal
\begin{frame}{Setup -- colors}
\begin{card}
There are some colors from the Material Design guidelines coded in. You access those by: \\[2mm]
{\color{accent} \textbackslash usePrimary[Color]} and {\color{accent}\textbackslash useAccent[Color]}\\[2mm]
{\tiny {\color{accent}Color} $\in \{$ Red, Pink, Purple, Deep Purple, Indigo, Blue, Light Blue, Cyan, Teal, Green, Light Green, Lime, Yellow, Amber, Orange, Deep Orange, Brown, Grey, Blue Grey $\}$} \\[2mm]
or you can pick your own:\\[2mm]
{\color{accent} \textbackslash usePrimary\{primary color, darker primary color, text color\}}
{\color{accent} \textbackslash useAccent\{primary color, text color\}}\\[2mm]
{\color{accent} darker primary color} is just darker version of {\color{accent} primary color} and {\color{accent} text color} is color of text on {\color{accent} primary} or {\color{accent} accent colors}.
\end{card}
\end{frame}
\usePrimaryLightGreen
\useAccentCyan
\section{Card environment}
\begin{frame}{Card}
\begin{card}
All content should only appear in cards. There are several variants:
\begin{itemize}
\item plain card
\item card with a title
\item card with an image
\item tiny card
\end{itemize}
\end{card}
\end{frame}
\usePrimaryRed
\useAccentLightGreen
\begin{frame}{plain card}
\begin{card}
\end{card}
\begin{card}
{\color{accent} \textbackslash begin\{card\}\\[2mm]}
\null\qquad \textit{[your content here]}\\[2mm]
{\color{accent} \textbackslash end\{card\}}
\end{card}
\end{frame}
\usePrimaryPurple
\useAccentRed
\begin{frame}{card with a title}
\begin{card}[Title]
\end{card}
\begin{card}
{\color{accent} \textbackslash begin\{card\}[Title]\\[2mm]}
\null\qquad \textit{[your content here]}\\[2mm]
{\color{accent} \textbackslash end\{card\}}
\end{card}
\end{frame}
\usePrimaryOrange
\useAccentPurple
\begin{frame}{card with an image}
\centering
\cardImg{img/rudolfinum.jpg}{0.35\textwidth}
\begin{card}
{\color{accent} \textbackslash cardImg\{file name\}\{width\}}
\end{card}
\end{frame}
\usePrimaryLightBlue
\useAccentOrange
\begin{frame}{tiny card}
\begin{cardTiny}
\end{cardTiny}
\begin{card}
{\color{accent} \textbackslash begin\{cardTiny\}\\[2mm]}
\null\qquad \textit{[your content here]}\\[2mm]
{\color{accent} \textbackslash end\{cardTiny\}}
\end{card}
\begin{card}
Tiny card is useful for labels where too much whitespace gets in the way.
\end{card}
\end{frame}
\usePrimaryLime
\useAccentLightBlue
\begin{frame}{Cards can be filled with anything you want}
\begin{card}
\centering$V(x) = \left\{ y \in \mathbb{R}^n \,|\, \forall z \in P, z\neq x:\, \|y-x\|\leq\|y-z\| \right\}$
\end{card}
\begin{card}
\centering
\begin{tabular}{lcr}
left & center & right \\
\hline
1 & 2 & 3 \\
\end{tabular}
\end{card}
\end{frame}
\usePrimaryGreen
\useAccentLime
\section{Image background}
\begin{frameImg}{img/rudolfinum.jpg}
\vspace*{60mm}
\begin{cardTiny}
Lastly it is possible to set image as a background for a frame:\\[2mm]
{\color{accent} \textbackslash begin\{frameImg\}["height"]\{file name\}\\[2mm]}
\null\qquad \textit{[your content here]}\\[2mm]
{\color{accent} \textbackslash end\{frameImg\}}
\end{cardTiny}
\end{frameImg}
\usePrimaryYellow
\useAccentGreen
\begin{frameImg}[height]{img/rudolfinum.jpg}
\vspace*{60mm}
\begin{cardTiny}
Parameter {\color{accent} ["height"]} determines the dimension that is stretched to cover the frame ({\color{accent} ["width"]} is default).
\end{cardTiny}
\end{frameImg}
\usePrimaryDeepPurple
\useAccentYellow
\begin{frame}
\begin{multicols}{2}
[
\begin{cardTiny}
Two images side by side with columns.
\end{cardTiny}
]
\centering
\cardImg{img/rudolfinum.jpg}{0.48\textwidth}
\cardImg{img/rudolfinum.jpg}{0.48\textwidth}
\end{multicols}
\end{frame}
\usePrimaryGrey
\useAccentDeepPurple
\begin{frame}{Test}
\begin{card}
That is all for now. Despite having successfully presented several project with this theme, it is still work in progress. If this manual is not clear enough, you can also review it's source, that may bring more clarity.
\end{card}
\begin{card}
Feel free to submit any issues you find on github: \\
{\footnotesize \textst{https://github.com/edasubert/beamerMaterialDesign}}
\end{card}
\begin{card}
This theme is released under MIT license. Feel free to modify or improve or whatever.
\end{card}
\end{frame}
\usePrimaryDeepOrange
\useAccentGrey
\section{Code environment with line number}
\begin{frame}[fragile]{\secname}
\begin{codeEnv}[escapeinside=||]{Code environment with line number}{latex}
\begin{codeEnv}{Code environment with line number}{latex}
my code here
\end{||codeEnv}
\end{codeEnv}
\end{frame}
\usePrimaryBlue
\useAccentDeepOrange
\section{Code environment without line number}
\begin{frame}[fragile]{\secname}
\begin{codeNL}[escapeinside=||]{Code environment without line number}{latex}
\begin{codeNL}{Code environment without line number}{latex}
my code here
\end{||codeNL}
\end{codeNL}
\end{frame}
\usePrimaryBrown
\useAccentBlue
\section{Two cards with columns}
\begin{frame}[fragile]{\secname}
\begin{columns}
\begin{column}{0.465\linewidth}
\begin{card}[Card1]
My card 1
\end{card}
\end{column}
\begin{column}{0.465\linewidth}
\begin{card}[Card2]
My card 2
\end{card}
\end{column}
\end{columns}
\begin{codeEnv}{Two columns}{latex}
\begin{columns}
\begin{column}{0.5\linewidth}
\begin{card}[Card1]
My card 1
\end{card}
\end{column}
\begin{column}{0.5\linewidth}
\begin{card}[Card2]
My card 2
\end{card}
\end{column}
\end{columns}
\end{codeEnv}
\end{frame}
\usePrimaryIndigo
\useAccentBrown
\section{Card and code side by side}
\begin{frame}[fragile]{\secname}
\begin{columns}
\begin{column}{0.465\linewidth}
\begin{card}[Card1]
My card 1
\end{card}
\end{column}
\begin{column}{0.465\linewidth}
\begin{codeEnv}{Two columns}{latex}
my code here
\end{codeEnv}
\end{column}
\end{columns}
\begin{codeEnv}[escapeinside=||]{Two columns}{latex}
\begin{columns}
\begin{column}{0.5\linewidth}
\begin{card}[Card1]
My card 1
\end{card}
\end{column}
\begin{column}{0.5\linewidth}
\begin{codeEnv}{Two columns}{latex}
my code here
\end{||codeEnv}
\end{column}
\end{columns}
\end{codeEnv}
\end{frame}
\usePrimaryLime
\useAccentIndigo
\end{document}