-
Notifications
You must be signed in to change notification settings - Fork 34
/
materialDesignExample.tex
185 lines (157 loc) · 5 KB
/
materialDesignExample.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
\documentclass[aspectratio=43]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\title{Material Design theme \\manual}
\date{\today}
\author[Šubert]{Eduard Šubert}
\usetheme{material}
\useDarkTheme
\usePrimaryRed
\useAccentGreen
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\begin{card}
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}
\end{card}
\end{frame}
\begin{frame}{Table of contents}
\begin{card}
\tableofcontents
\end{card}
\end{frame}
\section{Setup}
\begin{frame}{Setup}
\begin{card}
Setup is really easy:
{\color{primary}\textbackslash usetheme\{material\}}
\end{card}
\begin{card}
Further you might want to customize the background with: \\[2mm]
{\color{primary}\textbackslash useLightTheme} or {\color{primary}\textbackslash useDarkTheme} \\[2mm]
and primary and accent colors.
\end{card}
\end{frame}
\begin{frame}{Setup -- colors}
\begin{card}
There are some colors from the Material Design guidelines coded in. You access those by: \\[2mm]
{\color{primary} \textbackslash usePrimary[Color]} and {\color{primary}\textbackslash useAccent[Color]}\\[2mm]
{\tiny {\color{primary}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{primary} \textbackslash usePrimary\{primary color, darker primary color, text color\}}
{\color{primary} \textbackslash useAccent\{primary color, text color\}}\\[2mm]
{\color{primary} darker primary color} is just darker version of {\color{primary} primary color} and {\color{primary} text color} is color of text on {\color{primary} primary} or {\color{primary} accent colors}.
\end{card}
\end{frame}
\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}
\begin{frame}{plain card}
\begin{card}
\end{card}
\begin{card}
{\color{primary} \textbackslash begin\{card\}\\[2mm]}
\null\qquad \textit{[your content here]}\\[2mm]
{\color{primary} \textbackslash end\{card\}}
\end{card}
\end{frame}
\begin{frame}{card with a title}
\begin{card}[Title]
\end{card}
\begin{card}
{\color{primary} \textbackslash begin\{card\}[Title]\\[2mm]}
\null\qquad \textit{[your content here]}\\[2mm]
{\color{primary} \textbackslash end\{card\}}
\end{card}
\end{frame}
\begin{frame}{card with an image}
\centering
\cardImg{img/rudolfinum.jpg}{0.5\textwidth}
\begin{card}
{\color{primary} \textbackslash cardImg\{file name\}\{width\}}
\end{card}
\end{frame}
\begin{frame}{tiny card}
\begin{cardTiny}
\end{cardTiny}
\begin{card}
{\color{primary} \textbackslash begin\{cardTiny\}\\[2mm]}
\null\qquad \textit{[your content here]}\\[2mm]
{\color{primary} \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}
\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}
\begin{card}
\begin{theorem}[Pythagorean]
The sum of the areas of the two squares on the legs equals the area of the square on the hypotenuse.
\end{theorem}
\end{card}
\end{frame}
\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{primary} \textbackslash begin\{frameImg\}["height"]\{file name\}\\[2mm]}
\null\qquad \textit{[your content here]}\\[2mm]
{\color{primary} \textbackslash end\{frameImg\}}
\end{cardTiny}
\end{frameImg}
\begin{frameImg}[height]{img/rudolfinum.jpg}
\vspace*{60mm}
\begin{cardTiny}
Parameter {\color{primary} ["height"]} determines the dimension that is stretched to cover the frame ({\color{primary} ["width"]} is default).
\end{cardTiny}
\end{frameImg}
\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}
\begin{frame}
\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 \url{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}
\end{document}