-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsysuthesis-sample.tex
More file actions
300 lines (238 loc) · 8.82 KB
/
sysuthesis-sample.tex
File metadata and controls
300 lines (238 loc) · 8.82 KB
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
\documentclass{sysuthesis}
\sysusetup[option]
{
% anonymous,
type = bachelor
% type = master
% type = doctor
}
\sysusetup[style]
{
% cjk-font = windows,
% math-font = newcm
}
\sysusetup[info]
{
title = {标题第一行\\ 标题第二行},
title* = {first line\\ second line},
keywords = {中山大学, 论文模版, 本科生, 研究生},
keywords* = {SYSU, template, undergraduate, graduate},
student-id = {00000000},
author = {作者名},
author* = {XXX},
department = {数学学院},
department* = {Department of Mathematics},
major = {数学与应用数学},
major* = {Mathematics and Applied Mathematics},
supervisors = {XXX~教授, XXX~教授},
supervisors* = {Prof.~XXX, Prof.~XXX},
date = {2025/05/31}, % 默认为编译当天
secret-level = {公开}, % 仅研究生
thesis-code = {00000000} % 仅研究生
}
% 参考文献设置: 可选 BibTeX 或 BibLaTeX
\sysusetup[bib]
{
backend = bibtex,
style = gbt7714-numerical,
resource = sysuthesis-sample
}
% \sysusetup[bib]
% {
% backend = biblatex,
% style = gb7714-2015,
% resource = sysuthesis-sample.bib
% }
% 载入其他常用宏包
\usepackage{thmtools} % 数学定理
% \usepackage{keytheorems} % 数学定理
\usepackage{subcaption} % 图片并排
\usepackage{tabularray} % 表格
\UseTblrLibrary{booktabs} % 三线表样式
\usepackage{float} % 浮动体
\usepackage[ruled]{algorithm2e} % 算法
% \usepackage{minted} % 代码
\usepackage{listings} % 代码
\begin{document}
\maketitle
\frontmatter
\begin{abstract}
这里是中文摘要内容 \cite{Knuth1984}。
\end{abstract}
\begin{abstract*}
Here is the English abstract content \cite{Knuth1986}。
\end{abstract*}
\tableofcontents
\mainmatter
\chapter{引言}
本章主要介绍研究背景、意义以及论文的整体结构。
\section{研究背景}
此处陈述研究背景和现状。脚注是个好用的功能。\footnote{这是一个脚注示例。}
\subsection{二级标题示例}
在这里可以进一步细化研究背景的某个特定方面。
\section{主要工作}
本文的主要工作包括……。脚注可以多次使用。\footnote{这是另一个脚注示例。}
\chapter{理论基础}
本章主要介绍研究所需的理论基础,包括相关定义、定理和关键数学公式。
\section{基本定义与定理}
下面将介绍本文所依赖的一些基本定理和定义。
\begin{lemma}[Fubini] \label{lemma-Fubini}
这里是 Fubini 引理的具体内容。
\end{lemma}
\begin{theorem}[Lebesgue] \label{thm-Lebesgue}
这里是 Lebesgue 定理的具体内容。
\end{theorem}
\begin{corollary}[Fourier] \label{cor-Fourier}
这里是 Fourier 推论的具体内容。
\end{corollary}
\begin{proposition}[Cantor] \label{prop-Cantor}
这里是 Cantor 命题的具体内容。
\end{proposition}
\begin{definition}[Riemann] \label{def-Riemann}
这里是 Riemann 定义的具体内容。
\end{definition}
\begin{example}[Gauss] \label{exp-Gauss}
这里是 Gauss 示例的具体内容。
\end{example}
\begin{remark}[Kolmogorov] \label{rmk-Kolmogorov}
这里是 Kolmogorov 评注的具体内容。
\end{remark}
\begin{proof}
这里是证明过程。
\end{proof}
通过 \verb|\autoref| 命令可以方便地引用这些环境,例如:\autoref{thm-Lebesgue}, \autoref{lemma-Fubini}, \autoref{cor-Fourier}, \autoref{prop-Cantor}, \autoref{def-Riemann}, \autoref{exp-Gauss}, \autoref{rmk-Kolmogorov}。
\section{关键数学公式}
大写希腊字母默认为斜体,例如:
\begin{equation*}
\Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega.
\end{equation*}
公式按章节独立编号,便于引用。
\begin{equation} \label{eq-1}
\int_I \omega(x)\ dx = \upint_{a}^b f(x)\ dx - \lowint_a^b f(x)\ dx.
\end{equation}
引用上述公式:见\autoref{eq-1}。
模板可以区分两种不同的花体字母:\verb|\mathscr| 和 \verb|\mathcal|:
\begin{gather*}
\mathscr{A} \mathscr{B} \mathscr{C} \mathscr{D} \mathscr{E} \mathscr{F} \mathscr{G} \mathscr{H} \mathscr{I} \mathscr{J} \mathscr{K} \mathscr{L} \mathscr{M} \mathscr{N} \mathscr{O} \mathscr{P} \mathscr{Q} \mathscr{R} \mathscr{S} \mathscr{T} \mathscr{U} \mathscr{V} \mathscr{W} \mathscr{X} \mathscr{Y} \mathscr{Z}\\
\mathcal{A} \mathcal{B} \mathcal{C} \mathcal{D} \mathcal{E} \mathcal{F} \mathcal{G} \mathcal{H} \mathcal{I} \mathcal{J} \mathcal{K} \mathcal{L} \mathcal{M} \mathcal{N} \mathcal{O} \mathcal{P} \mathcal{Q} \mathcal{R} \mathcal{S} \mathcal{T} \mathcal{U} \mathcal{V} \mathcal{W} \mathcal{X} \mathcal{Y} \mathcal{Z}.
\end{gather*}
\chapter{核心算法与实现}
本章介绍本文提出的核心算法及其代码实现。
\section{算法描述}
算法的具体流程如\autoref{alg-algorithm} 所示。
\begin{algorithm}[H]
\caption{算法流程示例}
\label{alg-algorithm}
\KwIn{输入数据}
\KwOut{输出结果}
\tcc{这是一个C语言风格的注释}
\Repeat{$e < \tau$}{
$f_n\leftarrow Y_1$\;
$f_{n+1}\leftarrow f_n\times f_{n-1}$\;
$e\leftarrow \frac{f_n}{2}$\;
}
\KwRet{$e$}
\end{algorithm}
\section{代码实现示例}
下面是使用 C 语言实现的 "hello, world" 程序片段。
% \begin{minted}[bgcolor=gray!5!white, autogobble]{c}
% int main() {
% printf("hello, world");
% return 0;
% }
% \end{minted}
\begin{lstlisting}[
backgroundcolor=\color{gray!5!white},
basicstyle=\ttfamily\small,
breaklines=true,
frame=single,
rulecolor=\color{lightgray},
showstringspaces=false,
keywordstyle=\color{blue},
stringstyle=\color{purple},
commentstyle=\color{green!50!black},
language=C
]
int main() {
printf("hello, world");
return 0;
}
\end{lstlisting}
\chapter{实验结果与分析}
本章通过图表展示实验结果,并进行分析。
\section{插图示例}
\autoref{fig-1} 展示了并排插图的示例。
\begin{figure}[H]
\centering
\begin{subfigure}{0.45\linewidth}
\includegraphics[width=\linewidth]{example-image-a}
\caption{子图 a}
\end{subfigure}
\hfil
\begin{subfigure}{0.45\linewidth}
\includegraphics[width=\linewidth]{example-image-b}
\caption{子图 b}
\end{subfigure}
\caption{并排图片示例}\label{fig-1}
\end{figure}
\section{表格示例}
表格是展示结构化数据的有效方式。如\autoref{tab-1} 展示了一个标准的三线表。
\begin{table}[H]
\caption{标准三线表}\label{tab-1}
\centering
\begin{tblr}{llll}
\toprule
Alpha & Beta & Gamma & Delta \\
\midrule
Epsilon & Zeta & Eta & Theta \\
Iota & Kappa & Lambda & Mu \\
Nu & Xi & Omicron & Pi \\
\bottomrule
\end{tblr}
\end{table}
此外,我们还可以创建带有颜色的表格,如\autoref{tab-2} 所示。
\begin{table}[H]
\caption{彩色条纹表格}\label{tab-2}
\centering
\begin{tblr}{
row{odd} = {bg=azure8},
row{1} = {bg=azure3, fg=white, font=\sffamily},
}
Alpha & Beta & Gamma \\
Delta & Epsilon & Zeta \\
Eta & Theta & Iota \\
Kappa & Lambda & Mu \\
Nu Xi Omicron & Pi Rho Sigma & Tau Upsilon Phi \\
\end{tblr}
\end{table}
\section{参考文献的标注方法}
本模板的 BIB\TeX{} 数据库文件位于 \verb|sysuthesis-sample.bib|。参考文献的序号在正文中应为上标形式,并用方括号表示,如 \cite{Knuth1984}。每一条参考文献的著录均应以“.”结束。
下表展示了几种不同的引用命令及其效果。
\begin{table}[H]
\centering
\caption{引用命令与格式示例}
\label{tab-ref}
\begin{tblr}{ll}
\toprule
\LaTeX{} 命令 & 显示结果 \\
\midrule
\texttt{\backslash citep\{Knuth1984\}} & 数字标记法\citep{Knuth1984} \\
\texttt{\backslash cite\{Knuth1984\}} & 角注标记法\cite{Knuth1984} \\
% \texttt{\backslash parencite\{Knuth1984\}} & 数字标记法\parencite{Knuth1984} \\
\texttt{\backslash cite\{Knuth1986,Knuth1984\}} & 同时引用两篇文献\cite{Knuth1986,Knuth1984} \\
\texttt{\backslash cite\{Knuth1984,Knuth1986,Lamport1994\}} & 同时引用多篇文献\cite{Knuth1984,Knuth1986,Lamport1994} \\
\bottomrule
\end{tblr}
\end{table}
\appendix
\chapter{附录A}
这里是附录内容。可以放置一些补充材料。
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{example-image-a}
\caption{附录中的图片}
\end{figure}
\begin{acknowledgements}
这里是致谢内容。
\end{acknowledgements}
\end{document}