-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathcsuthesis_main.tex
146 lines (116 loc) · 4.8 KB
/
csuthesis_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
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 载入模版
%
% 载入csuthesis.cls文件定义的模板
% 支持选项,forprint(黑白打印模式)
% 载入主体内容样式与参考文献样式
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 选项
% type=[bachelor|research|translation], % 可选(默认:bachelor),论文类型(学位or课程/调研报告/文献翻译)
% output=[print|electronic], % 可选(默认:print),输出要求(电子版/打印)
\documentclass[type=bachelor, output=electronic, fontset=none]{csuthesis}
% 来自https://github.com/hushidong/biblatex-gb7714-2015
% 参考文献 gb7714-2015 支持宏包
% 使用了biblatex-gb7714-2015宏包,指定后端为biber
\usepackage[backend=biber,style=gb7714-2015,gbnamefmt=uppercase,gbpub=false,gbpunctin=false,gbalign=gb7714-2015]{biblatex}
% 重定义参考文献字体为楷体GB_2312 字号5号
\renewcommand{\bibfont}{\zihao{5} \kgb}
% 导入参考文献数据库
\addbibresource{csuthesis_main.bib}
% 按照章节(chapter)标注图片和表格序号,亦可根据需要改为section等
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
% 公式、图片、表格序号改成(1-1)的形式
% \renewcommand{\theequation}{\arabic{equation}}
% \renewcommand\thefigure{\arabic{figure}}
% \renewcommand\thetable{\arabic{table}}
\renewcommand\theequation{\arabic{chapter}-\arabic{equation}}
\renewcommand\thefigure{\arabic{chapter}-\arabic{figure}}
\renewcommand\thetable{\arabic{chapter}-\arabic{table}}
% 各级小标题前后间距:前后各一个字符,首行缩进俩字符
% \titlespacing{\section}{0pt}{2.5ex plus 1ex minus .2ex}{1.3ex plus .2ex}
% \titlespacing{\section}{2em}{*0.5}{*0.5}
% \titlespacing{\subsection}{2em}{*0}{*0}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 基本信息
%
% 用户自行输入标题、作者等基本信息
% 都存储在\content\info.tex文件中
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{content/info}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 封面绘制
%
% 1.5版本重新编写了封面绘制宏,并用latex使用者更习惯的
% \maketitle代替之前的\makecoverpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\maketitle
% 启用大罗马字母进行编号
\frontmatter
% 设置页眉和页脚
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 中文摘要
%
% 存储在\content\abstractzh.tex文件中
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{content/abstractzh}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 英文摘要
%
% 存储在\content\abstracten.tex文件中
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{content/abstracten}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 目录
%
% 使用重定义的tableofcontents宏绘制目录
% 满足学校的样式要求
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\tableofcontents
% 启用数字编号,改为第 x 页 共 x 页格式
\mainmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 正文
%
% 存储在\content\content.tex文件中
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 正文
\include{content/content}
% % 主文件有代码去掉页眉章节编号的“.”,但这会因为bug导致无编号章节显示一个错误编号,所以这里在无编号章节之前再次重定义sectionmark。
% \renewcommand{\sectionmark}[1]{\markright{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 致谢
%
% 存储在\content\acknowledgements.tex文件中
% 根据本科生院的要求,致谢应该在参考文献的前面,不编章号,而附录应该位于参考文献后。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{content/acknowledgements}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 参考文献
%
% 编译过程自动生成参考文献
% 根据学校要求文中引用的文献应依次编序,
% 其序号用方括号括起,如[5]、[6],置于右上角。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 由于参考文献不是chapter,这句把参考文献加入目录
% \addcontentsline{toc}{chapter}{参考文献}
\printbibliography
\newpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 附录部分
%
% 存储在\content\appendix.tex文件中
% 不宜收入正文中,又有价值的内容可编入毕业论文(设计)的附录中。
% 大号的设计图纸;篇幅较大的计算机程序(以研究软件程序
% 为主的毕业论文(设计)题目,其程序可作为正文的一部分);
% 过长的公式推演过程
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\appendix
\include{content/appendix}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 科研成果
%
% TODO: 硕士博士学位论文需添加
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}