-
Notifications
You must be signed in to change notification settings - Fork 24
/
jlutex_bak.cls
551 lines (519 loc) · 19.2 KB
/
jlutex_bak.cls
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
% Jilin University dissertation document class
% This work is based on pkuthss (LaTeX template for dissertations in Peking University)
%
% Copyright (c) 2008-2009 solvethis
% Copyright (c) 2010-2018 Casper Ti. Vector
% Copyright (c) 2020-2021 jiafeng5513
%
% This work may be distributed and/or modified under the conditions of the
% LaTeX Project Public License, either version 1.3 of this license or (at
% your option) any later version.
% The latest version of this license is in
% https://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX version
% 2005/12/01 or later.
%
%
% This work consists of the following files:
% jlutex.cls
% jlu.png
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{jlutex}[2020/02/02 v0.0.1 Jilin University dissertation document class]
% eg. `\jlu@int@boolopt{spacing}{true}' will expand to:
% \newif\ifjlu@opt@spacing \jlu@opt@spacingtrue
% \DeclareOption{spacing}{\jlu@opt@spacingtrue}
% \DeclareOption{nospacing}{\jlu@opt@spacingfalse}
\def\jlu@int@boolopt#1#2{
\expandafter\newif\csname ifjlu@opt@#1\endcsname
\@nameuse{jlu@opt@#1#2}
\DeclareOption{#1}{\@nameuse{jlu@opt@#1true}}
\DeclareOption{no#1}{\@nameuse{jlu@opt@#1false}}
}
% 处理文字编码
\newif\ifjlu@opt@gbk \jlu@opt@gbktrue
\DeclareOption{GBK}{\jlu@opt@gbktrue\PassOptionsToClass{GBK}{ctexbook}}
\DeclareOption{UTF8}{\jlu@opt@gbkfalse\PassOptionsToClass{UTF8}{ctexbook}}
%==============================================================
%= 定义一些布尔变量作用开关 =
%==============================================================
% 是否在标题标记中启用“\Uppercase”(有问题)。
\jlu@int@boolopt{uppermark}{false}
% 是否按学校规定修改字体。
\jlu@int@boolopt{pkufont}{true}
% 是否按学校规定修改脚注格式。
\jlu@int@boolopt{pkufoot}{true}
% 是否按学校规定调整间距。
\jlu@int@boolopt{pkuspace}{true}
% 是否使用一些常用设置来调整间距。
\jlu@int@boolopt{spacing}{true}
% 为目录添加PDF书签。
\jlu@int@boolopt{pdftoc}{true}
% 是否允许 `\spacialchap' 命令
\jlu@int@boolopt{spechap}{true}
% 是否自动为用户生成的PDF设置属性
% defined document information (author, title, etc.).
\jlu@int@boolopt{pdfprop}{true}
% 是否禁用一些旨在使样式不那么难看的违规。
\jlu@int@boolopt{ugly}{false}
% Pass all other options to `ctexbook' document class.
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}}
% Process all class options now.
\ProcessOptions\relax
% 防止fontspec(由xeCJK加载)干扰newtxpath。
\ifjlu@opt@pkufont
\PassOptionsToPackage{no-math}{fontspec}
\fi
% 解决 `\lvert already defined' error. cf. <https://github.com/CTeX-org/ctex-kit/issues/454>.
\ifjlu@opt@pkufont
\RequirePackage{amsmath}
\fi
% jlutex is 基于ctexbook; 默认字号是小四
\LoadClass[zihao = -4]{ctexbook}[2014/03/06]
%==============================================================
%= 加载Package =
%==============================================================
% 提供if语句,ctex 2.x no longer loads ifpdf and ifxetex by itself.
\RequirePackage{ifpdf, ifxetex}
% 提供`key = val',用于给变量赋值
\RequirePackage{keyval}
% Graphics support.
\RequirePackage{graphicx}[1999/02/16]
% 提供页面尺寸设置功能
\RequirePackage{geometry}
% 提供页眉页脚脚注的支持
\RequirePackage{fancyhdr}
% 提供封面标题中的 `\uline'
\RequirePackage{ulem}
% `\AtEndOfClass' used to avoid `PDF destination not defined' with setspace.
\AtEndOfClass{\RequirePackage{hyperref}}
%两端对齐
\RequirePackage{ragged2e}
% 提供调整字间距的
\RequirePackage{letterspace}
% 使生成的pdf在复制文字时不乱码,可直接用于查重
\RequirePackage{cmap}
%==============================================================
%= 根据条件启动相应的功能 =
%==============================================================
\ifjlu@opt@gbk
%\input{jlutex-gbk.def}
\ifxetex
% No support for XeLaTeX compilation in non-unicode encoding, i.e. GBK.
\ClassError{jlutex}%
{XeLaTeX compilation is not supported without UTF-8}%
{%
XeLaTeX compilation without UTF-8 is very problematic.\MessageBreak
Therefore please use UTF-8 encoding for the LaTeX code.%
}
\fi
\else
%\input{jlutex-utf8.def}
\fi
\ifjlu@opt@pkufont
% Use Times New Roman / Arial according to school regulation.
% Option used to prevent newtxtext from manipulating footnote marks.
\RequirePackage[defaultsups]{newtxtext}
\RequirePackage[cmintegrals, varg]{newtxmath}
\else
% Provides `\Box' for originauth.tex if newtx is absent.
\RequirePackage{latexsym}
\fi
\ifjlu@opt@pkufoot
% Handle the `Unparsed material' issue with latex/dvipdfmx compilation.
\unless\ifxetex\unless\ifpdf
\newcommand*\pgfsysdriver{pgfsys-dvipdfm.def}
\fi\fi
% Circled text, cf. <https://tex.stackexchange.com/questions/7032/>.
\RequirePackage{tikz}
\newcommand*\jlu@int@circled[1]{%
\scalebox{0.8}{\tikz[baseline = (char.base)]{
\node[
shape = circle, draw = black, minimum size = 1.25em, inner sep = 0pt
] (char) {#1};
}}%
}
% 使用带圆圈的数字作为脚注符号。 不影响标题页,但脚注很少用于论文封面
\renewcommand*{\thefootnote}%
{\protect\jlu@int@circled{\arabic{footnote}}}
% Provides utility to modify footnote spacing.
% Option used to make sure it does not render interleaf pages totally blank.
\RequirePackage[cleardoublepage = current]{scrextend}
% Set up footnote spacing: whole paragraph indent 2 ccwd, 0.5 ccwd after mark.
\deffootnote{2\ccwd}{0pt}{\thefootnotemark\hspace{0.5\ccwd}}
\fi
\ifjlu@opt@pkuspace
% lineskip / baselineskip = 20 bp / (12 bp * (6 / 5)).
\linespread{1.39}\selectfont
% Provides utilities for setting TOC format; `titles' applied to avoid
% interfering with LaTeX's own title mechanism.
%\RequirePackage[titles]{tocloft}
\RequirePackage[subfigure,titles]{tocloft}
\setlength{\cftbeforechapskip}{6bp plus 1bp}
\setlength{\cftsecindent}{\ccwd}
\setlength{\cftsubsecindent}{2\ccwd}
\setlength{\cftsubsubsecindent}{4\ccwd}
% `caption' modifies font size and separator of captions. `subcaption'
% provides functions similar to `subfigure'/`subfig' but does not clash with
% `tocloft'; it clashes with `subfigure'/`subfig', but the error message will
% say they cannot be used simultaneously.
\RequirePackage{caption, subcaption}
\DeclareCaptionFont{cfive}{\sffamily\zihao{5}}
\DeclareCaptionLabelSeparator{quad}{\quad}
\captionsetup{font = cfive, labelsep = quad}
\fi
\ifjlu@opt@spacing
% Make spacing nicer in some situations (eg. footnotes and verbatims).
\RequirePackage{setspace}
% Remove superfluous spacing between footnotes.
\setlength{\footnotesep}{0pt}
% Lists often appear to be too sparse when items are just one or two lines
% long. Here we cancel the extra vertical spacing between list items.
% The list margin is adjusted due to Chinese typesetting traditions.
\RequirePackage{enumitem}
\setlist{nolistsep, leftmargin = 1.5\parindent}
\fi
\ifjlu@opt@spechap
% This command is used to start a chapter without numbering, and correctly set
% up the headers and footers in the chapter.
\newcommand{\specialchap}[1]{%
\chapter*{#1}\addcontentsline{toc}{chapter}{#1}
\markboth{#1}{}\phantomsection%
}
\fi
\AtBeginDocument{
% Set up spacing for displayed formulae.
\setlength{\abovedisplayskip}{\belowdisplayshortskip}
\setlength{\belowdisplayskip}{\abovedisplayskip}
\ifjlu@opt@pdftoc
% Add PDF bookmark for table of contents.
\let\jlu@tmp@tableofcontents\tableofcontents
\renewcommand{\tableofcontents}{%
\jlu@int@pdfmark{\contentsname}{contents}
\jlu@tmp@tableofcontents%
\thispagestyle{myheading}
}
\fi
\addtocontents{toc}{\protect\thispagestyle{myheading}}{}
\ifjlu@opt@pdfprop
% Automatically generate properties for generated PDF.
% Use English properties to avoid problems with character encodings.
\newcommand*{\setpdfproperties}{%
\hypersetup{
pdfauthor = {\@eauthor}, pdftitle = {\@etitle},
pdfsubject = {JLU\ \ethesisname}, pdfkeywords = {\@ekeywords}
}%
}
% Set up the properties when generating the title page because the document
% information should have been all defined before this.
\let\jlu@tmp@maketitle\maketitle
% NOTE: `\hypersetup' must appear before `\maketitle', otherwise it might
% not act as expected.
\renewcommand{\maketitle}{\setpdfproperties\jlu@tmp@maketitle}
\fi
}
% eg. `\jlu@int@infoitema{ctitle}' will expand to:
% \def\ctitle#1{\def\@ctitle{#1}}
% \define@key{jlu@info}{ctitle}{\ctitle{#1}}
\def\jlu@int@infoitema#1{
\@namedef{#1}##1{\@namedef{@#1}{##1}}
\define@key{jlu@info}{#1}{\@nameuse{#1}{##1}}
}
% eg. `\jlu@int@infoitemb{cuniversity}' will expand to:
% \define@key{jlu@info}{cuniversity}{\def\cuniversity{#1}}
\def\jlu@int@infoitemb#1{
\define@key{jlu@info}{#1}{\@namedef{#1}{##1}}
}
% Set up document information entries.
\jlu@int@infoitema{ctitle} %论文的中文标题
\jlu@int@infoitema{etitle} %论文的英文标题
\jlu@int@infoitema{cauthor} %作者中文姓名
\jlu@int@infoitema{eauthor} %作者英文姓名
\jlu@int@infoitema{studentid} %学号
\jlu@int@infoitema{date} %日期
\jlu@int@infoitema{school} %学院
\jlu@int@infoitema{cmajor} %专业中文
\jlu@int@infoitema{emajor} %专业英文
\jlu@int@infoitema{direction} %研究方向
\jlu@int@infoitema{cmentor} %导师中文姓名
\jlu@int@infoitema{ementor} %导师英文姓名
\jlu@int@infoitema{ckeywords} %中文关键词
\jlu@int@infoitema{ekeywords} %英文关键词
\jlu@int@infoitema{cnumber} %分类号
\jlu@int@infoitema{UnitCode} %单位代码
\jlu@int@infoitema{level} %论文级别 (硕士/博士)
\jlu@int@infoitema{DegreeCategory} %学位类别 (学术硕士/专业硕士/博士)
\jlu@int@infoitema{address} %住址邮编
\jlu@int@infoitema{telephone} %电话号码
\jlu@int@infoitema{securitylevel} %保密等级
\jlu@int@infoitemb{cuniversity} %学校中文名 (define in *.def file)
\jlu@int@infoitemb{euniversity} %学校英文名 (define in *.def file)
\jlu@int@infoitemb{cthesisname} %论文种类中文(define in *.def file)
\jlu@int@infoitemb{ethesisname} %论文种类英文(define in *.def file)
\jlu@int@infoitemb{cabstractname} %摘要中文名 (define in *.def file)
\jlu@int@infoitemb{eabstractname} %摘要英文名 (define in *.def file)
% Set up document information using the `key = value' grammar.
\newcommand*{\jlutexinfo}[1]{\setkeys{jlu@info}{#1}}
% 定义logo的大小
\newcommand{\logowidth}{36mm}
% Set up page layout.
\geometry{
a4paper, hmargin = 2.6cm, top = 2.92cm, bottom = 3.03cm,
headheight = 0.45cm, headsep = 0.59cm, footskip = 1.05cm
}
% Set up chapter/section/... captions.
% The `*skip' values are not supposed to be modified by the `ugly' option:
% the actual style of the school's guide and Word template seem to be different
% from the written specification (when applied verbatim in LaTeX), and here the
% actual style is used.
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{2}
\ctexset{
chapter = {
beforeskip = {0bp}, afterskip = {18bp plus 0.2ex},
nameformat = {}, titleformat = {}
}, section =
{beforeskip = {20bp plus 1ex minus 0.2ex}, afterskip = {5bp plus 0.2ex}},
subsection =
{beforeskip = {12bp plus 1ex minus 0.2ex}, afterskip = {5bp plus 0.2ex}},
subsubsection =
{beforeskip = {12bp plus 1ex minus 0.2ex}, afterskip = {5bp plus 0.2ex}}
}
\ifjlu@opt@ugly
\ctexset{
chapter = {format = {\zihao{3}\bfseries\centering}},
section = {format = {\zihao{4}\bfseries}},
subsection = {format = {\fontsize{13bp}{15.6bp}\selectfont\bfseries}},
subsubsection = {format = {\zihao{-4}\bfseries}}
}
\else
\ctexset{
chapter = {format = {\zihao{-2}\bfseries\centering}},
section = {format = {\zihao{-3}\bfseries}},
subsection = {format = {\zihao{4}\bfseries}},
subsubsection = {format = {\bfseries}}
}
\fi
% `\MakeUppercase' works problematically.
% eg. it converts `\cite{ctex}' into `\cite{CTEX}'.
% This option can disable `\MakeUppercase' in left/right heading marks.
\ifjlu@opt@uppermark
\def\jlu@int@setcase#1{#1}
\else
% Code copied from fancyhdr's `\nouppercase', with the redefinition of
% `\uppercase' dropped to avoid disrupting CJKutf8.
% cf. <https://code.google.com/p/ctex-kit/issues/detail?id=147>.
\def\jlu@int@setcase#1{%
\let\MakeUppercase\relax%
\expandafter\let\csname MakeUppercase \endcsname\relax%
#1%
}
\fi
% The actual page style setup.
\fancypagestyle{plain}{
\fancyhf{}\renewcommand*{\headrulewidth}{0.75bp}
%E偶数页,O奇数页,LCR左中右
\if@twoside
\fancyfoot[RO,LE]{\zihao{5}\normalfont{\thepage}}
\fancyhead[CE]{\zihao{5}\kaishu{\cuniversity\cthesisname}}
\fancyhead[CO]{\zihao{5}\kaishu\jlu@int@setcase{\leftmark}}
\else
\fancyfoot[RO,RE]{\zihao{5}\normalfont{\thepage}}
\fancyhead[C]{\zihao{5}\kaishu\jlu@int@setcase{\leftmark}}
\fi
}
\pagestyle{plain}
\fancypagestyle{myheading}{
\fancyhf{}\renewcommand*{\headrulewidth}{0pt}
%E偶数页,O奇数页,LCR左中右
\if@twoside
\fancyfoot[RO,LE]{\zihao{5}\normalfont{\thepage}}
\else
\fancyfoot[RO,RE]{\zihao{5}\normalfont{\thepage}}
\fi
}
\pagestyle{myheading}
% This places a bookmark pointing to somewhere near the page header;
% Result of simple `\chapter{...} \pdfbookmark{...}' does not look nice,
% because the bookmark will point to somewhere below the chapter mark.
\def\jlu@int@pdfmark#1#2{%
\if@openright\cleardoublepage\else\clearpage\fi
\pdfbookmark[0]{#1}{#2}%
}
% Usage: \jlu@int@fillinblank{(number of lines)}{(line width)}{(contents)}
\def\jlu@int@fillinblank#1#2#3{%
\makebox[0pt][l]{\parbox[t]{#2}{\centering{#3}}}\mbox{}%
\parbox[t]{#2}{%
\newcount\jlu@tmp@linecount
\jlu@tmp@linecount=#1
\loop\ifnum\jlu@tmp@linecount>0
% Fill specified space with underline on the bottom line. `\underline'
% draws line on the baseline (not the bottom line), and this is why
% `\uline' is used here instead.
\ifnum\jlu@tmp@linecount=1
\uline{\makebox[#2]{}}
\else
\uline{\makebox[#2]{}}\\
\fi
\advance\jlu@tmp@linecount by -1\relax
\repeat%
}%
}
% =================封面========================
\renewcommand{\maketitle}{%
\jlu@int@pdfmark{封面}{titlepage}
% Make the title page centered.
\begin{titlepage}
{%页眉信息
\begin{center}
\begin{minipage}{\textwidth}\fontsize{15}{15}
\begin{minipage}[t]{0.45\textwidth}
\centering
\begin{tabular}{cc}
%{\bfseries\label@cnumber}&\textrm {\@cnumber}\\
{\songti\bfseries分\hphantom{汉}类\hphantom{汉}号:}&\textrm{\@cnumber}\\
{\songti\bfseries研究生学号:}&\textrm{\@studentid}\\
\end{tabular}
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\textwidth}
\centering
\begin{tabular}{cc}
{\songti\bfseries单位代码:}&\textrm{\@UnitCode}\\
{\songti\bfseries密\hphantom{汉字}级:}&\@securitylevel\\
\end{tabular}
\end{minipage}
\end{minipage}
\end{center}
}
\begingroup\centering
{% 校徽,校名,论文种类
%校徽
\begin{center}
\begin{spacing}{1.0}%%行间距变为single-space
\begin{figure}[h]
\centerline{\includegraphics[width = 3cm]{./jlu.png}}
\end{figure}
\lishu \zihao{-0}\textls[500]{吉林大学}\\
\lishu \zihao{-0}{\cthesisname}\\
\lishu \zihao{2}\textbf{(专业学位)}
\end{spacing}
\vskip 1.0cm
\heiti \zihao{3} {\@ctitle}\\
\sffamily \zihao{-3} {\@etitle}
\end{center}
\vskip 1.5cm
}
\vfill
% Information about the author.
\begin{flushleft}
\linespread{1.6}
% Slightly adjust the line skip when using new font size.
\songti\zihao{3}{
{\hspace{1.8cm}\bfseries作~~者~~姓~~名~:\@cauthor} \\%作者姓名
{\hspace{1.8cm}\bfseries类\hphantom{~~汉~~字~~}别~:\@DegreeCategory} \\%专业
{\hspace{1.8cm}\bfseries领域~(方向):\@direction} \\%研究方向
{\hspace{1.8cm}\bfseries指~~导~~教~~师~:\@cmentor} \\%指导教师
{\hspace{1.8cm}\bfseries培~~养~~单~~位~:\@school} \\%培养单位
}
\end{flushleft}
\vfill
% Date.
{\songti\zihao{3}\bfseries\@date}
\par\endgroup\end{titlepage}%
}
%================扉页======================
\newcommand{\innertitle}{
\begin{flushleft}
% For skip a space from the fancy
\songti\zihao{4}{
}
\end{flushleft}
\vskip 2.5cm
\begin{center}
\songti \zihao{3} {\@ctitle}\\
\vskip 1.3cm
\sffamily \zihao{3} {\@etitle}
\end{center}
\vfill
\begin{flushleft}
% Slightly adjust the line skip when using new font size.
\linespread{2}
\songti\zihao{4}{
{\hspace{1.5cm}作者姓名:\hspace{0.5cm}\@cauthor} \\%作者姓名
{\hspace{1.5cm}专业名称:\hspace{0.5cm}\@cmajor} \\%专业
{\hspace{1.5cm}指导教师:\hspace{0.5cm}\@cmentor} \\%指导教师
{\hspace{1.5cm}学位类别:\hspace{0.5cm}工学硕士} \\
{\hspace{1.5cm}答辩日期:\hspace{1.5cm}年\hspace{1.3cm}月\hspace{1.3cm}日} \\%答辩日期
}
\end{flushleft}
\vskip 2.5cm
}
%================投稿声明======================
\newenvironment{mcopyright}{%上定义:留白等待用户内容
}{%下定义
\noindent
\\
% \newcommand{\mycheckbox}[1]{\tikz{\path[draw=#1]}}
% \newcommand{\myuncheckbox}[1]{\tikz{\path[draw=#1]}}
% \newcommand{\mycheckbox}[1]{\tikz{\path[draw=#1,fill=#1] (0,0) rectangle (10pt,10pt);}}
% \newcommand{\myuncheckbox}[1]{\tikz{\path[draw=#1,fill=white] (0,0) rectangle (10pt,10pt);}}
\newcommand{\mycheckbox}[1]{\tikz{\path[draw=black, fill=black] (0,0) rectangle (10pt,10pt);}}
\newcommand{\myuncheckbox}[1]{\tikz{\path[draw=black, fill=white] (0,0) rectangle (10pt,10pt);}}
论文级别:\mycheckbox{black} \@level \hspace{0.3cm} \myuncheckbox{black} 博士 \\
% 论文级别:$\blacksquare$ \@level \hskip 0.44cm $\square$ 博士\\
学科专业:\@cmajor \\
论文题目:\@ctitle\\
\vskip 1.0cm
\noindent
作者签名: 指导教师签名: \\
\hspace{8.8cm}\hspace{2.0cm}年\hspace{1.0cm}月\hspace{1.0cm}日\\
\vskip 1.0cm
\vfill\noindent
作者联系地址(邮编):\@address\\
作者联系电话:\@telephone\\
}
\newenvironment{toc}{
\jlu@int@pdfmark{摘要}{cabstract}
%\chapter{}{}%\markboth{\cabstractname}
\begin{center}
\zihao{4}摘要\\
\heiti\zihao{3}\@ctitle
\end{center}
}{}
% ===============中文摘要======================
\newenvironment{cabstract}{%
\jlu@int@pdfmark{摘要}{cabstract}
%\chapter{}{}%\markboth{\cabstractname}
\begin{center}
\zihao{4}\textbf{摘要}\\
\heiti\zihao{3}\@ctitle
\end{center}
}{% Keywords at the bottom of the page.
\vfill\noindent\textbf{关键词:}{\@ckeywords}%
}
%================英文摘要======================
\newenvironment{eabstract}{%
\jlu@int@pdfmark{ABSTRACT}{eabstract}
%\chapter{}{}%\markboth{\eabstractname}
\begin{center}
\zihao{4}ABSTRACT\\
\heiti\zihao{3}\@etitle
\end{center}
}{% Keywords at the bottom of the page.
\vfill\noindent\textbf{KEYWORDS : }{\@ekeywords}%
}
%================公式======================
\renewenvironment{equation}{%
\incr@eqnum
\mathdisplay@push
\st@rredfalse \global\@eqnswtrue
\mathdisplay{equation}%
\hskip \textwidth minus \textwidth
}{%
\leaders\hbox{·}\hskip \textwidth minus \textwidth
\endmathdisplay{equation}%
\mathdisplay@pop
\ignorespacesafterend
}
\endinput
% vim:ft=tex:ts=2:sw=2