-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.tex
166 lines (140 loc) · 3.7 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
\documentclass[lualatex]{beamer}
% ~~~~~~~~~~~~~~~~~~~~~
% ~ Required packages ~
% ~~~~~~~~~~~~~~~~~~~~~
% Theme
\usepackage{src/beamerthemematerial}
% Roboto font
\usepackage{fontspec}
\usepackage[sfdefault]{roboto}
% Language specific typesetting rules
\usepackage[english]{babel}
% Required for source/credits below pictures
\usepackage[absolute,overlay]{textpos}
% For colorful layouts
\usepackage{tikz}
\usepackage{xcolor, etoolbox, xstring}
\usepackage[many]{tcolorbox}
% ~~~~~~~~~~~~~~~~~~~~~~~
% ~ Additional packages ~
% ~~~~~~~~~~~~~~~~~~~~~~~
\usepackage{csquotes}
\usepackage{listings}
% ~~~~~~~~~~~~~~~~~~~~~
% ~ Required packages ~
% ~~~~~~~~~~~~~~~~~~~~~
\usepackage{hyperref}
% ~~~~~~~~~~~~~~~~~~~~~~~
% ~ Theme configuration ~
% ~~~~~~~~~~~~~~~~~~~~~~~
\beamertemplatenavigationsymbolsempty
\title{Material Design}
\date{\today}
\author{Max Mustermann}
\begin{document}
% ~~~~~~~~~~~~~~~~~~~~~~~
% ~ Presentation slides ~
% ~~~~~~~~~~~~~~~~~~~~~~~
\begin{frame}
\titlepage
\end{frame}
{
% Link colors are rendered with `AccentColor'
% Change the AccentColor temporarily to match the background
\colorlet{accent-color}{secondary-color-text}
\begin{frame}{Overviews}
\tableofcontents
\end{frame}
}
\section{Setup}
\topicFramePrimary{Setup}
\begin{frame}
\frametitle{Setup}
\begin{itemize}
\item Change into your working directory
\item Clone the repo into the \textbf{theme} folder
\item Install requirements
\item Customize the theme via the \texttt{config.json}
\item Build it with \texttt{rake default}
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\sidebysideright{
Configure colors in \texttt{src/config.lua}. Hex color codes are used.
}{
{\Large Mandatory colors}
\begin{itemize}
\item[\textcolor{primary-color-text}{\textbullet}] \color{primary-color-text}{Primary}
\item[\textcolor{primary-color-text}{\textbullet}] \color{primary-color-text}{Secondary}
\item[\textcolor{primary-color-text}{\textbullet}] \color{primary-color-text}{Accent}
\item[\textcolor{primary-color-text}{\textbullet}] \color{primary-color-text}{Background}
\end{itemize}
}
{halign=center, valign=center}
{halign=center, valign=center}
\end{frame}
\section{Features}
\topicFramePrimary{Features}
\begin{frame}
\frametitle{Key Features}
\framesubtitle{Overview}
\begin{itemize}
\item Auto-generate contrast colors if not specified in the config
\begin{itemize}
\item Recompile the presentation with \texttt{LuaTeX}
\end{itemize}
\item Follows material design guidelines
\item Adjustable Side-By-Side layouts
\item Isolated build-process -- no local dependencies except docker
\end{itemize}
\end{frame}
\begin{frame}
\sidebysideleft[0.7]{
Adjust ratio of the layout with the optional parameter.
Defaults to half of the page.
}{
Right Side
}
{halign=center, valign=center}
{halign=center, valign=center}
\end{frame}
\begin{frame}
\sidebysideright[0.3]{
Left Side
}{
Right Side\\
A very important statement
\begin{equation*}
a^2 + b^2 = c^2
\end{equation*}
}
{halign=center, valign=center}
{halign=center, valign=center}
\end{frame}
\section{Usage}
\topicFramePrimary[Explaining how things work]{Usage}
\topicFrameSecondary{Usage}
\subsection{Slides with code}
\begin{frame}[fragile=singleslide]{Code}
\begin{lstlisting}
def someFunction(x):
return x*2
someFunction(2)
\end{lstlisting}
\end{frame}
\subsection{Images with a source}
\begin{frame}
\frametitle{Including Images}
\begin{figure}
\centering
\includegraphics[width=0.8\textwidth]{images/tensorflow.pdf}
\source{Google.com}
\caption{Tensorflow logo}
\end{figure}
\end{frame}
\section{The End}
\begin{frame}
\frametitle{The End}
\centering{Thanks for all the fish!}
\end{frame}
\end{document}