forked from Helmholtz-AI-Energy/beamer-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
slides.tex
229 lines (185 loc) · 6.14 KB
/
slides.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
%% V0.1
%% 2020/10/09
%% by Markus Götz, Björn Hagemeier, James Kahn
\documentclass[aspectratio=1610]{beamer}
\usepackage{helmholtzai}
% Alternative code rendering
\usepackage{minted}
% References
\usepackage[
backend=biber,
maxbibnames=2,
giveninits=true,
url=true,
isbn=false,
sorting=none,
date=year,
]{biblatex}
\addbibresource{lit.bib}
% Use standard TeX math font.
%
% Copy or link /path/to/beamerfontthemeserif.sty into theme/, e.g.
% cd theme
% ln -s /usr/share/texlive/texmf-dist/tex/latex/beamer/beamerfontthemeserif.sty beamerfontthemeserif.sty
%%\usepackage{lmodern}
%%\usefonttheme[onlymath]{serif}
\title{Title}
\subtitle{Subtitle}
\author{Firstname Lastname}
\date{YYYY-MM-DD}
\institute{Center}
\begin{document}
\maketitle
\begin{frame}
\frametitle{Usage}
\begin{enumerate}
\item Download all files from Github\\~
\item Edit \texttt{slides.tex} with your favorite editor\\~
\item Compile the slides by either:\\~
\begin{enumerate}
\item Typing \texttt{make} or \texttt{latexmk} in the directory of \texttt{slides.tex} or\\~
\item Using a LaTeX IDE like TeXstudio\\~
\end{enumerate}
\item \emph{Note:} make sure to use LuaLaTeX or XeLaTeX (default in \texttt{make}/\texttt{latexmk}) as compiler
\end{enumerate}
\end{frame}
\begin{frame}
\frametitle{Main Slide Title}
\framesubtitle{\textbf{Subtitle} with more \emph{details}}
\begin{itemize}
\item Standard bullet point can be created with the \texttt{itemize} environment
\item They can have multiple sub-point
\begin{itemize}
\item As can be seen here
\begin{itemize}
\item Or here
\end{itemize}
\item The ordering is unimportant
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Equations}
\begin{equation*}
f(x) = \sum_i wx_i^2 + \frac{\beta}{2}
\end{equation*}
\end{frame}
\begin{frame}
\frametitle{Columns and Figures}
\begin{columns}
\begin{column}{0.4\textwidth}
\begin{enumerate}
\item Columns allow you to have side-by-side content\\~
\item Each column itself is its own mini-slide\\~
\item Figures can be imported by path\\~
\item Scaling can be done relative to text width, height or initial size
\end{enumerate}
\end{column}
\begin{column}{0.4\textwidth}
\centering
\includegraphics[width=\textwidth]{logos/hgf_key_technologies.jpg}
\source{Helmholtz Association}
\end{column}
\end{columns}
\end{frame}
\begin{frame}[fragile]
\frametitle{Code using lstlisting}
\emph{Note the [fragile] specifier next to frame and the code indentation.}
\begin{lstlisting}[language=Python]
import numpy as np
def foo(a, b):
"""
asd
"""
return a + b + 1
\end{lstlisting}
\end{frame}
\begin{frame}[fragile]
\frametitle{Code using minted}
\begin{minted}{python}
import numpy as np
def foo(a, b):
"""
asd
"""
return a + b + 1
\end{minted}
\end{frame}
\begin{frame}
\frametitle{Citations}
Use the usual \texttt{cite} commamd \cite{baydin_2018}
\\
Use \texttt{fullcite}
\\
\fullcite{baydin_2018}
\end{frame}
% command for making the color boxes
\newcommand\crule[3][black]{\textcolor{#1}{\rule{#2}{#3}}}
\begin{frame}
\frametitle{Colors}
\framesubtitle{Basic Definitions}
\emph{The beamer template contains definitions for all Helmholtz colors.}\\
\begin{table}
\centering
\small
\begin{tabular}{cl}
\textbf{Color} & \textbf{Name}\\\toprule
\crule[hgfblue]{10pt}{10pt} & hgfblue \\
\crule[hgfdarkblue]{10pt}{10pt} & hgfdarkblue \\
\crule[hgfgreen]{10pt}{10pt} & hgfgreen \\
\crule[hgfgray]{10pt}{10pt} & hgfgray \\
\crule[hgfaerospace]{10pt}{10pt} & hgfaerospace (short: hgfast) \\
\crule[hgfearthandenvironment]{10pt}{10pt} & hgfearthandenvironment (short: hgfee) \\
\crule[hgfenergy]{10pt}{10pt} & hgfenergy \\
\crule[hgfhealth]{10pt}{10pt} & hgfhealth \\
\crule[hgfkeytechnologies]{10pt}{10pt} & hgfkeytechnologies (short: hgfkt, hgfinformation) \\
\crule[hgfmatter]{10pt}{10pt} & hgfmatter \\\bottomrule
\end{tabular}
\end{table}
\end{frame}
\begin{frame}
\frametitle{Colors}
\framesubtitle{Shades}
\emph{For each color there exist 10 lighter shades, exemplary for hgfblue}\\
\begin{table}
\centering
\small
\begin{tabular}{cl}
\textbf{Color} & \textbf{Name}\\\toprule
\crule[hgfblue10]{10pt}{10pt} & hgfblue10 \\
\crule[hgfblue20]{10pt}{10pt} & hgfblue20 \\
\crule[hgfblue30]{10pt}{10pt} & hgfblue30 \\
\crule[hgfblue40]{10pt}{10pt} & hgfblue40 \\
\crule[hgfblue50]{10pt}{10pt} & hgfblue50 \\
\crule[hgfblue60]{10pt}{10pt} & hgfblue60 \\
\crule[hgfblue70]{10pt}{10pt} & hgfblue70 \\
\crule[hgfblue80]{10pt}{10pt} & hgfblue80 \\
\crule[hgfblue90]{10pt}{10pt} & hgfblue90 \\
\crule[hgfblue]{10pt}{10pt} & hgfblue \\\bottomrule
\end{tabular}
\end{table}
\end{frame}
\begin{frame}
\frametitle{Blocks}
\begin{block}{block}
This is how a regular block looks like
\end{block}
\vspace{2em}
\begin{exampleblock}{exampleblock}
An example block is stilled differently.
\end{exampleblock}
\vspace{2em}
\begin{alertblock}{alertblock}
Alert blocks can draw attention to critical information
\end{alertblock}
\end{frame}
\begin{frame}
\frametitle{Special Formatting}
\begin{itemize}
\item There are raw links with the full URL \url{https://www.google.com}
\item You can add also links with names \href{https://www.google.com}{Google}\\~
\item You might also want to write in \hermann{Hermann Bold} - Helmholtz's title font\footnote{With footnotes like this.}
\end{itemize}
\end{frame}
\section{Sections look like this}
\end{document}