-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtexfinal.tex
154 lines (142 loc) · 5.28 KB
/
texfinal.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
154
\documentclass[a4paper,cs4size,adobefonts,fancyhdr]{ctexbook}[2005/11/25]
\usepackage[
left=2.7cm,
right=2.7cm,
top=3.5cm,
bottom=2.6cm]{geometry}
%-------------------------------------------------------------------------
\usepackage{fancyhdr}
\usepackage[numbers,sort&compress]{natbib} % bibtex 自然序号
% \usepackage{hypernat}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[EC,OC]{\zihao{-5}北京化工大学毕业设计(论文)}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}
\newcommand{\upcite}[1]{\textsuperscript{\textsuperscript{\cite{#1}}}}
%-------------------------------------------------------------------------
\newCJKfontfamily[shusong]\shusong{方正书宋_GBK}
\newCJKfontfamily[biaosong]\biaosong{方正小标宋_GBK}
\CTEXsetup[format={\centering\zihao{-3}\biaosong},name={第,节}]{section}
\CTEXsetup[format={\biaosong\zihao{-4}}]{subsection}
\CTEXsetup[format={\biaosong\zihao{-4}}]{subsubsection}
% \CTEXsetup[format+={\zihao{-3}}]{chapter}
\CTEXsetup[nameformat={\biaosong\zihao{3}}]{chapter}
\CTEXsetup[titleformat={\biaosong\zihao{3}}]{chapter}
\CTEXoptions[contentsname={目\qquad 录}]
% \newfontinstance\biaosong{方正大标宋简体}
%-------------------------------------------------------------------------
\usepackage{mdwlist}
\usepackage{sistyle}
\usepackage{graphicx}
\usepackage{tabularx}
% \usepackage{longtable}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{cases}
\usepackage{tikz}
% \usepackage{wrapfig}
\usepackage{floatflt}
\usepackage{yhmath}
\usepackage[normalem]{ulem}
\usepackage{paralist}
\usepackage{floatrow}
\usepackage{subfig}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage[labelsep=quad]{caption}
%\usepackage{mathptmx}
\floatsetup[table]{capposition=top} % floatrow宏包将表格的标题置于表格下方,这条命令把这样的设置更改.
%上标定义-----------------------------------------------------------------------------
\makeatletter
% \def\@cite#1#2{\textsuperscript{[{#1\if@tempswa , #2\fi}]}}
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
\newcommand{\dif}{\mathrm{d}}
\makeatother
\newtheorem{Definition}{定义}[section]
\newtheorem{Theorem}[Definition]{定理}
%------------------------------------------------------------------------------------
\newenvironment{paralist}{\begin{quote} \begin{description}\setlength{\itemsep}{0em}}
{\end{description}\end{quote}\par}
\newcommand*{\me}{\ensuremath{\mathrm{e}}} %自然对数的底
\newcommand*{\mi}{\ensuremath{\mathrm{i}}} %虚数单位
%\newcommand*{\dif}{\ensuremath{\mathrm{d}}} %微分算子
\usepackage{listings}
\usepackage{xcolor}
\lstset{numbers=none,
numberstyle=\scriptsize,
% frame=none,
backgroundcolor=\color{lightgray},
flexiblecolumns=false,
language=Python,
basicstyle=\ttfamily,
breaklines=true,
extendedchars=true,
escapechar=\%,
texcl=true,
showstringspaces=true,
tabsize=4,
aboveskip=1em
%xleftmargin=2em,xrightmargin=2em, aboveskip=1em
}
\renewcommand{\lstlistingname}{代码}%
%出版物自定义
\newcounter{pubctr} %自定义新计数器
\newenvironment{publist}{%%%%%定义新环境
\begin{list}{[\arabic{pubctr}]} %%标签格式
{
\usecounter{pubctr}
\setlength{\leftmargin}{2.5em} % 左边界 \leftmargin =\itemindent + \labelwidth + \labelsep
\setlength{\itemindent}{0em} % 标号缩进量
\setlength{\labelsep}{1em} % 标号和列表项之间的距离,默认0.5em
\setlength{\rightmargin}{0em} % 右边界
\setlength{\topsep}{0ex} % 列表到上下文的垂直距离
\setlength{\parsep}{0ex} % 段落间距
\setlength{\itemsep}{0ex} % 标签间距
\setlength{\listparindent}{0pt} % 段落缩进量
}}
{\end{list}}
\begin{document}
\setlength{\baselineskip}{22pt}
\input{front.tex}
\clearpage{\pagestyle{empty}\cleardoublepage}
\begin{titlepage}
\input{cxsm.tex}
\clearpage{\pagestyle{empty}\cleardoublepage}
\input{rws.tex}
\end{titlepage}
\clearpage{\pagestyle{empty}\cleardoublepage}
\frontmatter
\pagenumbering{Roman}
\input{zy.tex}
\clearpage{\pagestyle{empty}\cleardoublepage}
\tableofcontents
\clearpage{\pagestyle{empty}\cleardoublepage}
\input{perface.tex}
\clearpage{\pagestyle{empty}\cleardoublepage}
\mainmatter
\CTEXsetup[beforeskip={10pt}]{chapter}
\fancypagestyle{plain}{\fancyhf{}\fancyhead[EC,OC]{\zihao{-5}北京化工大学毕业设计(论文)}\fancyfoot[C]{\thepage}}
\input{chap_01.tex}
\clearpage{\pagestyle{empty}\cleardoublepage}
\input{chap_02.tex}
\clearpage{\pagestyle{empty}\cleardoublepage}
\input{chap_03.tex}
\clearpage{\pagestyle{empty}\cleardoublepage}
\input{chap_04.tex}
\clearpage{\pagestyle{empty}\cleardoublepage}
\input{simulink.tex}
\clearpage{\pagestyle{empty}\cleardoublepage}
\input{conclusion.tex}
\clearpage{\pagestyle{empty}\cleardoublepage}
\backmatter
\nocite{*}
\clearpage
\addcontentsline{toc}{chapter}{参考文献}
\bibliographystyle{ref/GBT7714-2005NLang-HIT}
% \setlength{\bibhang}{-2em}
% \renewcommand{\bibnumfmt}[1]{\qquad[#1]}
\bibliography{ref/ref}
\input{thanks.tex}
\end{document}