-
Notifications
You must be signed in to change notification settings - Fork 14
/
main.tex
executable file
·51 lines (41 loc) · 1.7 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
% !Mode:: "TeX:UTF-8"
% !TEX program = xelatex
\def\usewhat{xelatex}
\documentclass[12pt,openany,oneside]{ctexbook}
\usepackage{anyfontsize}
% 本科生毕业论文通常采用单页排版
\input{setup/package} % 定义本文所使用宏包
\graphicspath{figures/} % 定义所有的图像文件在 figures 子目录下
\begin{document} % 开始全文
\input{setup/format} % 完成对论文各个部分格式的设置
\frontmatter % 以下是论文导言部分,包括论文的封面,中英文摘要和中文目录
\fancypagestyle{plain}{
\fancyhf{}
\renewcommand{\headrulewidth}{0 pt}
\fancyfoot[C]{\song\xiaowu~\thepage~}
}
%%%%%%%%%% 封面 %%%%%%%%%%
\include{include/cover}
%%%%%%%%%% 任务书 %%%%%%%%%%
\includepdf[pages=-]{include/task.pdf}
%%%%%%%%%% 开题报告 %%%%%%%%%%
\includepdf[pages=-]{include/open.pdf}
%%%%%%%%%% 摘要 %%%%%%%%%%
\include{include/abstract}
\setcounter{page}{1} % 单独从 1 开始编页码
%\pagenumbering{arabic}
%%%%%%%%%% 目录 %%%%%%%%%%
\makecontents
\setcounter{page}{1} % 单独从 1 开始编页码
%%%%%%%%%% 正文 %%%%%%%%%%
\titleformat{\chapter}{\centering\xiaosan\hei}{\chaptername}{2em}{} % "第~章"小三号黑体居中
\include{include/body}
%%%%%%%%%% 参考文献 %%%%%%%%%%
\makereferences
%%%%%%%%%% 附录 %%%%%%%%%%
\titleformat{\chapter}{\centering\sihao\hei}{\chaptername}{2em}{} % 标题四号黑体居中
\include{appendix/paperInEnglish} % 外文资料
\include{appendix/paperInChinese} % 中文译文
\include{appendix/acknowledgements} % 致谢
\clearpage
\end{document} % 结束全文