-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathslide.tex
280 lines (241 loc) · 10.2 KB
/
slide.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
\documentclass[no-math]{ctexbeamer}
\usepackage{Buct}
% 下列命令都可以带一个可选参数设置短形式
% 一般地,短形式会出现在帧的底部
\author[蓝青]{蓝青 \and 李四~教授}
\title{一份很简短的 BUCT Beamer Theme 介绍}
\subtitle{申请北京化工大学工学硕士学位}
\institute[CMSE of BUCT]{北京化工大学\quad 材料科学与工程学院}
\date{\today}
% 用于补充 PDF 说明信息中的主题和关键字
% 不会输出文本,可以忽略。
\subject{BUCT Beamer Theme 介绍}
\keywords{Beamer, Theme, BUCT}
\begin{document}
% 标题
\maketitle
% 目录
\begin{frame}{目录}
\tableofcontents[
sectionstyle = show,
subsectionstyle = show/shaded/hide,
subsubsectionstyle = show/shaded/hide
]
\end{frame}
\section{课题背景}
\begin{frame}{这份 Beamer 模板是什么?}
\begin{itemize}[<+-| alert@+>] % 当然,除了alert,手动在里面插 \pause 也行,见后
\item 这是北京化工大学的非官方 Beamer 模板,魔改自 \href{https://www.overleaf.com/latex/templates/thu-beamer-theme/vwnqmzndvwyb}{THU Beamer Theme}。
\item 中文支持请选择 \XeLaTeX 编译选项,\emph{不支持 CTeX 套装}。
\item 本文档即为示例文件,推荐结合源代码看一看。
\item 项目地址位于 \href{https://github.com/Miracle0565/buct-Beamer-Theme}{GitHub},欢迎反馈。
\end{itemize}
\end{frame}
\section{研究现状}
\subsection{Beamer主题分类}
\begin{frame}
\begin{itemize}
\item 有一些随 \TeX\ Live 发布,例如 Xiaoshan(萧山)。\pause
\item 其他同学制作的北化 Beamer,适用于 $16:9$ 的比例,位于 \href{https://cn.overleaf.com/latex/templates/beamer-for-buct/rndypbwvfxrp}{Overleaf} 或 \href{https://github.com/Livioni/Beamer-Temlate-for-BUCT}{GitHub}。\pause
\item Overleaf 和 GitHub 上也能找到许多其他风格的模板,可根据喜好自行选用。
\end{itemize}
\end{frame}
\section{研究内容}
\subsection{字体}
\begin{frame}
\begin{enumerate}
\item 中文字体:优先使用思源黑体\footnote{下载:\href{https://mirrors.tuna.tsinghua.edu.cn/adobe-fonts/source-han-sans/OTF/SimplifiedChinese/}{清华大学镜像站} 或者 \href{https://mirror.nju.edu.cn/adobe-fonts/source-han-sans/OTF/SimplifiedChinese/}{南京大学镜像站}},如果不存在将使用默认设置。本模板使用 Regular 和 Bold 两种字重。
\item 英文字体:使用 Fira 系列字体,其已集成于 TeX Live 中,故无需另行下载。
\end{enumerate}
\end{frame}
\subsection{中文示例}
\begin{frame}{临江仙·滚滚长江东逝水}
\begin{itemize}
\item 滚滚长江东逝水,浪花淘尽英雄。是非成败转头空。\emph{青山依旧在,几度夕阳红。}
\item 白发渔樵江渚上,惯看秋月春风。一壶浊酒喜相逢。古今多少事,都付笑谈中。
\item 滾滾長江東逝水,浪花淘盡英雄。是非成敗轉頭空。\emph{青山依舊在,幾度夕陽紅。}
\item 白髮漁樵江渚上,慣看秋月春風。一壺濁酒喜相逢。古今多少事,都付笑談中。
\end{itemize}
\end{frame}
\subsection{Examples in English}
\begin{frame}{from The Book of Mozilla}
\begin{itemize}
\item And the beast shall come forth \emph{surrounded by a roiling cloud of vengeance.} The house of the unbelievers shall be razed and they shall be scorched to the earth. Their tags shall blink until the end of days.
\item And the beast shall be made legion. Its numbers shall be increased a thousand thousand fold. The din of a million keyboards like unto a great storm shall cover the earth, \textit{and the followers of Mammon shall tremble.}
\end{itemize}
\end{frame}
\subsection{其他例子}
\begin{frame}{表格}
\begin{table}[h]
\centering
\begin{tabular}{ll}
\toprule
Microsoft\textsuperscript{\textregistered} Word & \LaTeX \\
\midrule
文字处理工具 & 专业排版软件 \\
容易上手,简单直观 & 容易上手 \\
所见即所得 & 所见即所想,所想即所得 \\
高级功能不易掌握 & 进阶难,但一般用不到 \\
处理长文档需要丰富经验 & 和短文档处理基本无异 \\
花费大量时间调格式 & 无需担心格式,专心作者内容 \\
公式排版差强人意 & 尤其擅长公式排版 \\
二进制格式,兼容性差 & 文本文件,易读、稳定 \\
付费商业许可 & 自由免费使用 \\
\bottomrule
\end{tabular}
\end{table}
\end{frame}
\begin{frame}{公式}
\begin{exampleblock}{无编号公式} % 加 *
\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{exampleblock}
\begin{exampleblock}{多行多列公式\footnote{公式中的文字用 \textbackslash{}text 命令}}
% 使用 & 分隔
\begin{align}
Q_\text{target} &=r+\gamma Q^\pi(s^\prime, \pi_\theta(s^\prime)+\epsilon)\\
\epsilon &\sim\text{clip}(\mathcal{N}(0, \sigma), -c, c)\nonumber
\end{align}
\end{exampleblock}
\end{frame}
\begin{frame}
\begin{exampleblock}{编号多行公式}
\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{exampleblock}
\end{frame}
\begin{frame}{Equations}
\begin{itemize}
\item Covariant derivative:
\[
\nabla \symbf{X} = \tensor{X}{^\alpha_{;\beta}} \pdv{x^\alpha} \otimes \dd{x^\beta}
= \qty(\tensor{X}{^\alpha_{,\beta}} + \Gamma^{\alpha}_{\beta\gamma} \, X^\gamma) \,
\pdv{x^\alpha} \otimes \dd{x^\beta}
\]
\item Einstein's field equations:
\[ G_{\mu\nu} \equiv R_{\mu\nu} - \frac{1}{2} R g_{\mu\nu} = \frac{8\pi G}{c^4} T_{\mu\nu} \]
\item Schwarzschild metric:
\[
c^2 \dd{\tau}^2 = \qty(1-\frac{r_{\mathrm{s}}}{r}) \, c^2 \dd{t}^2
- \qty(1-\frac{r_{\mathrm{s}}}{r})^{-1} \dd{r}^2
- r^2 \underbrace{\qty(\dd{\theta}^2 + \sin^2 \theta \dd{\varphi}^2)}_{\dd{\Omega}^2}
\]
\item Einstein--Hilbert action:
\[ S = \frac{1}{2\kappa} \int R \sqrt{-g} \dd[4]{x} \]
\end{itemize}
\end{frame}
\begin{frame}[fragile]{\LaTeX\ 环境命令举例}
\begin{minipage}{0.4\linewidth}
\begin{lstlisting}[language=TeX]
\begin{itemize}
\item A \item B
\item C
\begin{itemize}
\item C-1
\end{itemize}
\end{itemize}
\end{lstlisting}
\end{minipage}
\hspace{.5cm}
\begin{minipage}{0.3\linewidth}
\begin{itemize}
\item A
\item B
\item C
\begin{itemize}
\item C-1
\end{itemize}
\end{itemize}
\end{minipage}
\medskip
\begin{minipage}{0.4\linewidth}
\begin{lstlisting}[language=TeX]
\begin{enumerate}
\item 巨佬 \item 大佬
\item 萌新
\begin{itemize}
\item[\S] 瑟瑟发抖
\end{itemize}
\end{enumerate}
\end{lstlisting}
\end{minipage}
\hspace{.5cm}
\begin{minipage}{0.45\linewidth}
\begin{enumerate}
\item 巨佬
\item 大佬
\item 萌新
\begin{itemize}
\item[\S] 一个左右两列的示例
\end{itemize}
\end{enumerate}
\end{minipage}
\end{frame}
\begin{frame}[fragile]
给定两个整数 $A$ 和 $B$(分别以数组 arr1 和 arr2 的形式给出)
以及一个整数 $d$,求在数组 $A$ 中满足 $B$ 中所有元素与其差值绝对值均大于 $d$ 的元素个数。
关键数据规模:$1\leq |A|,|B|\leq500$。\bigskip\pause
\emph{解法:}
本题只需按题目要求进行统计即可。时间复杂度 $O(|A| |B|)$。
一种使用 Python 语言的较为简短的实现如下:
\begin{lstlisting}[language=Python, emph={arr1, arr2}]
return sum([sum([abs(i - j) <= d for j in arr2]) == 0 for i in arr1])
\end{lstlisting}
\end{frame}
\begin{frame}{作图}
\begin{itemize}
\item 矢量图 eps, ps, pdf
\begin{itemize}
\item METAPOST, pstricks, pgf $\ldots$
\item Xfig, Dia, Visio, Inkscape $\ldots$
\item Matlab / Excel 等保存为 pdf
\end{itemize}
\item 标量图 png, jpg, tiff $\ldots$
\begin{itemize}
\item 提高清晰度,避免发虚
\item 应尽量避免使用
\end{itemize}
\end{itemize}
\begin{figure}[htpb]
\centering
\includegraphics[width=0.2\linewidth]{pic/BUCT-badge.pdf}
\caption{这个校徽就是矢量图}
\end{figure}
\end{frame}
\section{计划进度}
\begin{frame}
\begin{itemize}
\item 一月:完成文献调研
\item 二月:复现并评测各种Beamer主题美观程度
\item 三、四月:美化BUCT Beamer主题
\item 五月:论文撰写
\end{itemize}
\end{frame}
\section{参考文献}
% 指明需罗列但正文中不引用的文献。这里的 * 代表插入所有文献。
\nocite{*}
\begin{frame}[allowframebreaks]
% \tiny 用于调整字号,建议参考文献比较多的时候使用
\tiny
% 罗列参考文献列表使用 plain 格式,也可以用 GB/T 7714 的
\bibliographystyle{plain}
% 参考文献数据库,可以与 buctthesis 中的共用
% 建议只罗列主要参考文献
\bibliography{thesisbib}
\end{frame}
\begin{frame}
\begin{center}
{\huge
Thank you for your attention!\\
Questions?
}
\end{center}
\end{frame}
\end{document}