-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmain.tex
72 lines (58 loc) · 3.02 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
%%%%%%%%%% !TEX program = pdflatex %%%%%%%%%%
% !TEX program = pdflatex
\documentclass[a4paper,12pt,openany,twoside]{book}
% 当目录多于1页时,使用\thispagestyle{empty}和\pagestyle{empty},都无法完全清除目录的页眉页脚格式,需要使用到下面的\AtBeginDocument{}代码
\AtBeginDocument{
\addtocontents{toc}{\protect\thispagestyle{empty}}%
\addtocontents{lof}{\protect\thispagestyle{empty}}%
}
% 如果论文超过60页 可以使用twoside 双面打印
\input{setup/package} % 定义本文所使用宏包
\graphicspath{{figures/}} % 定义所有的.eps文件在figures子目录下
\begin{document} % 开始全文
\begin{CJK*}{UTF8}{song} % 开始中文字体使用
\input{setup/format} % 完成对论文各个部分格式的设置
\frontmatter % 以下是论文导言部分,包括论文的封面,中英文摘要和中文目录
\clearpage
\input{data/cover} % 封面
% \input{data/copyright} 与 \includepdf{data/copyright.pdf} 二选一
%\input{data/copyright} % 诚信说明
\includepdf{data/copyright.pdf} % 使用pdf文件替换原有的诚信声明data/copyright
\input{data/cnabstract} % 中文摘要
\input{data/enabstract} % 英文摘要
\clearpage
\pagestyle{empty} % modified by Jon: 去掉页眉页脚
% 目录
\renewcommand{\contentsname}{\erhao\song\bfseries\hspace*{\fill}目\quad 录\hspace*{\fill}} % 设置“目录”二字的格式
\tableofcontents % 中文目录
\clearpage
\cleardoublepage
% 正文部分
\defaultfont
\pagestyle{plain}
\mainmatter\sloppy\raggedbottom
%\renewcommand{\ALC@linenosize}{\xiaosi}
\renewcommand\arraystretch{1.5}
\setlength{\intextsep}{2pt}
\setlength{\abovecaptionskip}{2pt}
\setlength{\belowcaptionskip}{2pt}
% 内容比较多的时候,编译速度较慢,可以将不同章节放在不同文件中,注释掉其他章节,只编译正在撰写的章节,以提升编译速度
\include{data/intros}
\include{data/chapter2}
\include{data/chapter3}
\include{data/conclusion}
% 参考文献
% 若是要对参考文献进行重新编译,需要先使用clean.bat或是clean.sh清除辅助文件
\defaultfont
\bibliographystyle{HNUThesis}
\phantomsection
\addcontentsline{toc}{chapter}{参考文献} % 参考文献加入到中文目录
%\nocite{*} % 若将此命令屏蔽掉,则未引用的文献不会出现在文后的参考文献中。
\bibliography{references}
\renewcommand\thefigure{A.\arabic{figure}} % 将附录中的图像的id的章节num设置为A
\include{data/appendix} % 附录
\include{data/acknowledgements} % 致谢
\include{data/publications} % 研究成果
\clearpage
\end{CJK*} % 结束中文字体使用
\end{document} % 结束全文