forked from FvNCCR228/SCU-Beamer-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-en.tex
288 lines (266 loc) · 7.77 KB
/
main-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
% !TeX encoding = UTF-8
% !BIB TS-program = biber
% !TeX TS-program = xelatex
% This is file `main-en.tex'.
% Copyright (C) 2021-2022 by Linrong Wu.
% Version: 2022/04/13 v1.3b (Original Version: 2022/04/13 v1.3b).
% 本文件为 SCU_Beamer_Slide-demo 主文件源文件.
% !使用前请阅读用户手册.
% ================ %
% 导言区 %
% ================ %
\documentclass[hyperref, UTF8, CJK]{beamer}
%\special{dvipdfmx:config z 0}
% --------SCU Beamer 模板宏包--------
% ----------------
\usetheme[
CodeDisplay=minted,
LanguageMode=en,
MintedStyle=dracula,
ColorDisplay=BSblue,
Background=false
]{scu}%, BIBMode=none
% --------宏包调用--------
% ----------------
\usepackage{transparent}
\usepackage{array}
\usepackage{algorithm,algorithmic}
\usepackage[english]{babel}
\usepackage{color} % color content
\usepackage{url} % hyperlinks
\usepackage{multicol,multirow}
\usepackage{ulem} % ulem: 添加线.
\usepackage{booktabs}
\usepackage{cprotect}
\usepackage{makecell}
\usepackage{listings}
\usepackage{subcaption}
\usepackage{varioref,cleveref}
%\usepackage[active,tightpage]{preview}
%\PreviewEnvironment{scucode}
% --------newcommand 区--------
% 建议在此定义常用命令.
% ----------------
\newcommand{\fverb}[1]{\texttt{#1}}
% --------封面信息输入--------
% [<in footline>], {<in title page>} 方括号内容显示在页脚, 花括号内容为全称显示在封面.
% ----------------
\title[A brief example in English for SCU Beamer Theme]{A brief example in English}
\subtitle{For SCU Beamer Theme} % subtitle 未设置页脚显示项, 请在 title 中设置.
\author[Linrong Wu]{Linrong Wu}
\institute{%
Management Science\\
Business School, Sichuan University\\
\textit{lr.wu.interact@outlook.com}
}
\date{\today}
% ---------------- %
% 正文区 %
% ---------------- %
\begin{document}
% --------总目录--------
% 可注释.
% ----------------
% \begin{frame}{目录}
% %\transfade%淡入淡出
% \tableofcontents % 显示目录.
% \end{frame}
% --------节: 介绍--------
% ----------------
\section{Introduction}
\subsection{The Project}
\begin{frame}{Info.}
\faShare*\enspace{\color{scublue}lr.wu.interact@outlook.com}
\faGithub\enspace{\color{scublue}\url{https://github.com/FvNCCR228/SCU_Beamer_Slide-demo}}
\end{frame}
% --------节: 区块示例--------
% ----------------
\section{Blocks}
\subsection{Math Blocks}
\begin{frame}[fragile,allowframebreaks]{Math Blocks}
\begin{scutheorem}{A Theorem}[theorem1]
\begin{equation}
\dfrac{1}{n} \sum_{k=1}^{n} X_k - \dfrac{1}{n} \sum_{k=1}^{n} E(X_k) \stackrel{\;P\;}{\longrightarrow} 0
\end{equation}
\end{scutheorem}
\begin{scuproof}{}
A proof block.
\end{scuproof}
\begin{scuexample}{An Example}[example1]
An example block.
\end{scuexample}
\begin{scualgorithm}{An Algorithm}[algorithm1]
\begin{algorithmic}[1]
\REQUIRE \LaTeX{}
\ENSURE Computer
\STATE ST
\STATE A
\STATE TE
\RETURN Beamer
\end{algorithmic}
\end{scualgorithm}
\begin{scudefinition}{A Defintion}[defintion1]
A definition block.
\end{scudefinition}
\begin{scuaxiom}{An Axiom}[axiom1]
An axiom block. Reference to~\Vref{def:defintion1}
\end{scuaxiom}
\begin{scuproperty}{A Property}[property1]
A property block. Reference to~\Cref{axio:axiom1}
\end{scuproperty}
\begin{scuproposition}{A Proposition}[proposition1]
A proposition block. Reference to~\vref{prope:property1}
\begin{equation}
\Delta x \Delta p \geq \dfrac{h}{4\pi}
\end{equation}
其中$h$为普朗克常数.
\end{scuproposition}
\begin{sculemma}{A lemma}[lemma1]
A lemma block. Reference to~\cref{propo:proposition1}
\end{sculemma}
\begin{scucorollary}{A Corollary}[corollary1]
A corollary block.
\end{scucorollary}
\begin{scuremark}{}[remark1]
A remark block.
\end{scuremark}
\begin{scucondition}{A Condition}[condition1]
A condition block.
\end{scucondition}
\begin{scuconclusion}{A Conclusion}[conclusion1]
A conclusion block.
\end{scuconclusion}
\begin{scuassumption}{An Assumption}[assumption]
An assumption block.
\end{scuassumption}
\end{frame}
\begin{frame}{A Stared Block}
\begin{scutheorem}*<1-4>[after title=(after title: Theorem)]{A Stared Theorem Block}[staredblock1]
\begin{itemize}[<+->]
\item One
\item Two~\only<2>{Two}
\item \alert<3>{Three}
\item Four
\end{itemize}
\end{scutheorem}
\begin{scutheorem}<2-5>[after title=(after title: Theorem)]{Another Stared Theorem Block}*[staredblock2]
\begin{itemize}
\item Five
\item Six~\only<3>{Six}
\item \alert<3>{Seven}
\item Eight
\end{itemize}
\end{scutheorem}
\end{frame}
\subsection{Source Code Block}
\begin{frame}[fragile]{Source Code Block}{With frame option ``fragile''}
\onslide<2>
\begin{scucode}{A Cpp Program.}[cppcode]{c}
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
std::cin.get();
}
\end{scucode}
\onslide<1>
\begin{scucode}{A Python Program.}[pythoncode]{python}
for i in range(1,5):
for j in range(1,5):
for k in range(1,5):
if( i != k ) and (i != j) and (j != k):
print (i,j,k)
\end{scucode}
\end{frame}
\begin{frame}[fragile]{A Stared Source Code Block}
\begin{scucode*}{A Stared Block.}[staredblock3]{c}
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
std::cin.get();
}
\end{scucode*}
\begin{scucode}{Another Stared Theorem Block.}*[pythoncode]{python}
for i in range(1,5):
for j in range(1,5):
for k in range(1,5):
if( i != k ) and (i != j) and (j != k):
print (i,j,k)
\end{scucode}
\end{frame}
\begin{frame}[fragile]{Highlight Line}
\begin{scucode}{Highlight Line.}[Highlight1]{c}[highlightlines={2,5}]
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
std::cin.get();
}
\end{scucode}
\begin{scucode}{Highlight Line.}[pythoncode]{python}[highlightlines={2-3,5}]
for i in range(1,5):
for j in range(1,5):
for k in range(1,5):
if( i != k ) and (i != j) and (j != k):
print (i,j,k)
\end{scucode}
refer \vref{code:Highlight1,code:pythoncode}
\end{frame}
\begin{frame}[fragile]{\LaTeX{} Comment}{Escapeinline}
If you wanna add comments to the back of the line, it is recommended to use the corresponding language comment directly.
\begin{scucode}{Comment.}[Comment1]{c}
#include <iostream>
int main()
{// $\pi$
std::cout << "Hello World!" << std::endl; |# \textsf{\LaTeX{} out hEllo wOrld}|
|\colorbox{scugreen!60}{$\sum_\pi^\phi \alpha + \Gamma$}| std::cin.get();
}
\end{scucode}
\begin{scucode}{Comment}[Comment2]{python}'@@'
for i in range(1,5):
for j in range(1,5): @$\sum_\pi^\phi \alpha + \Gamma$@
for k in range(1,5): # $\sum_\pi^\phi \alpha + \Gamma$
if( i != k ) and (i != j) and (j != k):
print (i,j,k)
\end{scucode}
\end{frame}
\begin{frame}[fragile]{Overlay \& Label}{Escapeinline}
\begin{scucode}{Comment.}[Escapeinline1]{c}
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl; // \only<1>{Value 1}\only<2>{Value 2}
std::cin.get();
}
\end{scucode}
\begin{scucode}{Comment}[Escapeinline2]{python}[highlightlines={4}]'@@'
for i in range(1,5):
for j in range(1,5):
for k in range(1,5):
if( i != k ) and (i != j) and (j != k): @\label{line:qg}@
print (i,j,k)
\end{scucode}
Reference to Line~\ref{line:qg}, the if statement.
\end{frame}
\begin{frame}[fragile]{Source Code From File}
\scucodeinput{Source Code From File}{c}{A cpp.cpp}
\end{frame}
% --------节: 参考文献--------
% ----------------
% \section{Reference}
% \subsection{Reference}
% \begin{frame}[allowframebreaks]{Reference}
% \nocite{*}
% \printbibliography[heading=none]
% \end{frame}
% --------节: 致谢--------
% ----------------
% \section{Acknowledgement}
% \subsection{Acknowledgement}
\begin{frame}
\centering
\Huge Thanks!
\end{frame}
\end{document}
%% End of file `main-en.tex'.