-
Notifications
You must be signed in to change notification settings - Fork 448
Expand file tree
/
Copy pathustcsetup.tex
More file actions
110 lines (90 loc) · 2.77 KB
/
Copy pathustcsetup.tex
File metadata and controls
110 lines (90 loc) · 2.77 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
% !TEX root = ./main.tex
\ustcsetup{
title = {学位论文模板示例文档 v\ustcthesisversion},
title* = {Sample Document for Thesis Template v\ustcthesisversion},
author = {李泽平},
student-id = {学号},
discipline = {学科专业},
supervisor = {洪专~教授, 李实~教授},
% date = {2026-06-09}, % 提交日期,默认为今日
%
% 研究生需要填写
% practice-supervisor = {洪专~教授, 李实~教授}, % 工程/专业类学位的实践导师
clc = {P185.3}, % 中图分类号,参考 https://www.clcindex.com/category/
udc = {550.3}, % UDC 分类号,参考 https://udcsummary.info/php/index.php?lang=chi
department = {院系},
research-direction = {研究方向},
%
% secret-level = {秘密}, % 绝密|机密|秘密|控阅,注释本行则公开
% secret-year = {10}, % 保密/控阅期限
%
% 数学字体
% math-style = GB, % 可选:GB, TeX, ISO
math-font = xits, % 可选:stix, xits, libertinus
}
% 加载宏包
% 定理类环境宏包
\usepackage{amsthm}
% 插图
\usepackage{graphicx}
% 英文图题、表题
\usepackage{bicaption}
% 分图
\usepackage{subcaption}
% 三线表
\usepackage{booktabs}
% 表注
\usepackage{threeparttable}
% 跨页表格
\usepackage{longtable}
% 算法
\usepackage{algorithm}
\usepackage{algorithmic}
% SI 量和单位
\usepackage{siunitx}
% 参考文献使用 BibTeX + natbib 宏包
% 顺序编码制
\usepackage[sort]{natbib}
\bibliographystyle{ustcthesis-numeric}
% 著者-出版年制
% \usepackage{natbib}
% \bibliographystyle{ustcthesis-authoryear}
% 参考文献使用 BibLaTeX 宏包
% \usepackage[style=ustcthesis-numeric]{biblatex}
% \usepackage[style=ustcthesis-numeric, inline=true]{biblatex}
% \usepackage[style=ustcthesis-authoryear]{biblatex}
% 声明 .bib 数据库
\addbibresource{references.bib}
% 配置图片的默认目录
\graphicspath{{figures/}}
% 数学命令
\ExplSyntaxOn
\NewDocumentCommand \dif {} % 微分符号
{
\mathop { } \!
\str_if_eq:VnTF \l__ustc_math_style_str { TeX }
{ d }
{ \mathrm { d } }
}
% Euler's number or upright e
\NewDocumentCommand \eu {}
{
\str_if_eq:VnTF \l__ustc_math_style_str { TeX }
{ e }
{ \symup { e } }
}
% Imaginary unit or upright i
\NewDocumentCommand \iu {}
{
\str_if_eq:VnTF \l__ustc_math_style_str { TeX }
{ i }
{ \symup { i } }
}
\ExplSyntaxOff
% 用于写文档的命令
\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}
\DeclareRobustCommand\env[1]{\texttt{#1}}
\DeclareRobustCommand\pkg[1]{\textsf{#1}}
\DeclareRobustCommand\file[1]{\nolinkurl{#1}}
% hyperref 宏包在最后调用
\usepackage{hyperref}