Skip to content

Commit a743102

Browse files
authored
Update to v3.0
1 parent 41b804f commit a743102

File tree

3 files changed

+1514
-645
lines changed

3 files changed

+1514
-645
lines changed

dtx-style.sty

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,27 @@
1010
%%
1111
%% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e@gmail.com>
1212
%%
13-
%% This work may be distributed and/or modified under the
14-
%% conditions of the LaTeX Project Public License, either version 1.3
13+
%% This file may be distributed and/or modified under the
14+
%% conditions of the LaTeX Project Public License, either version 1.3a
1515
%% of this license or (at your option) any later version.
16-
%% The latest version of this license is in
17-
%% http://www.latex-project.org/lppl.txt
18-
%% and version 1.3 or later is part of all distributions of LaTeX
19-
%% version 2005/12/01 or later.
16+
%% The latest version of this license is in:
17+
%%
18+
%% http://www.latex-project.org/lppl.txt
19+
%%
20+
%% and version 1.3a or later is part of all distributions of LaTeX
21+
%% version 2004/10/01 or later.
2022
%%
2123
%% To produce the documentation run the original source files ending with `.dtx'
2224
%% through LaTeX.
2325
%%
24-
\RequirePackage{ifxetex}
25-
\ifxetex\else
26-
\ClassError{hitszthesis}{Please use XeLaTeX to compile this file}{}
27-
\end{document}
28-
\fi
2926
\ProvidesPackage{dtx-style}
3027
\RequirePackage{hypdoc}
31-
\RequirePackage{ifthen}
32-
\RequirePackage[UTF8,scheme=chinese]{ctex}
33-
\RequirePackage{newtxtext}
34-
\RequirePackage{newtxmath}
28+
\RequirePackage[UTF8,scheme=chinese,fontset=windowsnew]{ctex}
29+
\RequirePackage{newpxtext}
30+
\RequirePackage{newpxmath}
3531
\RequirePackage[
3632
top=2.5cm, bottom=2.5cm,
37-
left=5cm, right=1.5cm,
33+
left=4cm, right=2cm,
3834
headsep=8mm]{geometry}
3935
\RequirePackage{array,longtable,booktabs}
4036
\RequirePackage{listings}
@@ -43,10 +39,7 @@
4339
\RequirePackage{enumitem}
4440
\RequirePackage{etoolbox}
4541
\RequirePackage{metalogo}
46-
47-
\ifthenelse{\equal{\@nameuse{g__ctex_fontset_tl}}{mac}}{%
48-
\xeCJKsetwidth{‘’“”}{1em}
49-
}{}
42+
\RequirePackage{hyperref}
5043

5144
\colorlet{hitsz@macro}{blue!60!black}
5245
\colorlet{hitsz@env}{blue!70!black}
@@ -135,11 +128,19 @@
135128
\DeclareDocumentCommand{\file}{s m}{%
136129
\texttt{#2}\IfBooleanF#1{\hitsz@special@index{file}{#2}}}
137130
\newcommand{\myentry}[1]{%
138-
\marginpar{\raggedleft\color{purple}\bfseries\small\strut #1}}
131+
\marginpar{\small\raggedleft\color{purple}\bfseries\strut #1}}
139132
\newcommand{\note}[2][Note]{{%
140133
\color{magenta}{\bfseries #1}\emph{#2}}}
141-
134+
\newcommand{\pozhehao}{——}
142135
\def\hitszthesis{\textsc{Hitsz}\-\textsc{Thesis}}
136+
\def\hitsz{哈尔滨工业大学(深圳)}
137+
\def\PGR{\href{http://hitgs.hit.edu.cn/aa/fd/c3425a109309/page.htm}
138+
{《\hitsz 研究生学位论文撰写规范》}}
139+
\def\UGR{\href{http://www.hitsz.edu.cn/UserFiles/editor/file/20190923/1569224708968004622.doc}
140+
{《\hitsz 本科生毕业论文撰写规范》}}
141+
\NewDocumentEnvironment{hitszrgu}{o o}
142+
{ \IfNoValueTF{#1}{\PGR,\UGR}{#1}\IfNoValueF{#2}{#2中}%
143+
\color{red}规定:“}{”}
143144
\endinput
144145
%%
145146
%% End of file `dtx-style.sty'.

hitszthesis.cfg

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
%%
2+
%% This is file `hitszthesis.cfg',
3+
%% generated with the docstrip utility.
4+
%%
5+
%% The original source files were:
6+
%%
7+
%% hitszthesis.dtx (with options: `cfg')
8+
%%
9+
%% This is a generated file.
10+
%%
11+
%% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e@gmail.com>
12+
%%
13+
%% This file may be distributed and/or modified under the
14+
%% conditions of the LaTeX Project Public License, either version 1.3a
15+
%% of this license or (at your option) any later version.
16+
%% The latest version of this license is in:
17+
%%
18+
%% http://www.latex-project.org/lppl.txt
19+
%%
20+
%% and version 1.3a or later is part of all distributions of LaTeX
21+
%% version 2004/10/01 or later.
22+
%%
23+
%% This is the configuration file of the hitszthesis package with LaTeX2e.
24+
%%
25+
\ProvidesFile{hitszthesis.cfg}
26+
[2020/03/10 3.0 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
27+
\theorembodyfont{\normalfont}
28+
\theoremheaderfont{\normalfont\heiti}
29+
\theoremsymbol{\ensuremath{\square}}
30+
\newtheorem*{proof}{证明}
31+
\theoremstyle{plain}
32+
\theoremsymbol{}
33+
\theoremseparator{}
34+
\newtheorem{assumption}{假设}[chapter]
35+
\newtheorem{definition}{定义}[chapter]
36+
\newtheorem{proposition}{命题}[chapter]
37+
\newtheorem{lemma}{引理}[chapter]
38+
\newtheorem{theorem}{定理}[chapter]
39+
\newtheorem{axiom}{公理}[chapter]
40+
\newtheorem{corollary}{推论}[chapter]
41+
\newtheorem{exercise}{练习}[chapter]
42+
\newtheorem{example}{例}[chapter]
43+
\newtheorem{remark}{注释}[chapter]
44+
\newtheorem{problem}{问题}[chapter]
45+
\newtheorem{conjecture}{猜想}[chapter]
46+
\ctexset{%
47+
chapter/name={第,章},
48+
appendixname=附录,
49+
contentsname={目\hspace{\ccwd}录},
50+
listfigurename=插图索引,
51+
listtablename=表格索引,
52+
figurename=图,
53+
tablename=表,
54+
bibname=参考文献,
55+
indexname=索引,
56+
}
57+
\newcommand\listfigureename{Index of figure}
58+
\newcommand\listtableename{Index of table}
59+
\newcommand\listequationename{Index of equation}
60+
\newcommand\listequationname{公式索引}
61+
\newcommand\equationname{公式}
62+
\newcommand{\cabstractcname}{摘\hspace{\ccwd}要}
63+
\newcommand{\cabstractename}{Abstract (In Chinese)}
64+
\newcommand{\eabstractcname}{Abstract}
65+
\newcommand{\eabstractename}{Abstract (In English)}
66+
\newcommand{\hitsz@ckeywords@title}{关键词:}
67+
\def\hitsz@ckeywords@separator{;}
68+
\def\hitsz@ekeywords@separator{,}
69+
\let\CJK@todaysave=\today
70+
\def\CJK@todaysmall@short{\the\year 年 \the\month 月}
71+
\def\CJK@todaysmall{\the\year 年 \the\month 月 \the\day 日}
72+
\def\CJK@todaybig@short{\zhdigits{\the\year}年\zhnumber{\the\month}月}
73+
\def\CJK@todaybig{\zhdigits{\the\year}年\zhnumber{\the\month}月\zhnumber{\the\day}日}
74+
\def\CJK@today{\CJK@todaysmall}
75+
\renewcommand\today{\CJK@today}
76+
\newcommand\CJKtoday[1][1]{%
77+
\ifcase#1\def\CJK@today{\CJK@todaysave}
78+
\or\def\CJK@today{\CJK@todaysmall}
79+
\or\def\CJK@today{\CJK@todaybig}
80+
\fi}
81+
\cdate{\ifhitsz@bachelor\CJK@todaysmall@short\else\CJK@todaysmall@short\fi}
82+
\edate{\ifcase \month \or January\or February\or March\or April\or May%
83+
\or June\or July \or August\or September\or October\or November
84+
\or December\fi\unskip,\ \ \the\year}
85+
\ifhitsz@doctor
86+
\gdef\hitsz@cxueweishort{博}
87+
\gdef\hitsz@exuewei{Doctor}
88+
\gdef\hitsz@exueweier{Doctoral}
89+
\gdef\hitsz@cxuewei{\hitsz@cxueweishort 士}
90+
\gdef\hitsz@cdegree{\hitsz@cxueke\hitsz@cxuewei}
91+
\gdef\hitsz@edegree{\hitsz@exuewei \ of \hitsz@exueke}
92+
\def\hitsz@cauthortitle{\hitsz@cxueweishort 士研究生}
93+
\fi
94+
\ifhitsz@master
95+
\gdef\hitsz@cxueweishort{硕}
96+
\gdef\hitsz@exuewei{Master}
97+
\gdef\hitsz@exueweier{Master's}
98+
\gdef\hitsz@cxuewei{\hitsz@cxueweishort 士}
99+
\gdef\hitsz@cdegree{\hitsz@cxueke\hitsz@cxuewei}
100+
\gdef\hitsz@edegree{\hitsz@exuewei \ of \hitsz@exueke}
101+
\def\hitsz@cauthortitle{\hitsz@cxueweishort 士研究生}
102+
\fi
103+
\ifhitsz@bachelor
104+
\gdef\hitsz@cxuewei{学士}
105+
\fi
106+
\def\hitsz@bachelor@cxuewei{本科}
107+
\def\hitsz@bachelor@cthesisname{毕业设计(论文)}
108+
\def\hitsz@bachelor@caffiltitle{院(系)}
109+
\def\hitsz@bachelor@caffiltitlesz{学院}
110+
\def\hitsz@bachelor@caffiltitlewh{学院}
111+
\def\hitsz@bachelor@cstudentidtitle{学号}
112+
\def\hitsz@bachelor@cmajortitle{专业}
113+
\def\hitsz@bachelor@csupervisortitle{指导教师}
114+
\def\hitsz@bachelor@cthesistitle{题目}
115+
\def\hitsz@bachelor@cstudenttitle{学生}
116+
\def\hitsz@cthesisname{学位论文}
117+
\def\hitsz@cschoolname{哈尔滨工业大学}
118+
\def\hitsz@shenzhencampus{(深圳)}
119+
\def\hitsz@weihaicampus{(威海)}
120+
\def\hitsz@cschoolnametitle{授予学位单位}
121+
\def\hitsz@cdatetitle{答辩日期}
122+
\def\hitsz@caffiltitle{所在单位}
123+
\def\hitsz@csubjecttitle{学科}
124+
\def\hitsz@cdegreetitle{申请学位}
125+
\def\hitsz@csupervisortitle{导师}
126+
\def\hitsz@cassosupervisortitle{副导师}
127+
\def\hitsz@ccosupervisortitle{联合导师}
128+
\def\hitsz@title@csep{:}
129+
\def\hitsz@eauthortitle{Candidate}
130+
\def\hitsz@esupervisortitle{Supervisor}
131+
\def\hitsz@eassosupervisortitle{Associate Supervisor}
132+
\def\hitsz@ecosupervisortitle{Co Supervisor}
133+
\def\hitsz@edegreetitle{Academic Degree Applied for}
134+
\def\hitsz@esubjecttitle{Specialty}
135+
\def\hitsz@eaffiltitle{Affiliation}
136+
\def\hitsz@edatetitle{Date of Defence}
137+
\def\hitsz@eschoolnametitle{Degree-Conferring-Institution}
138+
\def\hitsz@eschoolname{Harbin Institute of Technology}
139+
\def\hitsz@title@esep{:}
140+
\def\hitsz@natclassifiedindextitle{国内图书分类号}
141+
\def\hitsz@internatclassifiedindextitle{国际图书分类号}
142+
\def\hitsz@secretlevel{密级}
143+
\def\hitsz@schoolidtitle{学校代码}
144+
\def\hitsz@schoolid{10213}
145+
\def\hitsz@conclusion@ctitle{结\hspace{\ccwd}论}
146+
\def\hitsz@conclusion@etitle{Conclusions}
147+
\def\hitsz@bibname@etitle{References}
148+
\def\hitsz@acknowledgement@ctitle{致\hspace{\ccwd}谢}
149+
\def\hitsz@acknowledgement@etitle{Acknowledgements}
150+
\def\hitsz@resume@ctitle{个人简历}
151+
\def\hitsz@resume@etitle{Resume}
152+
\def\hitsz@authorization@ctitle{哈尔滨工业大学学位论文原创性声明和使用权限}
153+
\def\hitsz@authorization@etitle{Statement of copyright and Letter of authorization}
154+
\newcommand{\hitsz@authorsig}{作者签名:}
155+
\newcommand{\hitsz@teachersig}{导师签名:}
156+
\newcommand{\hitsz@frontdate}{日期:}
157+
\newcommand{\hitsz@denotation@ctitle}{物理量名称及符号表}
158+
\newcommand{\hitsz@denotation@etitle}{List of physical quantity and symbol}
159+
\newcommand{\hitsz@authorizationtitle}{学位论文使用权限}
160+
\newcommand{\hitsz@authorizationtext}{%
161+
学位论文是研究生在哈尔滨工业大学攻读学位期间完成的成果,知识产权归属哈尔滨工业大学。学位论文的使用权限如下:
162+
163+
(1)学校可以采用影印、缩印或其他复制手段保存研究生上交的学位论文,并向国家图书馆报送学位论文;(2)学校可以将学位论文部分或全部内容编入有关数据库进行检索和提供相应阅览服务;(3)研究生毕业后发表与此学位论文研究成果相关的学术论文和其他成果时,应征得导师同意,且第一署名单位为哈尔滨工业大学。
164+
165+
保密论文在保密期内遵守有关保密规定,解密后适用于此使用权限规定。
166+
167+
本人知悉学位论文的使用权限,并将遵守有关规定。}
168+
\newcommand{\hitsz@declarename@bachelor}{%
169+
\ifhitsz@harbin%
170+
哈尔滨工业大学本科毕业设计(论文)原创性声明
171+
\else%
172+
\ifhitsz@shenzhen%
173+
哈尔滨工业大学(深圳)本科毕业设计(论文)原创性声明
174+
\else%
175+
\ifhitsz@weihai%
176+
哈尔滨工业大学(威海)本科毕业设计(论文)原创性声明
177+
\fi%
178+
\fi%
179+
\fi%
180+
}
181+
\newcommand{\hitsz@authorizationtext@bachelor}{%
182+
本人郑重声明:在哈尔滨工业大学攻读学士学位期间,所提交的毕业设计(论文)《\hitsz@ctitle》,是本人在导师指导下独立进行研究工作所取得的成果。对本文的研究工作做出重要贡献的个人和集体,均已在文中以明确方式注明,其它未注明部分不包含他人已发表或撰写过的研究成果,不存在购买、由他人代写、剽窃和伪造数据等作假行为。
183+
184+
本人愿为此声明承担法律责任。}
185+
\newcommand{\hitsz@declarename}{学位论文原创性声明}
186+
\newcommand{\hitsz@declaretext}{%
187+
本人郑重声明:此处所提交的学位论文《\hitsz@ctitle》,是本人在导师指导下,在哈尔滨工业大学攻读学位期间独立进行研究工作所取得的成果,且学位论文中除已标注引用文献的部分外不包含他人完成或已发表的研究成果。对本学位论文的研究工作做出重要贡献的个人和集体,均已在文中以明确方式注明。}
188+
\newcommand{\hitsz@datefill}{\hspace{2.5em}年\hspace{1.5em}月\hspace{1.5em}日}
189+
\newcommand{\hitsz@publication@ctitle}{攻读\hitsz@cxuewei 学位期间发表的论文及其他成果}
190+
\newcommand{\hitsz@publication@etitle}{Papers published in the period of Ph.D. education}
191+
\def\hitsz@index@etitle{Index}
192+
\def\hitsz@dummyrow{哈深hitszthesis}
193+
\def\hitsz@cbraceleft{(}
194+
\def\hitsz@cbraceright{)}
195+
\def\hitsz@ebraceleft{(}
196+
\def\hitsz@ebraceright{)}
197+
\newcommand{\pozhehao}{——}
198+
\def\hitszthesis{\textsc{Hitsz}\-\textsc{Thesis}}
199+
\def\hitsz{哈尔滨工业大学(深圳)}
200+
\def\PGR{\href{http://hitgs.hit.edu.cn/aa/fd/c3425a109309/page.htm}
201+
{《\hitsz 研究生学位论文撰写规范》}}
202+
\def\UGR{\href{http://www.hitsz.edu.cn/UserFiles/editor/file/20190923/1569224708968004622.doc}
203+
{《\hitsz 本科生毕业论文撰写规范》}}
204+
\def\hitsz@inline@sep{,}
205+
\endinput
206+
%%
207+
%% End of file `hitszthesis.cfg'.

0 commit comments

Comments
 (0)