-
Notifications
You must be signed in to change notification settings - Fork 26
/
main.tex
118 lines (98 loc) · 3.56 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
% -*-coding: utf-8 -*-
\def\usewhat{xelatex} % 你喜欢哪种编译方式,pdflatex dvipdfmx dvipspdf xelatex yap
%定义xelatex的中间临时变量,若\usewhat为xelatex时,后面执行xelatx的相关选项
\def\atempxetex{xelatex} %这一项无需改动
%input "reference\reference.bib" %for winedt users
\def\version{1.9.2.20090324} % 该变量仅用于模板文件的版本号控制,新的论文规范从1.9开始;
\def \xuewei {Doctor} % 定义学位 博士
%\def \xuewei {Master} % 硕士
\def\oneortwoside{twoside} %定义单双面打印,只对硕士学位论文有效;
%\def\oneortwoside{oneside} % 硕士单面打印
\def\xueke{Engineering} % 定义学科 工学
%\def\xueke{Science} % 理学
%\def\xueke{Management} % 管理学
%\def\xueke{Arts} % 艺术学
\input{setup/type.tex} % 硕博类型
%下面的book选项中可以使用 draft 选项,使插入的图形只显示外框,以加快预览速度。
\documentclass[12pt,a4paper,openany,\oneortwoside]{book}
\input{setup/package.tex} % 引用的宏包
% 论文包含的内容
\includeonly{
body/Preface,
body/Copyright,
body/Ch1,
body/Ch2,
body/Ch3,
body/Ch4,
body/Ch5,
body/Ch6,
body/Ch7,
body/Ch8,
body/Ch9,
body/Ch10,
appendix/appA,
appendix/bibliography,
}
\graphicspath{{figures/}} %定义所有的eps文件在 figures 子目录下
\begin{document}
\ifx\atempxetex\usewhat\else
\begin{CJK*}{UTF8}{song}
\fi
\input{setup/Definition} % 文本格式定义
\input{setup/format}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 正文部分
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
\sloppy % 解决中英文混排的断行问题,会加入间距,但不会影响断行
\input{preface/cover} % 封面
\include{body/Preface}
\include{body/Copyright}
%% 中英目录
\renewcommand{\baselinestretch}{1}
\fontsize{12pt}{12pt}\selectfont
\clearpage{\pagestyle{empty}\cleardoublepage}
\pdfbookmark[0]{目~~~~录}{mulu}
\tableofcontents % 中文目录
\ifxueweidoctor % 英文目录右开
\clearpage{\pagestyle{empty}\cleardoublepage}
\else%
\ifoneortwoside\clearpage{\pagestyle{empty}\cleardoublepage}\fi
\fi
\renewcommand{\baselinestretch}{1.3}
\fontsize{12pt}{12pt}\selectfont
% \ifxueweidoctor %硕士学位论文没有英文目录
% \tableofengcontents % 英文目录
% \fi
% \input{setup/figtab.tex} %图表索引, 如果不需要图表索引,注释掉这一句即可;
% % \notation %主要符号表
% \addtocontents{toc}{\protect\vskip1\baselineskip} % 中文目录增加空行
% \addtocontents{toe}{\protect\vskip1\baselineskip} % 英文目录增加空行
% \ifxueweidoctor
% \clearpage{\pagestyle{empty}\cleardoublepage} % 清除目录后面空页的页眉和页脚
% \else%
% \ifoneortwoside\clearpage{\pagestyle{empty}\cleardoublepage}\fi % 清除目录后面空页的页眉和页脚
% \fi % 第一章是否右开
\mainmatter
\defaultfont % 对应于小四的标准字号为12pt, 可以在正文中用此命令修改所需要字体的的大小
\include{body/Ch1}
\include{body/Ch2}
\include{body/Ch3}
\include{body/Ch4}
\include{body/Ch5}
\include{body/Ch6}
\include{body/Ch7}
\include{body/Ch8}
\include{body/Ch9}
\include{body/Ch10}
\include{appendix/appA} % 附录A
\include{appendix/bibliography} % 参考文献
\clearpage
\ifx\atempxetex\usewhat\else
\end{CJK*}
\fi
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: