summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hitszthesis/hitszthesis.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hitszthesis/hitszthesis.dtx')
-rw-r--r--macros/latex/contrib/hitszthesis/hitszthesis.dtx49
1 files changed, 32 insertions, 17 deletions
diff --git a/macros/latex/contrib/hitszthesis/hitszthesis.dtx b/macros/latex/contrib/hitszthesis/hitszthesis.dtx
index 5cf1c8adaf..4943e3feae 100644
--- a/macros/latex/contrib/hitszthesis/hitszthesis.dtx
+++ b/macros/latex/contrib/hitszthesis/hitszthesis.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e@gmail.com>
+% Copyright (C) 2019-2021 by Jingxuan Yang <yanglatex2e@gmail.com>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -16,7 +16,7 @@
%
% \iffalse
%<*driver>
-\ProvidesFile{hitszthesis.dtx}[2020/06/23 3.2 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
+\ProvidesFile{hitszthesis.dtx}[2021/11/15 3.2.1 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
\documentclass{ltxdoc}
\usepackage{dtx-style}
@@ -937,7 +937,7 @@
%<cls>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<cls>\ProvidesClass{hitszthesis}
%<cfg>\ProvidesFile{hitszthesis.cfg}
-%<cls|cfg>[2020/06/23 3.2 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
+%<cls|cfg>[2021/11/15 3.2.1 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
% \end{macrocode}
%
% \subsection{定义选项}
@@ -1278,10 +1278,11 @@
\fi
% \end{macrocode}
%
-% 利用 \pkg{CJKfntef} 实现汉字的下划线和盒子内两段对齐,并可以避免
+% 利用 \pkg{xeCJKfntef} 实现汉字的下划线和盒子内两段对齐,并可以避免
% \cs{makebox}\oarg{width}\oarg{s} 可能产生的 underful boxes。
+% \changes{v3.2.1}{2021/11/14}{CJKfntef包不再自动加载xeCJKfntef}
% \begin{macrocode}
-\RequirePackage{CJKfntef}
+\RequirePackage{xeCJKfntef}
% \end{macrocode}
%
% 表格控制
@@ -1295,7 +1296,9 @@
% \end{macrocode}
%
% 参考文献引用宏包。
+% \changes{v3.2.1}{2021/11/15}{add package \pkg{gbt7714}}
% \begin{macrocode}
+\RequirePackage{gbt7714}
\RequirePackage[sort&compress]{natbib}
% \end{macrocode}
%
@@ -1931,10 +1934,11 @@ delim_1 "\\hspace*{\\fill}"
% \end{macro}
%
% 图表名称及格式。
+% \changes{v3.2.1}{2021/11/15}{change `thesubfigure' with both brackets}
% \begin{macrocode}
\renewcommand{\thesubtable}{(\alph{subtable})}
\renewcommand{\thefigure}{\arabic{chapter}-\arabic{figure}}%使图编号为 7-1 的格式 %\protect{~}
-\renewcommand{\thesubfigure}{\alph{subfigure})}%使子图编号为 a)的格式
+\renewcommand{\thesubfigure}{(\alph{subfigure})}%使子图编号为 a)的格式
\renewcommand{\p@subfigure}{\thefigure~} %使子图引用为 7-1 a) 的格式,母图编号和子图编号之间用~加一个空格
\renewcommand{\thetable}{\arabic{chapter}-\arabic{table}}%使表编号为 7-1 的格式
% \end{macrocode}
@@ -1969,10 +1973,10 @@ delim_1 "\\hspace*{\\fill}"
% 自定义项目列表标签及格式 \begin{publist} 列表项 \end{publist}
\newcounter{pubctr} %自定义新计数器
\newenvironment{publist}{%%%%%定义新环境
-\begin{list}{[\arabic{pubctr}]} %%标签格式
+\begin{list}{[\arabic{pubctr}]} %%标签格式
{
\usecounter{pubctr}
- \setlength{\leftmargin}{1.7em} % 左边界 \leftmargin =\itemindent + \labelwidth + \labelsep
+ \setlength{\leftmargin}{2.2em} % 左边界 \leftmargin =\itemindent + \labelwidth + \labelsep
\setlength{\itemindent}{0em} % 标号缩进量
\setlength{\labelsep}{0.5em} % 标号和列表项之间的距离,默认0.5em
\setlength{\rightmargin}{0em} % 右边界
@@ -2329,6 +2333,7 @@ delim_1 "\\hspace*{\\fill}"
% \label{sec:cov}
%
% 封面信息。
+% \changes{v3.2.1}{2021/11/15}{add key `cpostgraduatetype'}
% \begin{macrocode}
\def\hitsz@def@term#1{%
\define@key{hitsz}{#1}{\csname #1\endcsname{##1}}
@@ -2344,6 +2349,7 @@ delim_1 "\\hspace*{\\fill}"
\hitsz@def@term{ctitle} % 中文标题
\hitsz@def@term{csubtitle} % 中文副标题
\hitsz@def@term{cxueke} % 中文学科
+\hitsz@def@term{cpostgraduatetype} % 中文学位类型:学术,专业
\hitsz@def@term{cauthor} % 中文作者
\hitsz@def@term{csupervisor} % 中文导师
\hitsz@def@term{cassosupervisor} % 中文副导师
@@ -2437,6 +2443,8 @@ delim_1 "\\hspace*{\\fill}"
% \end{macrocode}
%
% 此处添加深圳校区设置
+% \changes{v3.2.1}{2021/11/14}{Change 'Defence' to 'Defense'}
+% \changes{v3.2.1}{2021/11/14}{Change '发表的论文及其他成果' to '取得创新性成果'}
% \begin{macrocode}
%<*cfg>
\def\hitsz@shenzhencampus{(深圳)}
@@ -2457,7 +2465,7 @@ delim_1 "\\hspace*{\\fill}"
\def\hitsz@edegreetitle{Academic Degree Applied for}
\def\hitsz@esubjecttitle{Specialty}
\def\hitsz@eaffiltitle{Affiliation}
-\def\hitsz@edatetitle{Date of Defence}
+\def\hitsz@edatetitle{Date of Defense}
\def\hitsz@eschoolnametitle{Degree-Conferring-Institution}
\def\hitsz@eschoolname{Harbin Institute of Technology}
\def\hitsz@title@esep{:}
@@ -2518,7 +2526,7 @@ delim_1 "\\hspace*{\\fill}"
\newcommand{\hitsz@declaretext}{%
本人郑重声明:此处所提交的学位论文《\hitsz@ctitle》,是本人在导师指导下,在哈尔滨工业大学攻读学位期间独立进行研究工作所取得的成果,且学位论文中除已标注引用文献的部分外不包含他人完成或已发表的研究成果。对本学位论文的研究工作做出重要贡献的个人和集体,均已在文中以明确方式注明。}
\newcommand{\hitsz@datefill}{\hspace{2.5em}年\hspace{1.5em}月\hspace{1.5em}日}
-\newcommand{\hitsz@publication@ctitle}{攻读\hitsz@cxuewei 学位期间发表的论文及其他成果}
+\newcommand{\hitsz@publication@ctitle}{攻读\hitsz@cxuewei 学位期间取得创新性成果}
\newcommand{\hitsz@publication@etitle}{Papers published in the period of Ph.D. education}
\def\hitsz@index@etitle{Index}
\def\hitsz@dummyrow{哈深hitszthesis}
@@ -2695,13 +2703,15 @@ delim_1 "\\hspace*{\\fill}"
\vspace*{1.2cm}
\begin{center}
\begin{center}\xiaoyi[1]\songti\textbf{\hitsz@cxuewei\hitsz@cthesisname}\end{center}
- \ifhitsz@fulltime\vspace{1.4cm}\else%
+ \vspace{1cm}
+ \begin{center}\xiaoer[1]\songti\textbf{(\hitsz@cpostgraduatetype\hitsz@cthesisname)}\end{center}
+ \ifhitsz@fulltime\vspace{1cm}\else%
\begin{center}
\xiaoyi[1]\songti
\textbf{\hitsz@cbraceleft\hitsz@cstudenttype\hitsz@cbraceright}
\end{center}
\fi%
- \parbox[t][7.8cm][t]{\textwidth}{%
+ \parbox[t][7.3cm][t]{\textwidth}{%
\begin{center}\erhao\heiti\hitsz@ctitlecover\end{center}
\ifhitsz@subtitle%
\begin{center}
@@ -2717,10 +2727,12 @@ delim_1 "\\hspace*{\\fill}"
\hitsz@title@esep\MakeUppercase{\hitsz@esubtitle}
\fi}\end{center}}
- \parbox[t][7.4cm][t]{\textwidth}{
- \begin{center}\xiaoer\songti\textbf{\hitsz@cauthor}\end{center}}
- \parbox[t][1.4cm][t]{\textwidth}{
- \begin{center}\kaishu\xiaoer\textbf{\hitsz@cschoolname}\end{center}}
+ \parbox[t][5.4cm][t]{\textwidth}{%
+ \begin{center}\xiaoer\songti\textbf{\hitsz@cauthor}\end{center}
+ }
+ \parbox[t][1.4cm][t]{\textwidth}{%
+ \begin{center}\kaishu\xiaoer\textbf{\hitsz@cschoolname}\end{center}
+ }
{\songti\xiaoer\textbf{\hitsz@cdate}}
\end{center}
}
@@ -3106,7 +3118,7 @@ delim_1 "\\hspace*{\\fill}"
\bfseries\xiaosi #1
\end{center}}
\newlist{translationbib}{enumerate}{1}
-\setlist[translationbib]{label=[\arabic*],align=left,nosep,itemsep=6bp,
+\setlist[translationbib]{label=[\arabic*],align=left,nosep,itemsep=6bp,
leftmargin=10mm,labelsep=!,before=\vspace{0.5\baselineskip}\wuhao[1.3]
}
\newenvironment{conclusions}{%
@@ -3214,12 +3226,14 @@ delim_1 "\\hspace*{\\fill}"
\newcommand\bibstyle@numerical{\bibpunct{[}{]}{,}{s}{,}{\textsuperscript{,}}}
\newcommand\bibstyle@authoryear{\bibpunct{(}{)}{;}{a}{,}{,}}
% \end{macrocode}
+% \changes{v3.2.1}{2021/11/15}{Redefine `biblabel' with full-width square brackets}
% \begin{macrocode}
\newcommand\bibstyle@inline{\bibpunct{[}{]}{,}{n}{,}{\hitsz@inline@sep}}
\citestyle{numerical}
\DeclareRobustCommand\inlinecite{\@inlinecite}
\def\@inlinecite#1{\begingroup\citestyle{inline}\let\@cite\NAT@citenum\citep{#1}\endgroup}
\let\onlinecite\inlinecite
+\def\@biblabel#1{[#1]}
\renewenvironment{thebibliography}[1]{%
\ifhitsz@openright\cleardoublepage\else\clearpage\fi\phantomsection%
\hitsz@appendix@chapter*{\bibname}[\hitsz@bibname@etitle]
@@ -3227,6 +3241,7 @@ delim_1 "\\hspace*{\\fill}"
\list{\@biblabel{\@arabic\c@enumiv}}%
{\renewcommand{\makelabel}[1]{##1\hfill}
\settowidth{\labelwidth}{\@biblabel{#1}}
+ \addtolength{\labelwidth}{0.5em}
\setlength{\labelsep}{0.5em}
\setlength{\itemindent}{0pt}
\setlength{\leftmargin}{\labelsep+\labelwidth}