This repository has been archived by the owner on Mar 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdlus-env.def
73 lines (64 loc) · 1.76 KB
/
dlus-env.def
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
\ProvidesFile{dlus-env.def}
%%定义摘要环境,将摘要放入toc中
\newcommand{\dlus@abstractname}[1]{\def\dlus@abstractname{#1}}
\dlus@abstractname{摘要}
\newenvironment{abstract}{
\cleardoublepage
\chapter*{\dlus@abstractname}
\addcontentsline{toc}{chapter}{\dlus@abstractname}
\markboth{\dlus@headerstyle 摘要}{}
}{
\clearpage
\thispagestyle{empty}
}
%%定义关键字
\newcommand{\keywords}[1]{
\vspace*{.5\baselineskip}
{\rmfamily \bfseries 关键字:} #1
}
%%英文摘要
\newenvironment{enabs}{
\cleardoublepage
\phantomsection
\chapter*{Abstract}
\addcontentsline{toc}{chapter}{Abstract}
\markboth{\dlus@headerstyle Abstract}{righthead}
}{
\clearpage
\thispagestyle{empty}
}
%%英文关键字
\newcommand{\keywordsen}[1]{
\vspace*{.5\baselineskip}
{\bfseries Keywords:} #1
}
%%重定义bibliography命令,放入toc中
\let\dlus@orig@bibliography\bibliography
\renewcommand{\bibliography}[1]{
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\bibname}
\dlus@orig@bibliography{#1}
}
%%致谢
\newenvironment{thanksto}{
\cleardoublepage
\phantomsection
\chapter*{致谢}
\addcontentsline{toc}{chapter}{致谢}
\markboth{\dlus@headerstyle 致谢}{}
}{}
\newenvironment{resume}{
\cleardoublepage
\phantomsection
\chapter*{作者简历及研究成果}
\addcontentsline{toc}{chapter}{作者简历及研究成果}
\markboth{\dlus@headerstyle 作者简历及研究成果}{}
}{}
\renewcommand{\frontmatter}{
\pagenumbering{Roman}
}
\renewcommand{\mainmatter}{
\cleardoublepage
\pagenumbering{arabic}
}