-
Notifications
You must be signed in to change notification settings - Fork 0
/
PresentationX-en.tex
552 lines (444 loc) · 16 KB
/
PresentationX-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
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
%======================================================%
% Beamer Presentation
% LaTeX Template
% compile using PDFTeXify or PDFLaTeX
%======================================================%
%-------------------------------------------------------
% PACKAGES AND THEMES
%-------------------------------------------------------
\documentclass[noamsthm,notheorem,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 Setting ------
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{myfootline}{bg=white,fg=blue}
\definecolor{myfoot}{rgb}{0.5,0.2,0.5}
\definecolor{darkblue}{rgb}{0.12,0.24,0.72}
\definecolor{darkgreen}{rgb}{0,0.64,0.2}
\definecolor{linehead}{rgb}{0.18,0.18,0.64}
\setbeamercolor{structure}{fg=darkblue}
\usefonttheme[onlymath]{serif}
\usefonttheme{professionalfonts}
\setbeamersize{text margin left=0.75cm, text margin right=0.75cm}
%\setbeamertemplate{headline}{}
%\setbeamertemplate{footline}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{navigation symbols}{}
%\setbeamertemplate{section in toc}[sections numbered]
%\setbeamertemplate{subsection in toc}[subsections numbered]
\setbeamertemplate{section in toc}{
\leavevmode\leftskip=2.0em
\llap{
\usebeamerfont*{section number projected}%
\usebeamercolor{section number projected}%
\inserttocsectionnumber.
}
\inserttocsection\par
}
\setbeamertemplate{subsection in toc}{
\leavevmode\leftskip=4.0em
\llap{
\usebeamerfont*{subsection number projected}%
\usebeamercolor{subsection number projected}%
\inserttocsectionnumber.\inserttocsubsectionnumber}
\inserttocsubsection\par
}
\definecolor{footer}{rgb}{0.5,0.2,0.5}
\setbeamertemplate{footline}{%
\hfill%
\usebeamercolor[footer]{page number in head/foot}%
\usebeamerfont{page number in head/foot}%
\insertframenumber \,/\,\inserttotalframenumber
\kern1em\vskip4pt%
}
% Itemize items: default (triangle), circle, square, ball
\setbeamertemplate{itemize items}[circle] % ball, circle, square
\setbeamertemplate{enumerate items}[default]
% Enumerate items: default, circle, square, ball
%\setbeamertemplate{enumerate items}[square]
%\setbeamertemplate{enumerate items}[circle]
%----------- 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}
% \setbeamertemplate{blocks}[default]
\setbeamertemplate{bibliography entry title}{}{}
\setbeamertemplate{bibliography entry location}{}{}
\setbeamertemplate*{bibliography entry note}{}{}
%---------- Set line spacing ----------
%\renewcommand{\baselinestretch}{1.15}
%---------- 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}
%\setbeamerfont{subtitle}{family=\rmfamily}
%\setbeamerfont{frametitle}{family=\sffamily,size=\Large}
%\setbeamerfont{framesubtitle}{family=\sffamily,size=\Large}
%\setbeamerfont{institute}{family=\rmfamily}
%\setbeamerfont{author}{family=\rmfamily}
%\setbeamerfont{date}{family=\rmfamily}
%\setbeamerfont{footline}{family=\rmfamily}
%\setbeamerfont{section in toc}{family=\sffamily}
%\setbeamerfont{subsection in toc}{family=\rmfamily}
\AtBeginDocument{\usebeamerfont{normal text}}
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
\setbeamerfont{caption name}{family=\rmfamily,series=\normalfont}
\setbeamertemplate{caption}[numbered]
\numberwithin{figure}{section}
\numberwithin{table}{section}
\numberwithin{equation}{section}
%---------- 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 ----------
\usepackage[framemethod=tikz]{mdframed}
\usepackage[amsmath,thref,thmmarks,hyperref]{ntheorem}
\theorempreskipamount1.2em % spacing before the environment
\theorempostskipamount0em % spacing after the environment
\theorempostwork{\noindent}
\theoremstyle{plain} %break,plain,nonumberbreak
\theoremheaderfont{\color{structure.fg}\sffamily\upshape} % blue
\theorembodyfont{} %\itshape\kaishu\color{black}
\theoremindent0em
\theoremseparator{.} %if break -> add \vspace{0.2em}
\theoremnumbering{arabic}
\colorlet{thmcolor}{darkgreen}
\newmdtheoremenv[linecolor=thmcolor,middlelinewidth=0.5pt,
roundcorner=2pt,backgroundcolor=white,%
innertopmargin=0.5em,innerbottommargin=0.5em,%
innerleftmargin=5pt,innerrightmargin=5pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{theorem}%
{Theorem}[section]
\newmdtheoremenv[linecolor=thmcolor,middlelinewidth=0.5pt,
roundcorner=2pt,backgroundcolor=white,%
innertopmargin=0.5em,innerbottommargin=0.5em,%
innerleftmargin=5pt,innerrightmargin=5pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{corollary}%
{Corollary}[section]
\newmdtheoremenv[linecolor=thmcolor,middlelinewidth=0.5pt,
roundcorner=2pt,backgroundcolor=white,%
innertopmargin=0.5em,innerbottommargin=0.5em,%
innerleftmargin=5pt,innerrightmargin=5pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{lemma}%
{Lemma}[section]
\newmdtheoremenv[linecolor=thmcolor,middlelinewidth=0.5pt,
roundcorner=2pt,backgroundcolor=white,%
innertopmargin=0.5em,innerbottommargin=0.5em,%
innerleftmargin=5pt,innerrightmargin=5pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{proposition}%
{Proposition}[section]
\newmdtheoremenv[linecolor=thmcolor,middlelinewidth=0.5pt,
roundcorner=2pt,backgroundcolor=white,%
innertopmargin=0.5em,innerbottommargin=0.5em,%
innerleftmargin=5pt,innerrightmargin=5pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{definition}%
{Definition}[section]
\newmdtheoremenv[linecolor=white,middlelinewidth=0.5pt,
roundcorner=1pt,backgroundcolor=none,%
innertopmargin=0em,innerbottommargin=0em,%
innerleftmargin=0pt,innerrightmargin=0pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{example}%
{Example}[section]
%----- proof and solution environment -----
\newenvironment{proof}[1][Proof]{\par{\sffamily\color{structure.fg}#1.}%
\enspace\ignorespaces}{\par}
\newenvironment{solution}{\par{\sffamily\color{structure.fg}Solution.}%
\enspace\ignorespaces}{\par}
%---------- proof symbol ----------
\newcommand{\QED}{\hfill\ensuremath{\square}}
%---------- define the section style in frame ----------
\newcommand{\sect}{\thesection.~~\secname}
\newcommand{\subsect}{\thesection.\thesubsection~~\subsecname}
%---------- 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{28}{32}}
\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=1em
\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{xyz@math.univ.edu} % Your email address
}
\date[Nov. 23, 2020]{\small Very Large Conference \\[5pt] Nov. 23, 2020} % Date, can be changed to a custom date
\graphicspath{{./figures/}}
\begin{document}
% only change the spacing of body text
\setlength{\baselineskip}{15pt}
%\thispagestyle{empty}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{Outline}
\leftskip=1em
\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}
\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}
\rmfamily
\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}