-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
121 lines (98 loc) · 3.17 KB
/
main.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
%!TeX program = xelatex
% Note: This line can't be removed if you are using latexmk as compile
% Compile with: xelatex -> biber -> xelatex -> xelatex
% Author: JC Zhang
% Acknowledgement: BIT
% DUT!
\documentclass[UTF8,AutoFakeBold=3,AutoFakeSlant,zihao=-4]{ctexart}
\usepackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm,includeheadfoot]{geometry}
\usepackage{fontspec}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{pdfpages}
\usepackage{setspace}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{caption}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{float}
\usepackage{tabularx}
% 设置参考文献编译后端为 biber,引用格式为 GB/T7714-2015 格式
% 参考文献使用宏包见 https://github.com/hushidong/biblatex-gb7714-2015
\usepackage{biblatex}
% \usepackage[style=gb7714-2015,backend=biber]{biblatex}
% 参考文献引用文件 refs.bib
\addbibresource{misc/refs.bib}
\newcommand{\id}{}
\newcommand{\name}{}
\newcommand{\level}{}
\newcommand{\reposName}{}
\newcommand{\type}{}
\newcommand{\mentor}{}
\newcommand{\dept}{}
\newcommand{\datenow}{}
% % 定义 caption 字体为楷体
% \DeclareCaptionFont{kaiticaption}{\kaishu \normalsize}
%
% % 设置图片的 caption 格式
% \renewcommand{\thefigure}{\thesection-\arabic{figure}}
% \captionsetup[figure]{font=small,labelsep=space,skip=10bp,labelfont=bf,font=kaiticaption}
%
% % 设置表格的 caption 格式
% \renewcommand{\thetable}{\thesection-\arabic{table}}
% \captionsetup[table]{font=small,labelsep=space,skip=10bp,labelfont=bf,font=kaiticaption}
% \CTEXoptions[today=small]
% 将西文字体设置为 Times New Roman
\setromanfont{Times New Roman}
%% 将中文楷体设置为 SIMKAI.TTF(如果需要)
% \setCJKfamilyfont{zhkai}{[SIMKAI.TTF]}
% \newcommand*{\kaiti}{\CJKfamily{zhkai}}
% 设置文档标题深度
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
%%
% 设置一级标题、二级标题格式
% 一级标题:小三,宋体,加粗,段前段后各半行
\ctexset{section={
format={\raggedright \bfseries \songti \zihao{-3}},
beforeskip = 24bp plus 1ex minus .2ex,
afterskip = 24bp plus .2ex,
fixskip = true,
number={\chinese{section}},
name = {,.}
}
}
% 二级标题:小四,宋体,加粗,段前段后各半行
\ctexset{subsection={
format = {\songti \raggedright \zihao{4}},
beforeskip =24bp plus 1ex minus .2ex,
afterskip = 24bp plus .2ex,
fixskip = true,
name={(,)},
number={\chinese{subsection}}
}
}
% \CTEXsetup[name={,、}, number={\chinese{section}}]{section}
% \CTEXsetup[name={(,)}, number={\chinese{subsection}}]{subsection}
\begin{document}
\input{misc/front.tex}
\pagestyle{fancy}
%
% \fancyhf{}
% \fancyhead[R]{\fontsize{10.5pt}{10.5pt}\selectfont{大连理工大学大学生创新创业训练计划}}
% \fancyfoot[R]{\fontsize{9pt}{9pt}\selectfont{\thepage}}
% \renewcommand{\headrulewidth}{1pt}
% \renewcommand{\footrulewidth}{0pt}
\fancyhead{}
\fancyfoot{}
% 正文 20 磅的行距,段前段后间距为 0
\setlength{\baselineskip}{20pt}
% 正文首行悬挂 1.02cm
\setlength{\parindent}{2em}
\section{研究动机}
\section{参考文献}
\printbibliography[heading=none]
\end{document}