-
Notifications
You must be signed in to change notification settings - Fork 9
/
document.tex
268 lines (229 loc) · 8.46 KB
/
document.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
\documentclass[aspectratio=169]{libs/XJTLU_format}
\usepackage[orientation=landscape,size=custom,width=16,height=9,scale=0.5,debug]{beamerposter}
\input{libs/preamble.tex}
% Inserting the references file
\bibliography{references.bib}
% Title
\title[XJTLU Beamer Template]{\huge\textbf{XJTLU Beamer Template}}
% Subtitle
\subtitle{Creating Presentations}
% Author of the presentation
\author{Author}
% Institute's Name
\institute[XJTLU]{
% email for contact
\normalsize{\email{author@xjtlu.edu.cn}}
\newline
% Department Name
\department{School of Advanced Technology}
\newline
% University name
\university{Xi’an Jiaotong-Liverpool University}
}
% date of the presentation
\date{\today}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Start Document of the Presentation %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
% insert the code style
\input{libs/code}
%% ---------------------------------------------------------------------------
% First frame (with tile, subtitle, ...)
\begin{frame}{}
\maketitle
\end{frame}
%% ---------------------------------------------------------------------------
% Second frame
\begin{frame}{Table of Contents}
\begin{multicols}{2}
\tableofcontents
\end{multicols}
\end{frame}
%% ---------------------------------------------------------------------------
% This presentation is separated by sections and subsections
\section{Introduction}
\begin{frame}
\begin{itemize}[<+-| alert@+>] % 当然,除了alert,手动在里面插 \pause 也行
\item This is a slide template created by latex for XJTLUers.
\item Overleaf \\ \url{https://www.overleaf.com/latex/templates/xjtlu-beamer-template/sfrvnnpcsmgh}
\item GitHub \\ \url{https://github.com/yaoshanliang/XJTLU-Beamer-Template}
\end{itemize}
\note {Write your notes.\\}
\begin{note}
{Write your notes here}
\end{note}
\end{frame}
\section{Literature Review}
\subsection{Usage}
\begin{frame}{Usage}
\begin{itemize}
\item Beamer is a powerful and flexible \LaTeX{} class to create great looking presentations. \url{https://www.overleaf.com/learn/latex/Beamer}
\item Modify from Template Beamer UFC \cite{origin}
\end{itemize}
\end{frame}
\subsection{Features}
\begin{frame}{Features}
The visual design follows \href{https://www.xjtlu.edu.cn/en/about/professional-services/centre-for-knowledge-and-information/university-marketing-and-communications/visual-identity-assets}{\emph{VISUAL IDENTITY ASSETS}} from XJTLU.
\begin{enumerate}
\item {XJTLU \example{NAVY} (RGB: 1, 54, 68)}
\item {XJTLU \example{PURPLE} (RGB: 206, 87, 193)}
\end{enumerate}
\end{frame}
\section{Methodology}
\subsection{Blocks}
\begin{frame}{Blocks}
% Blocks styles
\begin{block}{Block I}
Text
\end{block}
\begin{alertblock}{Block II}
Text
\end{alertblock}
\begin{exampleblock}{Block III}
Text
\end{exampleblock}
\successbox{Success box}
\alertbox{Alert box}
\simplebox{Simple box}
\end{frame}
%% ---------------------------------------------------------------------------
\subsection{Alorgithms}
\begin{frame}{Algorithms (pseudocode)}
\begin{algorithm}[H]
\SetAlgoLined
\LinesNumbered
\SetKwInOut{Input}{input}
\SetKwInOut{Output}{output}
\Input{x: float, y: float}
\Output{r: float}
\While{True}{
r = x + y\;
\eIf{r >= 30}{
``O valor de $r$ é maior ou iqual a 10.''\;
break\;
}{
``O valor de $r$ = '', r\;
}
}
\caption{Algorithm Example}
\end{algorithm}
\end{frame}
\begin{frame}{Algorithms}
\lstset{language=Python}
\lstinputlisting[language=Python]{code/main.py}
\end{frame}
\subsection{Equations}
\begin{frame}{Equation}
\begin{block}{Equation without numbers}
\begin{equation*}
J(\theta) = \mathbb{E}_{\pi_\theta}[G_t] = \sum_{s\in\mathcal{S}} d^\pi (s)V^\pi(s)=\sum_{s\in\mathcal{S}} d^\pi(s)\sum_{a\in\mathcal{A}}\pi_\theta(a|s)Q^\pi(s,a)
\end{equation*}
\end{block}
% \begin{exampleblock}{Multiple equations\footnote{If containing text in equations,use $\backslash$mathrm\{\} or $\backslash$text\{\}}}
%
% \begin{align}
% Q_\mathrm{target}&=r+\gamma Q^\pi(s^\prime, \pi_\theta(s^\prime)+\epsilon)\\
% \epsilon&\sim\mathrm{clip}(\mathcal{N}(0, \sigma), -c, c)\nonumber
% \end{align}
% \end{exampleblock}
\end{frame}
\begin{frame}
\begin{block}{Equation with numbers}
% Taken from Mathmode.tex
\begin{multline}
A=\lim_{n\rightarrow\infty}\Delta x\left(a^{2}+\left(a^{2}+2a\Delta x+\left(\Delta x\right)^{2}\right)\right.\label{eq:reset}\\
+\left(a^{2}+2\cdot2a\Delta x+2^{2}\left(\Delta x\right)^{2}\right)\\
+\left(a^{2}+2\cdot3a\Delta x+3^{2}\left(\Delta x\right)^{2}\right)\\
+\ldots\\
\left.+\left(a^{2}+2\cdot(n-1)a\Delta x+(n-1)^{2}\left(\Delta x\right)^{2}\right)\right)\\
=\frac{1}{3}\left(b^{3}-a^{3}\right)
\end{multline}
\end{block}
\end{frame}
%\begin{frame}[fragile]{\LaTeX{} Commands}
% \begin{exampleblock}{Commands}
% \centering
% \footnotesize
% \begin{tabular}{llll}
% \cmd{chapter} & \cmd{section} & \cmd{subsection} & \cmd{paragraph} \\
% Chapter & Section & Subsection & Paragraph \\\hline
% \cmd{centering} & \cmd{emph} & \cmd{verb} & \cmd{url} \\
% Centre Align & Emphasis & Verbatim & Hyperlink \\\hline
% \cmd{footnote} & \cmd{item} & \cmd{caption} & \cmd{includegraphics} \\
% Foodnote & Item & Caption & FigP\&Pic \\\hline
% \cmd{label} & \cmd{cite} & \cmd{ref} \\
% Label & Citing & Referring\\\hline
% \end{tabular}
% \end{exampleblock}
% \begin{exampleblock}{Environment Command}
% \centering
% \footnotesize
% \begin{tabular}{lll}
% \env{table} & \env{figure} & \env{equation}\\
% Table & Figure & Equation \\\hline
% \env{itemize} & \env{enumerate} & \env{description}\\
% Bullets & Numbering & Description \\\hline
% \end{tabular}
% \end{exampleblock}
%\end{frame}
\subsection{Figures}
\begin{frame}{Figures}
\begin{figure}
\centering
\includegraphics[scale=0.5]{libs/XJTLU_logo.png}
\caption{Logo of XJTLU.}
% \source{Description of XJTLU}
\label{fig:XJTLU_logo}
\end{figure}
\end{frame}
\subsection{Tables}
\begin{frame}{Tables}
\begin{table}[hbt]
\begin{tabular}{l|cc}
1& 2& \\
\hline
3& 4& \\
5& 6&
\end{tabular}
\caption{This is a table}
\end{table}
\end{frame}
%% ---------------------------------------------------------------------------
% This frame show an example to insert multi-columns
\subsection{Multi-columns}
\begin{frame}{Multi-columns}
\begin{columns}{}
\begin{column}{0.5\textwidth}
\justify
É possível colocar mais de uma coluna utilizando os comandos de $\backslash$begin\{column\}\{\} e $\backslash$end\{column\}
\end{column}
\begin{column}{0.5\textwidth}
\justify
Porém, o espaçamento deve ser proporcional entre as colunas para que estas colunas não entrem em coflito. O espaçamento é dado pelo segundo argumento do $\backslash$begin.
\end{column}
\end{columns}
\begin{columns}{}
\begin{column}{0.5\textwidth}
\justify
É possível colocar mais de uma coluna utilizando os comandos de $\backslash$begin\{column\}\{\} e $\backslash$end\{column\}
\end{column}
\begin{column}{0.5\textwidth}
\justify
Porém, o espaçamento deve ser proporcional entre as colunas para que estas colunas não entrem em coflito. O espaçamento é dado pelo segundo argumento do $\backslash$begin.
\end{column}
\end{columns}
\end{frame}
%% ---------------------------------------------------------------------------
% Reference frames
\begin{frame}[allowframebreaks]
\frametitle{Reference}
\printbibliography
\end{frame}
%% ---------------------------------------------------------------------------
% Final frame
\begin{frame}{}
\centering
\huge{\textbf{\example{Thank You!}}}
\end{frame}
\end{document}