forked from xiaoxinganling/WHUExperiment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
137 lines (95 loc) · 4 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
% !Mode:: "TeX:UTF-8"
%% 请使用 XeLaTeX 编译本文.
\documentclass[forprint, AutoFakeBold, AutoFakeSlant ]{WHUExperiment}
%---------------------这里添加所需的命令--------------------------------
\lstdefinelanguage{json}{ % 定义json代码高亮
morestring=[d]",
stringstyle=\color{red!50!brown},
showstringspaces=false,
literate=
*{0}{{{\color{Gray}0}}}{1}
{1}{{{\color{Gray}1}}}{1}
{2}{{{\color{Gray}2}}}{1}
{3}{{{\color{Gray}3}}}{1}
{4}{{{\color{Gray}4}}}{1}
{5}{{{\color{Gray}5}}}{1}
{6}{{{\color{Gray}6}}}{1}
{7}{{{\color{Gray}7}}}{1}
{8}{{{\color{Gray}8}}}{1}
{9}{{{\color{Gray}9}}}{1}
{:}{{{\color{Purple}{:}}}}{1}
{,}{{{\color{Purple}{,}}}}{1}
{\{}{{{\color{BlueGreen}{\{}}}}{1}
{\}}{{{\color{BlueGreen}{\}}}}}{1}
{[}{{{\color{BlueGreen}{[}}}}{1}
{]}{{{\color{BlueGreen}{]}}}}{1},
}
%--------------------------------------------------------------------------
\makeatletter
\def\BState{\State\hskip-\ALG@thistlm}
\makeatother
\begin{document}
%-----------------------------------------------------------------------------
%%%%%%% 下面的内容, 据实填空.
\Ccoursename{XXX课程} %课程名称
\title{ ~\LaTeX~ 模板及使用教程\\Introduction of ~\LaTeX~ Template} %实验名称 换行请使用\\
\author{} % 学生姓名
\Csupervisor{XXXX \quad 教授} %指导教师一姓名、职称
% 默认不显示指导教师二,需要时可在WHUExperiment.cls 80+行处将"关闭第二指导教师显示"下一行的注释解除
\CsupervisorAnother{无} %指导教师二姓名、职称
\CstudentNum{XXXX} %学号
\Cmajor{XXXX} % 专业名称
\date{二〇二二年七月} % 日期
%-----------------------------------------------------------------------------
\pdfbookmark[0]{封面}{title} % 封面页加到 pdf 书签
\maketitle
\frontmatter
\pagenumbering{Roman} % 正文之前的页码用大写罗马字母编号.2019.6.16:更新 正文之前的页码隐藏,无需显示
%-----------------------------------------------------------------------------
\include{pages/frontmatter} % 加入摘要, 申明.
%==========================把目录加入到书签==============================%%%%%%
\tableofcontents
\thispagestyle{empty} %不显示罗马数字 ——zmx更新于2019.06.18
\addtocontents{toc}{\protect\thispagestyle{empty}}
\mainmatter %% 以下是正文
%%%%%%%%%%%%%%%%%%%%%%%%%%%--------main matter-------%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{plain}%plain
%\cfoot{\thepage{\zihao{5}\bf\usefonttimes}}
%\renewcommand{\baselinestretch}{1.6}
%\setlength{\baselineskip}{23pt}
\baselineskip=23pt % 正文行距为 23 磅
%此处书写正文-------------------------------------------------------------------------------------
\include{pages/chapter1.tex}
\include{pages/chapter2.tex}
\include{pages/chapter3.tex}
\include{pages/chapter4.tex}
\include{pages/chapter5.tex}
\include{pages/chapter6.tex}
\include{pages/chapter7.tex}
%此处结束正文-------------------------------------------------------------------------------------------------
\include{pages/backmatter} %%%结论
%%%============================================================================================================%%%
%%%=== 参考文献 ========%%%
\cleardoublepage\phantomsection
\bibliographystyle{gbt7714-numerical} % 参考文献样式, plain,unsrt,alpha,abbrv,chinesebst 等等
\bibliography{ref/refs.bib}
%%%-------------- 附录. 不需要可以删除.-----------
\appendix
\include{pages/appendix1}
\include{pages/appendix2}
%%%-------------- 教师评语评分 ------------------
\begin{teacher}
\thispagestyle{empty}
评语:
\par
\vspace*{12.5cm}
\hspace*{7.5cm}评分:
\vspace*{1cm}
\hspace*{7.3cm}评阅人:
\vspace*{0.5cm}
\hspace*{10.1cm}年\hspace*{1cm}月\hspace*{1cm}日
\vspace*{0.5cm}
{\songti \zihao{4} \makebox[1cm][s]{(备注:对该实验报告给予优点和不足的评价,并给出百分制评分。)}}
\end{teacher}
\cleardoublepage
\end{document}