-
Notifications
You must be signed in to change notification settings - Fork 0
/
Thesis-Slides6.tex
604 lines (488 loc) · 18.3 KB
/
Thesis-Slides6.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
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
%======================================================%
% Beamer Presentation
% LaTeX Template
% compile using PDFTeXify, PDFLaTeX or XeLaTeX
%======================================================%
%--------------------------------------------------------------------------------
% PACKAGES AND THEMES
%--------------------------------------------------------------------------------
\documentclass[noamsthm,notheorems,11pt,compress]{beamer}
%------- Beamer theme ------
\usetheme{default}
%\usetheme{Madrid}
%\usetheme{Boadilla}
%\usetheme{Frankfurt}
%\usetheme{Warsaw}
%\usetheme{CambridgeUS}
%\usetheme{Montpellier}
%------- Color theme ------
\usecolortheme{rose}
%\usecolortheme{orchid}
%\usecolortheme{lily}
%\usecolortheme{whale}
%\usecolortheme{dolphin}
%\usecolortheme{seahorse}
%\usetheme{boxes}
%\setbeamercovered{transparent}
%\usefonttheme[onlymath]{serif}
\usefonttheme{serif}
\usefonttheme{professionalfonts}
\setbeamersize{text margin left=0.75cm, text margin right=0.75cm}
%\setbeamertemplate{headline}{}
%\setbeamertemplate{footline}{}
%\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{blocks}[default]
\setbeamertemplate{navigation symbols}{}
% Itemize items: default (triangle), circle, square, ball
\setbeamertemplate{itemize items}[circle]
% Enumerate items: default, circle, square, ball
%\setbeamertemplate{enumerate items}[square]
%\setbeamertemplate{enumerate items}[circle]
\setbeamertemplate{footline}{%
\hfill%
\usebeamercolor[footer]{page number in head/foot}%
\usebeamerfont{page number in head/foot}%
\insertframenumber \,/\,\inserttotalframenumber
\kern1.5em\vskip4pt%
}
\setbeamertemplate{headline}{%
\leavevmode
\begin{beamercolorbox}[wd=\paperwidth,ht=0.5ex,dp=1ex,left]{}
\end{beamercolorbox}
}
%---------- frametitle add a line ----------
\setbeamertemplate{frametitle}{%
\leavevmode\linespread{1}\insertframetitle
\vskip-1.8ex
\begin{beamercolorbox}[colsep=0.4pt,wd=\linewidth]{upper separation line}
\end{beamercolorbox}
}
%---------- 定义颜色 ----------
%\definecolor{darkblue}{rgb}{0.18,0.18,0.64}
\definecolor{darkblue}{rgb}{0.2,0.4,0.8}
\definecolor{footer}{rgb}{0.5,0.2,0.5}
\definecolor{linecolor}{rgb}{0.9,0,0.075}
\definecolor{darkgreen}{rgb}{0,0.8,0.2}
%\definecolor{darkred}{rgb}{0.72,0.2,0.15}
%\definecolor{linecolor}{rgb}{0.35,0.70,0.725}
\setbeamercolor{structure}{fg=black}
%\setbeamercolor{structure}{fg=darkblue}
%\setbeamercolor{frametitle}{fg=blue}
%\setbeamercolor{title}{bg=black!10!white, fg=blue}
%\setbeamercolor{subtitle}{bg=black!10!white, fg=blue}
\setbeamercolor{upper separation line}{bg=linecolor}
%--------- 宏包 ----------
\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{caption}
\usepackage{mathtools}
\usepackage{tikz}
%---------- 定义行距 ----------
%\renewcommand{\baselinestretch}{1.15}
%---------- 定义表格新命令 ----------
\newcolumntype{P}[1]{>{\centering \arraybackslash}p{#1}}
\newcolumntype{L}{X}
\newcolumntype{C}{>{\centering \arraybackslash}X}
\newcolumntype{R}{>{\raggedleft \arraybackslash}X}
%---------- Caption Setting ----------
\captionsetup[figure]{position=bottom,skip={6pt}}
\captionsetup[table]{position=top,skip={3pt}}
%---------- 设置字体 ----------
\setbeamerfont{normal text}{family=\rmfamily}
\setbeamerfont{frametitle}{family=\rmfamily,size=\Large,series=\bfseries}
\setbeamerfont{title}{family=\rmfamily,series=\bfseries}
\setbeamerfont{subtitle}{family=\rmfamily,series=\bfseries}
%\setbeamerfont{institute}{family=\kaishu}
%\setbeamerfont{author}{family=\kaishu}
%\setbeamerfont{date}{family=\rmfamily}
\setbeamerfont{footline}{family=\rmfamily}
\setbeamerfont{headline}{family=\sffamily}
\setbeamerfont{section in toc}{family=\rmfamily,series=\bfseries}
\setbeamerfont{subsection in toc}{family=\rmfamily,series=\bfseries}
\AtBeginDocument{\usebeamerfont{normal text}}
\setbeamertemplate{theorems}[normal font]
\setbeamertemplate{caption}[numbered]
\numberwithin{figure}{section}
\numberwithin{table}{section}
\numberwithin{equation}{section}
\graphicspath{{./figures/}}
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
%----- 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
%----- 定义定理颜色 -----
\definecolor{bgcolor1}{rgb}{0.95,0.95,1}
\definecolor{lncolor1}{rgb}{0.63,0.58,0}
\definecolor{bgcolor2}{rgb}{0.95,0.95,0.95}
\definecolor{lncolor2}{rgb}{0.95,0.4,0.1}
\definecolor{bgcolor3}{rgb}{0.9,1,0.9}
\definecolor{lncolor3}{rgb}{0.3,0.3,0.3}
%---------- 定理设置 --------------
\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
\if@docn
\theoremheaderfont{\color{structure.fg}\bfseries} %\upshape
\else
\theoremheaderfont{\color{structure.fg}\bfseries} %\upshape
\fi
\theorembodyfont{} %\itshape %\setlength{\baselineskip}{15pt}
\theoremindent0em
\theoremseparator{.} %if break -> add \vspace{0.2em}
\theoremnumbering{arabic}
\colorlet{thmcolor}{darkgreen}
\newmdtheoremenv[linecolor=lncolor1,middlelinewidth=0.5pt,
roundcorner=1pt,backgroundcolor=bgcolor1,%
innertopmargin=0.4em,innerbottommargin=0.4em,%
innerleftmargin=5pt,innerrightmargin=5pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{theorem}%
{定理}%[section]
\newmdtheoremenv[linecolor=lncolor1,middlelinewidth=0.5pt,
roundcorner=1pt,backgroundcolor=bgcolor1,%
innertopmargin=0.4em,innerbottommargin=0.4em,%
innerleftmargin=5pt,innerrightmargin=5pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{corollary}%
{推论}%[section]
\newmdtheoremenv[linecolor=lncolor1,middlelinewidth=0.5pt,
roundcorner=1pt,backgroundcolor=bgcolor1,%
innertopmargin=0.4em,innerbottommargin=0.4em,%
innerleftmargin=5pt,innerrightmargin=5pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{lemma}%
{引理}%[section]
\newmdtheoremenv[linecolor=lncolor2,middlelinewidth=0.5pt,
roundcorner=1pt,backgroundcolor=bgcolor2,%
innertopmargin=0.4em,innerbottommargin=0.4em,%
innerleftmargin=5pt,innerrightmargin=5pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{proposition}%
{命题}%[section]
\newmdtheoremenv[linecolor=lncolor3,middlelinewidth=0.5pt,
roundcorner=1pt,backgroundcolor=bgcolor3,%
innertopmargin=0.4em,innerbottommargin=0.4em,%
innerleftmargin=5pt,innerrightmargin=5pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{definition}%
{定义}%[section]
\newmdtheoremenv[linecolor=white,middlelinewidth=0.5pt,
roundcorner=2pt,backgroundcolor=none,%
innertopmargin=0em,innerbottommargin=0em,%
innerleftmargin=0pt,innerrightmargin=0pt,%
skipbelow=0.5em,skipabove=1em,%
splittopskip=\topskip,ntheorem]{example}%
{例}%[section]
%---------- 证明和解环境 ----------
\newenvironment{proof}[1][证明]{\par\textbf{#1:}%
\enspace\ignorespaces}{\par}
\newenvironment{solution}{\par\textbf{解:}%
\enspace\ignorespaces}{\par}
%---------- 证明符号 ----------
\newcommand{\QED}{\hfill\ensuremath{\square}}
%---------- 调节公式的间距 ----------
\AtBeginDocument{
\setlength{\abovedisplayskip}{6pt plus 1pt minus 1pt}
\setlength{\belowdisplayskip}{6pt plus 1pt minus 1pt}
\setlength{\abovedisplayshortskip}{2pt}
\setlength{\belowdisplayshortskip}{2pt}
\setlength{\arraycolsep}{2pt}
}
\makeatletter
\newcommand\HUGE{\@setfontsize\Huge{28}{32}}
\makeatother
%\AtBeginSection[]{
%\begin{frame}
% \frametitle{目录}
% \leftskip=1em
% \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded]
% \addtocounter{framenumber}{-1}
%\end{frame}
%}
\AtBeginSection[]{
\begin{frame}[plain]{}
\LARGE\centering
\tableofcontents[currentsection,sectionstyle=show/hide]
\addtocounter{framenumber}{-1}
\end{frame}
}
%---------- 自定义命令 ----------
\newcommand{\red}[1]{\textcolor{red}{#1}}
\newcommand{\blue}[1]{\textcolor{blue}{#1}}
%--------------------------------------------------------------------------------
% TITLE PAGE
%--------------------------------------------------------------------------------
\title[论文题目]{毕业论文题目毕业论文题目毕业论文题目}
\author[学生姓名]
{
答辩人:学生姓名~~ \vskip 3mm
% 报告人:学生姓名~~ \vskip 3mm
专业:专业名称 \vskip 3mm
指导教师:导师姓名 ~ 职称 \vskip 3mm
研究方向:专业研究方向
}
\institute[学校名称]{}
\date[202X.X.X]{202X.X.X}
\begin{document}
% only change the spacing of body text
\setlength{\baselineskip}{15pt}
{\setbeamertemplate{headline}{}
\begin{frame}
\titlepage % Print the title page as the first slide
\end{frame}}
\begin{frame}
\frametitle{目录}
\leftskip=1em
\tableofcontents
\end{frame}
%--------------------------------------------------------------------------------
% PRESENTATION SLIDES
%--------------------------------------------------------------------------------
%------------------------------------------------
\section{研究背景}
%------------------------------------------------
\begin{frame}{研究背景}
这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。
这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。
\vspace{1ex}
这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。
这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。这是一段测试文字。
\end{frame}
%-----------------------------------------------
\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{准备知识}
\begin{frame}
\frametitle{列表环境}
计数列表环境
\begin{enumerate}
\item 这是一个计数列表环境.
\item 这是一个计数列表环境.
\item 这是一个计数列表环境.
\end{enumerate}
\vspace{2ex}
不计数列表环境
\begin{itemize}%[<+-| alert@+>]
\item 这是一个不计数列表环境.
\item 这是一个不计数列表环境.
\item 这是一个不计数列表环境.
\end{itemize}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{左右分栏} % Multiple Columns
\begin{columns}[t] % The "c" option specifies centered vertical alignment while the "t" option is used for top vertical alignment
\column{.45\textwidth} % Left column and width
\textbf{Heading}
\begin{enumerate}
\item Statement
\item Explanation
\item Example
\end{enumerate}
\column{.5\textwidth} % Right column and width
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{columns}
\end{frame}
%------------------------------------------------
\section{研究内容} % XX 方法求解 XX 方程
%------------------------------------------------
\begin{frame}
\frametitle{定理环境}
\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{误差分析}
%------------------------------------------------
\begin{frame}
\frametitle{定理示例}
\begin{theorem}[Lax-Milgram Lemma]
Let $X$ be a Hilbert space, let $a(\cdot, \cdot)$ : $X \times X \rightarrow \mathbb{R}$ be a continuous and coercive bilinear form, and let $F : X \rightarrow \mathbb{R}$ be a linear functional in $X^{\prime}$. Then the variational problem:
\begin{equation}
\alert{
\left\{\begin{aligned}
&\text {Find } u \in X \text { such that } \\
&a(u, v)=F(v),~\forall v \in X.
\end{aligned} \right. }
\end{equation}
has a unique solution. Moreover, we have
\begin{equation}
\alert{ \|u\| \leq \frac{1}{\alpha}\|F\|_{X^{\prime}}. }
\end{equation}
\end{theorem}
\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{table}
\caption{这是一个三线表.}
\begin{tabular}{lll}
\toprule
\textbf{Treatments} & \textbf{Response 1} & \textbf{Response 2}\\
\midrule
Treatment 1 & 0.0003262 & 0.562 \\
Treatment 2 & 0.0015681 & 0.910 \\
\bottomrule
\end{tabular}
\end{table}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{表格环境}
本文定义了新的可变长度左中右 (LCR) 格式, LCR 三个格式会根据表格宽度的设定自行控制宽度, 且其宽度相等, 方便设置和页面相同宽度的表格. 本文还定义了 P\{\} 格式可以设定某一列宽度 (如 P\{1cm\} 控制某一列的宽度为 1cm) 并居中.
\begin{table}[!htp]
\centering
% PLCR已经定义
\caption{某校学生身高体重样本.}
\label{tab2:heightweight}
\begin{tabularx}{0.9\textwidth}{lCCC}
\toprule
序号&年龄&身高&体重\\
\midrule
1&14&156&42\\
2&16&158&45\\
3&14&162&48\\
4&15&163&50\\
\cmidrule{2-4}
平均&15&159.75&46.25\\
\bottomrule
\end{tabularx}
\end{table}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{表格示例}
\begin{table}[htp!]
\centering
\renewcommand\arraystretch{1.2} %定义表格高度
% PLCR前面已经定义
\caption{表格的描述.}
\label{tab3:NumError}
\begin{tabularx}{0.9\textwidth}{|P{1cm}|C|C|C|C|}
\Xhline{2\arrayrulewidth}
N & A & B & C & D \\
\Xhline{2\arrayrulewidth}
1 & 9.20E-05 & 9.90E-05 & 1.00E-06 & 8.00E-06 \\
2 & 9.80E-05 & 8.00E-05 & 7.00E-06 & 1.40E-05 \\
3 & 4.00E-06 & 8.10E-05 & 8.80E-05 & 2.00E-05 \\
4 & 8.50E-05 & 8.70E-05 & 1.90E-05 & 2.10E-05 \\
5 & 8.60E-05 & 9.30E-05 & 2.50E-05 & 2.00E-06 \\
6 & 1.70E-05 & 2.40E-05 & 7.60E-05 & 8.30E-05 \\
7 & 2.30E-05 & 5.00E-06 & 8.20E-05 & 8.90E-05 \\
8 & 7.90E-05 & 6.00E-06 & 1.30E-05 & 9.50E-05 \\
9 & 1.00E-05 & 1.20E-05 & 9.40E-05 & 9.60E-05 \\
\Xhline{2\arrayrulewidth}
\end{tabularx}
\end{table}
\end{frame}
%------------------------------------------------
\section{数值实验}
\begin{frame}
\frametitle{插图环境}
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[height=0.64\textheight]{image1}
\caption{图的描述.} \label{fig:A}
\end{figure}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{两图并排}
\begin{figure}[htb]
\centering
\begin{minipage}{0.48\linewidth}
\centering
\includegraphics[width=\linewidth]{image1}
\caption{图~1~的描述.}
\end{minipage}\hfill
\begin{minipage}{0.48\linewidth}
\centering
\includegraphics[width=\linewidth]{image2}
\caption{图~2~的描述.}
\end{minipage}
\end{figure}
\end{frame}
%------------------------------------------------
\section{总结与展望}
%------------------------------------------------
\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}. \\~
文献引用示例 \cite{LiLiu2009}, 可以修改引用文献样式.
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{References}
\small
\begin{thebibliography}{99}
\bibitem[Smith, 2012]{Smith2012} John Smith, Title of the publication, \emph{Journal Name}, 12(3):45--678, 2012.
\bibitem[李荣华, 2009]{LiLiu2009} 李荣华, 刘播. 微分方程数值解法. 北京: 高等教育出版社, 2009.
\end{thebibliography}
\end{frame}
%------------------------------------------------
%\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25]
%\setbeamertemplate{headline}{}
\begin{frame}
%\sffamily
\begin{center}
\HUGE \textcolor[RGB]{165,3,3}{谢\quad 谢! \\[8pt]
Thank you!}
\end{center}
\end{frame}
%------------------------------------------------
\end{document}