-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPresentation0-en.tex
489 lines (382 loc) · 13.5 KB
/
Presentation0-en.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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
%======================================================%
% Beamer Presentation
% LaTeX Template
% compile using PDFTeXify or PDFLaTeX
%======================================================%
%-------------------------------------------------------
% PACKAGES AND THEMES
%-------------------------------------------------------
\documentclass[notheorems,11pt,compress]{beamer}
% The Beamer class comes with a number of default slide themes
% which change the colors and layouts of slides. Below this is a list
% of all the themes, uncomment each in turn to see what they look like.
%------- Beamer theme ------
\usetheme{default}
%\usetheme{Madrid}
%\usetheme{Boadilla}
%\usetheme{Frankfurt}
%\usetheme{Warsaw}
%\usetheme{CambridgeUS}
%\usetheme{Montpellier}
%------- Color theme ------
\usecolortheme{rose}
%\usecolortheme{orchid}
%\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10]
\usefonttheme[onlymath]{serif}
%\usefonttheme{serif}
%\setbeamercovered{transparent}
%\usetheme{boxes}
\setbeamersize{text margin left=0.75cm, text margin right=0.75cm}
%\setbeamertemplate{headline}{}
%\setbeamertemplate{footline}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{itemize items}[circle] %square, ball, circle
\setbeamertemplate{enumerate items}[default]
%\setbeamertemplate{section in toc}[square]
\setbeamertemplate{footline}{%
\hfill%
\usebeamercolor[footer]{page number in head/foot}%
\usebeamerfont{page number in head/foot}%
\insertframenumber \,/\,\inserttotalframenumber
\kern1em\vskip4pt%
}
\setbeamertemplate{frametitle}[default][center]
\setbeamertemplate{section in toc}[sections numbered]
%\useoutertheme{split}
\definecolor{darkred}{rgb}{0.6,0,0}
\definecolor{footer}{rgb}{0.5,0.2,0.5}
\setbeamercolor{frametitle}{fg=darkred}
%\setbeamerfont{frametitle}{size=\LARGE}
\setbeamercolor{title}{bg=black!5!white, fg=darkred}
\setbeamercolor{subtitle}{bg=white, fg=darkred}
\setbeamercolor{section in toc}{fg=darkred}
\setbeamercolor{subsection in toc}{fg=darkred}
%----------- Packages -------------
%\usepackage[latin1]{inputenc}
%\usepackage{times}
%\usepackage[T1]{fontenc}
%\usepackage[UTF8]{ctex}
\usepackage[english]{babel}
\usepackage{amsmath,amssymb,version}
\usepackage{graphicx,fancybox,mathrsfs,multirow}
\usepackage{booktabs}
\usepackage{epsfig,epstopdf}
\usepackage{url,hyperref}
\usepackage{tabularx,array,makecell}
\usepackage{color,xcolor}
\usepackage{cases}
\usepackage{mathtools}
\usepackage{tikz}
%---------- Set line spacing ----------
%\renewcommand{\baselinestretch}{1.15}
%---------- Justify text ----------
%\usepackage{ragged2e}
%\apptocmd{\frame}{}{\justifying}{}
%---------- Define new table commands ----------
\newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}}
\newcolumntype{L}{X}
\newcolumntype{C}{>{\centering \arraybackslash}X}
\newcolumntype{R}{>{\raggedleft \arraybackslash}X}
%---------- Set fonts ----------
%\setbeamerfont{normal text}{family=\rmfamily}
\setbeamerfont{title}{family=\sffamily}
%\AtBeginDocument{\usebeamerfont{normal text}}
%----- fix label spacing -----
\makeatletter
\def\beamer@inserttarget#1{%
\ifbeamer@inframe%
#1%
\else% defer to next frame
\expandafter\gdef\expandafter\beamer@framehypertargets%
\expandafter{\beamer@framehypertargets#1}%
\fi%
}
\makeatother
%---------- Theorem environment ----------
\setbeamertemplate{theorems}[numbered]
\newtheorem{theorem}{Theorem}
\numberwithin{theorem}{section}
\newtheorem{lemma}{Lemma}
\numberwithin{lemma}{section}
\newtheorem{corollary}{Corollary}
\numberwithin{corollary}{section}
%\theoremstyle{definition}
\newtheorem{definition}{Definition}
\numberwithin{definition}{section}
\newtheorem{proposition}{Proposition}
\numberwithin{proposition}{section}
\theoremstyle{example}
\newtheorem{example}{Example}
%\numberwithin{example}{section}
%----- proof and solution environment -----
\renewenvironment{proof}[1][Proof]{\par\textit{#1.}%
\enspace\ignorespaces}{\par}
\newenvironment{solution}{\par\textit{Solution.}%
\enspace\ignorespaces}{\par}
%---------- proof symbol ----------
\newcommand{\QED}{\hfill\ensuremath{\square}}
\setbeamertemplate{caption}[numbered]
\numberwithin{figure}{section}
\numberwithin{table}{section}
\numberwithin{equation}{section}
\graphicspath{{./figures/}}
%---------- Adjust the spacing of formulas ----------
%\AtBeginDocument{
% \setlength{\abovedisplayskip}{4pt plus 1pt minus 1pt}
% \setlength{\belowdisplayskip}{4pt plus 1pt minus 1pt}
% \setlength{\abovedisplayshortskip}{2pt}
% \setlength{\belowdisplayshortskip}{2pt}
% \setlength{\arraycolsep}{2pt}
%}
\makeatletter
\newcommand\HUGE{\@setfontsize\Huge{32}{36}}
\makeatother
%---------- Define new commands ----------
\newcommand{\red}[1]{\textcolor{red}{#1}}
\newcommand{\blue}[1]{\textcolor{blue}{#1}}
%---------- Show the outline ----------
\AtBeginSection[]{
\begin{frame}
\frametitle{Outline}
\leftskip=1.0em
\tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded]
\addtocounter{framenumber}{-1}
\end{frame}
}
%-------------------------------------------------------
% TITLE PAGE
%-------------------------------------------------------
\title[Short title]{Full Title of the Talk} % The short title appears at the bottom of every slide, the full title is only on the title page
\author{John Smith} % Your name
\institute[NU] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space
{\blue{Name of University} \\ % Your institution for the title page
\medskip
\texttt{[email protected]} % Your email address
}
\date[Nov. 23, 2020]{\small Very Large Conference \\[5pt] Nov. 23, 2020}
\begin{document}
% only change the spacing of body text
\setlength{\baselineskip}{15pt}
%\thispagestyle{empty}
\begin{frame}
\titlepage % Print the title page as the first slide
\end{frame}
\begin{frame}
\frametitle{Outline}
\leftskip=1.0em
\tableofcontents
\end{frame}
%-------------------------------------------------------
% PRESENTATION SLIDES
%-------------------------------------------------------
%------------------------------------------------
\section{Introduction} %
%------------------------------------------------
\begin{frame}
\frametitle{Paragraphs of Text}
This is paragraphs of text. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\~\\
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Lists}
\begin{enumerate}
\item This is a enumerate environment.
\item This is a enumerate environment.
\item This is a enumerate environment.
\end{enumerate}
\vspace{2ex}
\begin{itemize}[<+-| alert@+>]
\item This is a itemize environment.
\item This is a itemize environment.
\item This is a itemize environment.
\end{itemize}
\end{frame}
%------------------------------------------------
\section{Preliminaries}
%------------------------------------------------
\begin{frame}
\frametitle{Blocks of Highlighted Text}
\begin{block}{Block Title}
This is the block environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
\end{block}
\begin{exampleblock}{Block Title}
This is the exampleblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
\end{exampleblock}
\begin{alertblock}{Block Title}
This is the alertblock environment. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
\end{alertblock}
\end{frame}
%------------------------------------------------
\section{Numerical method} %for the model equation
%------------------------------------------------
\begin{frame}
\frametitle{Multiple Columns}
\begin{columns}[c] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment
\column{0.5\textwidth}
This is a text in first column.
$$E=mc^2$$
\begin{itemize}
\item First item
\item Second item
\end{itemize}
\column{0.5\textwidth}
This text will be in the second column
and on a second tought this is a nice looking
layout in some cases.
\end{columns}
\end{frame}
%------------------------------------------------
\section{Error analysis}
%------------------------------------------------
\begin{frame}
\frametitle{Theorem}
\begin{definition}
This is a definition environment.
\end{definition}
\begin{lemma}
This is a lemma environment.
\end{lemma}
\begin{proposition}
This is a proposition environment.
\end{proposition}
\begin{theorem}[Mass--energy]
This is a theorem environment.
\end{theorem}
\begin{proof}
This is a proof environment. \QED
\end{proof}
\end{frame}
%------------------------------------------------
\section{Numerical results} %experiments
%------------------------------------------------
\begin{frame}
\frametitle{Formula and Table}
This is Pythagorean's theorem
\begin{equation}\label{Pythagorean}
a^2+b^2=c^2.
\end{equation}
This is a simple three-line table.
\begin{table}
\caption{Table caption}
\begin{tabular}{l l l}
\toprule
Treatments & Response 1 & Response 2 \\
\midrule
Treatment 1 & 0.0003262 & 0.562 \\
Treatment 2 & 0.0015681 & 0.910 \\
Treatment 3 & 0.0009271 & 0.296 \\
\bottomrule
\end{tabular}
\end{table}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{}
The new command PLCR is defined to set the length of the width of the table. They can be used in the tabularx environment.
\begin{table}[!htp]
\centering
\renewcommand\arraystretch{1.05}
\caption{A sample of the height and weight of students.}
\label{tab2:heightweight}
% PLCR is defined in the preamble
\begin{tabularx}{0.8\textwidth}{lCCC}
\toprule %\Xhline{2\arrayrulewidth}
Number & Age & Height & Weight\\
\midrule
1&14&156&42\\
2&16&158&45\\
3&14&162&48\\
4&15&163&50\\
\cmidrule{2-4}
Mean &15&159.75&46.25\\
\bottomrule
\end{tabularx}
\end{table}
\end{frame}
%------------------------------------------------
\begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide
\frametitle{Verbatim}
\begin{example}[Theorem Slide Code]
\begin{verbatim}
\begin{frame}
\frametitle{Theorem}
\begin{theorem}[Mass--energy equivalence]
$E = mc^2$
\end{theorem}
\end{frame}\end{verbatim}
\end{example}
\begin{theorem}[Mass--energy equivalence]
$E = mc^2$
\end{theorem}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Figure}
Uncomment the code on this slide to include your own image from the same directory as the template .TeX file.
\begin{figure}[htp!]
\centering
\includegraphics[width=0.6\linewidth]{image1.eps}
\end{figure}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Two pictures}
\begin{figure}[htb]
\centering
\begin{minipage}{0.48\linewidth}
\centering
\includegraphics[width=\linewidth]{image1}
\caption{Caption of Figure 1.}
\end{minipage}\hfill
\begin{minipage}{0.48\linewidth}
\centering
\includegraphics[width=\linewidth]{image2}
\caption{Caption of Figure 2.}
\end{minipage}
\end{figure}
\end{frame}
%------------------------------------------------
\section{Concluding remarks}
%------------------------------------------------
\begin{frame}[fragile] % Need to use the fragile option when verbatim is used in the slide
\frametitle{Citation}
An example of the \verb|\cite| command to cite within the presentation:\\~
This statement requires citation \cite{Smith2012}.
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{References}
\footnotesize{
\begin{thebibliography}{99} % Beamer does not support BibTeX so references must be inserted manually as below
\bibitem[Smith, 2012]{Smith2012} John Smith. Title of the publication. \emph{Journal Name}, 12(3):45--678, 2012.
\end{thebibliography}
}
\end{frame}
%------------------------------------------------
%\thispagestyle{empty}
%\setbeamertemplate{headline}{}
%\setbeamertemplate{footline}{%
% \hfill%
% %\usebeamercolor[fg]{page number in head/foot}%
% \usebeamercolor[footer]{page number in head/foot}%
% \usebeamerfont{page number in head/foot}%
% \insertframenumber \,/\,\inserttotalframenumber
% \kern1em\vskip2pt%
%}
%------------------------------------------------
%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25]
%\setbeamertemplate{headline}{}
\begin{frame}
\begin{center}
\HUGE{\textcolor[RGB]{165,3,3}{Thank~you!}}
\end{center}
\end{frame}
%------------------------------------------------
%\thispagestyle{empty}
%%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25]
%\begin{frame}
%\Huge{\centerline{The End}}
%\end{frame}
\end{document}