-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
352 lines (295 loc) · 10.3 KB
/
main.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
% Customize font size as you wish
% Available font sizes are 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, 20pt.
%Another aspectration is 169
\documentclass[11pt, aspectratio=43]{beamer}
% ********* DO NOT EDIT ********* %
\usepackage[utf8]{inputenc}
\usepackage{graphicx} % for including graphics
\usepackage{listings} % for including codes
\usepackage{subcaption} % for subfigure alignment
\usepackage{multicol}
\usepackage{lmodern}
\usepackage{marvosym}
\usepackage{csquotes}
\usepackage{lipsum}
% ******************************* %
% ***** Bibliography Settings ****** %
% ------------- NOTE --------------- %
% Editing is not recommended %
% unless you know what you are doing %
% ---------------------------------- %
\usepackage[english]{babel}
\usepackage[
backend=biber,
citestyle=authortitle,
style=numeric,
natbib=true,
maxcitenames=2
]{biblatex}
% For tidiness, keeping fields of author, title, and year is recommended %
% Delete other fields of entries in ref.bib (Should have a more elegant way) %
\addbibresource{ref.bib}
% Theme & Font Preference
\usetheme{Berkeley}
\usecolortheme{seahorse}
%\usefonttheme[]{serif}
% Defined Commands %
% This resolves the bug from MacTeX 2018, works for me
% If you find removing doesn't keep you from typesetting with success
% Feel free to remove it
\makeatletter
\let\@@magyar@captionfix\relax
\makeatother
% *************************** %
% Information to be included in the title page %
\title{ A Great Title }
\author{
A Famous Author \inst{1, 2, mystery}
\and Another Famous Author \inst{2} }
\institute{
\inst{1}
A Great Department \\
Beijing Normal University
\and
\inst{2}
Another Great Department \\
Beijing Normal University
\and
\inst{mystery} % the name for this entry can be anything
Somewhere unknown in the universe
}
\date{\today}
% Design
\logo{
\includegraphics[width=1.45cm,keepaspectratio]{design/BNU_logo.png}
% \includegraphics[height=1cm]{path/to/file/moreicons.png}
}
\begin{document}
\frame{\titlepage}
% Table of Contents
\AtBeginSection[] {
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents[currentsection] % parameter [currentsection] highlights the section about to start in the TOC, remove it if you dont like it
\end{frame}
}
\section{Regular Frames}
\begin{frame}
\frametitle{A Simple Frame}
This is a regular frame, where you can see the items are shown together at once.
\begin{itemize}
\item item1
\begin{itemize}
\item nested item1.1
\begin{itemize}
\item I don't wanna stop
\end{itemize}
\item nested item1.2
\begin{itemize}
\item continue nesting ...
\end{itemize}
\end{itemize}
\item I am here together with item1
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Animated Contents \& Items}
The items in this frame will occur one by one. \pause
\\ Now you'll see. \pause
\begin{itemize}
\item item1 goes first. \pause
\item this is item2. \pause
\item here comes item3.
\end{itemize}
\pause This is the end of the frame.
\end{frame}
\begin{frame}
\frametitle{Highlighting}
Example: \textbf{Inline Highlighting}
% inline highlighting, use \alter{} command %
My pitch is the most \alert{awesome} ever.
% {block} is the environment and {Remark} is the title for the block
\begin{block}{Remark}
\{block\} environment. This part of text is in a colored highlighting box.
\end{block}
%
\begin{alertblock}{Important}
\{alertblock\} environment means you ``alert'' the block, it turns out to be a color contrast the one used by the presentation.
\end{alertblock}
\begin{examples}
\{examples\} environment gives a color less contrasting to the one in presentation
\end{examples}
\end{frame}
\begin{frame}[fragile] % when including codes, you have to use the [fragile] option parameter
\frametitle{Insert Code}
Here is how to insert codes in slides.
\begin{lstlisting}[language=Python]
import sys
import numpy as np
print('Hello World')
\end{lstlisting}
More details in \textbf{listings} documentations.
\end{frame}
\begin{frame}
\frametitle{Insert Image}
Single image insertion demo:
\begin{figure}
\centering
\includegraphics[width=0.8\textwidth]{imgs/golden-trio.jpg}
\caption{FC Barcelona Golden Trio - Xavi, Iniesta, and Messi.}
\label{fcb_golden_trio}
\end{figure}
\end{frame}
% @origin https://tex.stackexchange.com/questions/337630/subfigure-alignment-in-beamer
% @author @samcarter_is_at_topanswers.xyz
\begin{frame}{Sub-figure Alignment With Text Aside}
\begin{columns}[T, onlytextwidth]
\begin{column}{0.25\textwidth}
Some content here.\\
Some content here.\\
Some content here.
\end{column}
\begin{column}{0.65\textwidth}
\vskip-\baselineskip
\begin{figure}
\centering
\begin{subfigure}[t]{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{Two line long caption}
\label{fig:sub1}
\end{subfigure}\hskip 1em%
\begin{subfigure}[t]{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{One line caption}
\label{fig:sub2}
\end{subfigure}
\begin{subfigure}[t]{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{One line caption}
\label{fig:sub1}
\end{subfigure}\hskip 1em%
\begin{subfigure}[t]{0.45\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{Two line long caption}
\label{fig:sub2}
\end{subfigure}
\end{figure}
\end{column}
\end{columns}
\end{frame}
\begin{frame}
\frametitle{Clean Subfigures}
\begin{figure}
\centering
\begin{subfigure}[b]{.45\linewidth}
\includegraphics[width=0.75\linewidth]{example-image-a}
\caption{A mouse}\label{fig:mouse}
\end{subfigure}
\begin{subfigure}[b]{.45\linewidth}
\includegraphics[width=0.75\linewidth]{example-image-b}
\caption{A gull}\label{fig:gull}
\end{subfigure}
\begin{subfigure}[b]{.45\linewidth}
\includegraphics[width=0.75\linewidth]{example-image-c}
\caption{A tiger}\label{fig:tiger}
\end{subfigure}
\caption{Picture of animals}
\label{fig:animals}
\end{figure}
\end{frame}
\begin{frame}
\frametitle{Clean Subfigures: Custom Subfigure Numbering}
\begin{figure}
\centering
\begin{subfigure}[b]{.45\linewidth}
\includegraphics[width=0.75\linewidth]{example-image-a}
\setcounter{subfigure}{2} % edit the value in the second bracket
\caption{A mouse}\label{fig:mouse2}
\end{subfigure}
% You will need a blank line up there %
\begin{subfigure}[b]{.45\linewidth}
\includegraphics[width=0.75\linewidth]{example-image-b}
\setcounter{subfigure}{0}%
\caption{A gull}\label{fig:gull2}
\end{subfigure}
\begin{subfigure}[b]{.45\linewidth}
\includegraphics[width=0.75\linewidth]{example-image-c}
\caption{A tiger}\label{fig:tiger2}
\end{subfigure}
\caption{Picture of animals}
\label{fig:animals}
\end{figure}
\end{frame}
\begin{frame}
\frametitle{Multiple Image Insertion}
2 in a row: (I think there will be a more elegant way...)
\begin{columns}[t]
\column{.5\textwidth}
\centering
\begin{figure}
\includegraphics[width=\linewidth, height=.2\textheight, keepaspectratio]{imgs/golden-trio.jpg}
\caption{Subfig 1}
\end{figure}
\begin{figure}
\includegraphics[width=\linewidth, height=.2\textheight, keepaspectratio]{imgs/golden-trio.jpg}
\caption{Subfig 3}
\end{figure}
\column{.5\textwidth}
\centering
\begin{figure}
\includegraphics[width=\linewidth, height=.2\textheight, keepaspectratio]{imgs/golden-trio.jpg}
\caption{Subfig 2}
\end{figure}
\begin{figure}
\includegraphics[width=\linewidth, height=.2\textheight, keepaspectratio]{imgs/golden-trio.jpg}
\caption{Subfig 4}
\end{figure}
\end{columns}
\end{frame}
\section{Include Formulas}
\begin{frame}
\frametitle{Inline Formula}
Use \alert{\$\dots\$} command to compose inline formulas.
\begin{block}{Inline}
Mass Energy Equivalence: $E=mc^2$ \\
The area of a square is defined as $A=a^2$, where $a$ is the square's side.
\end{block}
\end{frame}
\begin{frame}
\frametitle{Numbered \& Unnumbered Formula Block}
Numbered mass energy equivalence \& area of a square:
\begin{equation}
E = mc^2
\end{equation}
\begin{equation}
A = a^2
\end{equation}
Unnumbered version:
\[E=mc^2\]
\[A=a^2\]
\end{frame}
\section{Use Citations \& References}
\begin{frame}
\frametitle{Citation}
Yann LeCun's famous article \footfullcite{lecun2015deep}
Aditya and Jure's famous article \footfullcite{grover2016node2vec}
\end{frame}
\begin{frame}
\frametitle{Bibliography}
\printbibliography
\end{frame}
\section{Ending}
\begin{frame}
\frametitle{This is the end of the tutorial}
You can find out more extended and advanced usages via Google, Overleaf, beameruserguide.pdf, StackExchange, and etc.
For any issue, you are more than welcome to
\begin{itemize}
\item Commit it at \href{https://github.com/htlee6/awesomeBNUbEAMer}{\underline{https://github.com/htlee6/awesomeBNUbEAMer}}
\item Or send an email to \href{mailto:[email protected]}{\underline{[email protected]}} for contact
\end{itemize}
\end{frame}
\end{document}