forked from cliffwoo/LSP_CN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
153 lines (131 loc) · 4.97 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
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
147
148
149
150
151
152
153
% -*-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/Tricks,
% body/UpdateLog,
% body/ToTemplateMaintainers,
% body/copyright,
% body/conclusion,
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,
% appendix/Authorization,
% appendix/acknowledgements,
% appendix/Resume
}
\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/Introduction}
% \include{body/Tricks}
% \include{body/UpdateLog}
% \include{body/ToTemplateMaintainers}
% \include{body/copyright}
% \include{body/conclusion} % 结论
\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}
%参考文献
% \defaultfont
% \ifx\atempxetex\usewhat
% \bibliographystyle{chinesebst2005_UTF8}
% \else
% \bibliographystyle{chinesebst2005_UTF8}
% \fi
% \addcontentsline{toc}{chapter}{\hei \ReferenceCName} % 参考文献加入到中文目录
% \addcontentsline{toe}{chapter}{\bfseries \xiaosi \ReferenceEName} % 参考文献加入到英文目录
% \addtolength{\bibsep}{-0.8 em} \nocite{*}
% \bibliography{reference/reference}
%\addtocontents{fen}{\protect\vskip1\baselineskip}
%\addtocontents{ten}{\protect\vskip1\baselineskip}
%英文图形和表格索引里加入空白行,通常放在 \include{appendix/appA}% 附录A之前。
%区分开正文和附录的图形和表格,一般没有这个必要。
\include{appendix/appA} % 附录A
\include{appendix/bibliography} % 参考文献
% \include{appendix/publications} % 所发文章
% \include{appendix/Authorization} % 承诺
% \include{appendix/acknowledgements}% 致谢
% \include{appendix/Resume} % 个人简历
\clearpage
\ifx\atempxetex\usewhat\else
\end{CJK*}
\fi
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End: