-
Notifications
You must be signed in to change notification settings - Fork 0
/
Thesis-Slides3.tex
532 lines (430 loc) · 15 KB
/
Thesis-Slides3.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
%======================================================%
% Beamer Presentation
% LaTeX Template
% compile using PDFTeXify, PDFLaTeX or XeLaTeX
%======================================================%
%--------------------------------------------------------------------------------
% PACKAGES AND THEMES
%--------------------------------------------------------------------------------
\documentclass[notheorems,11pt,compress]{beamer}
%------- Beamer theme ------
\usetheme{CambridgeUS}
%\usetheme{Madrid}
%\usetheme{Boadilla}
%\usetheme{Frankfurt}
%\usetheme{Warsaw}
%\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}
%\setbeamertemplate{headline}{}
%\setbeamertemplate{footline}{}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{itemize items}[circle] % ball, circle
\setbeamertemplate{enumerate items}[default]
%\setbeamertemplate{section in toc}[square]
% change the style of frametitle
\makeatletter
\setbeamertemplate{frametitle}{%
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
\@tempdima=\textwidth%
\advance\@tempdima by\beamer@leftmargin%
\advance\@tempdima by\beamer@rightmargin%
\hfill%
\begin{beamercolorbox}[wd=\paperwidth,sep=8pt,left]{frametitle}
\usebeamerfont{frametitle}%
\vbox{}\vskip-1.2ex%
\if@tempswa\else\csname beamer@fteleft\endcsname\fi%
\strut\insertframetitle\strut\par%
{%
\ifx\insertframesubtitle\@empty%
\else%
{\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle\strut\par}%
\fi
}%
\vskip-1ex%
\if@tempswa\else\vskip-8pt\fi
\end{beamercolorbox}%
}
\makeatother
% change the style of footline
\makeatletter
\setbeamertemplate{footline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\ifx\insertshortinstitute\empty\else\expandafter
\ifblank\expandafter{\beamer@shortinstitute}{}{~(\insertshortinstitute)}\fi
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle \hfill
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\hfill\insertshortdate{}\hfill %\kern1ex
\makebox[3em][r]{\insertframenumber\,/\,\inserttotalframenumber}\kern2ex
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
%--------- 宏包 ----------
\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}
\setbeamerfont{title}{family=\rmfamily}
\setbeamerfont{subtitle}{family=\rmfamily}
\setbeamerfont{institute}{family=\kaishu}
\setbeamerfont{author}{family=\kaishu}
%\setbeamerfont{date}{family=\rmfamily}
\setbeamerfont{footline}{family=\kaishu}
\setbeamerfont{headline}{family=\sffamily\heiti}
\setbeamerfont{section in toc}{family=\rmfamily}
\setbeamerfont{subsection in toc}{family=\rmfamily}
\AtBeginDocument{\usebeamerfont{normal text}}
\setbeamertemplate{caption}[numbered]
\numberwithin{figure}{section}
\numberwithin{table}{section}
\numberwithin{equation}{section}
\graphicspath{{./figures/}}
%----- 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
%---------- 定理设置 --------------
\theoremstyle{plain}
\setbeamertemplate{theorems}[numbered]
%\addtobeamertemplate{theorem begin}{\normalfont\rmfamily}{}
\newtheorem{theorem}{定理}
\numberwithin{theorem}{section}
\newtheorem{lemma}{引理}
\numberwithin{lemma}{section}
\newtheorem{corollary}{推论}
\numberwithin{corollary}{section}
%\theoremstyle{definition}
\newtheorem{definition}{定义}
\numberwithin{definition}{section}
\newtheorem{proposition}{命题}
\numberwithin{proposition}{section}
\theoremstyle{example}
\newtheorem{example}{例}
%\numberwithin{example}{section}
%---------- 证明和解环境 ----------
\renewenvironment{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{目录}
\tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/shaded]
\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}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{目录}
\tableofcontents
\end{frame}
%--------------------------------------------------------------------------------
% PRESENTATION SLIDES
%--------------------------------------------------------------------------------
%------------------------------------------------
\section{文本与 Block}
%------------------------------------------------
\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{定理与表格}
%------------------------------------------------
\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}
%------------------------------------------------
\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.3} %定义表格高度
% PLCR前面已经定义
\begin{tabularx}{0.92\textwidth}{|P{3.2cm}|C|}
\Xhline{2\arrayrulewidth}
论文起止时间 & 论文筹备过程\\
\hline
2019.xx -- 2019.xx & 论文定题,整理相关文献\\
\hline
2020.xx -- 2020.xx & 审查、修改、完成开题报告\\
\hline
2020.xx -- 2020.xx & 对论文排版、初步完成论文初稿\\
\hline
2020.xx -- 2020.xx & 毕业论文预答辩\\
\hline
2021.xx -- 2021.xx & 对论文进行补充、完善\\
\hline
2021.xx -- 2021.xx & 论文定稿\\
\hline
2021.xx -- 2021.xx & 毕业论文答辩\\
\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[width=0.5\linewidth]{image1}
\caption{Caption of Figure 1.} \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{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{参考文献}
%------------------------------------------------
\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} % 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.
\bibitem[李荣华, 2009]{LiLiu2009} 李荣华, 刘播. 微分方程数值解法. 北京: 高等教育出版社, 2009.
\end{thebibliography}
\end{frame}
%------------------------------------------------
\setbeamertemplate{headline}{}
\begin{frame}
%\sffamily
\begin{center}
\HUGE \textcolor[RGB]{165,3,3}{谢\quad 谢! \\[8pt]
Thank you!}
\end{center}
\end{frame}
\end{document}