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.dtx161
1 files changed, 108 insertions, 53 deletions
diff --git a/macros/latex/contrib/hitszthesis/hitszthesis.dtx b/macros/latex/contrib/hitszthesis/hitszthesis.dtx
index feb49f4a6b..0d615ac584 100644
--- a/macros/latex/contrib/hitszthesis/hitszthesis.dtx
+++ b/macros/latex/contrib/hitszthesis/hitszthesis.dtx
@@ -16,7 +16,7 @@
%
% \iffalse
%<*driver>
-\ProvidesFile{hitszthesis.dtx}[2020/03/10 3.0 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
+\ProvidesFile{hitszthesis.dtx}[2020/03/13 3.0.4 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
\documentclass{ltxdoc}
\usepackage{dtx-style}
@@ -77,6 +77,7 @@
% \changes{v2.2}{2020/03/04}{Omit sections of appendix in toc}
% \changes{v2.3}{2020/03/05}{Add math font option XITS}
% \changes{v2.3}{2020/03/05}{Add boldcaption option to control the caption font}
+% \changes{v3.0}{2020/03/10}{Add support to master and doctor dissertations}
%
% \def\indexname{索引}
% \def\glossaryname{修改记录}
@@ -93,7 +94,7 @@
%
% \def\abstractname{\Large 摘\quad 要}
% \begin{abstract}\normalsize\vskip0.5cm
-% \hitszthesis 宏包旨在建立一个{\bfseries 规格严格、功夫到家}的哈尔滨工业大学(深圳)学位论文模板,目前包含本硕博毕业设计(论文)模板。模板的构建基于 \pkg{hitszthesis.dtx} 与 \pkg{hitszthesis.ins},在使用本模板之前,请仔细阅读\file{hitszthesis.pdf}(本文件)、\file{main.tex}(撰写示例)及\file{main.pdf}(撰写效果)。
+% \hitszthesis 宏包旨在建立一个{\bfseries 规格严格、功夫到家}的哈尔滨工业大学(深圳)学位论文模板,目前包含本硕博毕业设计(论文)模板。模板的构建基于 \pkg{hitszthesis.dtx} 与 \pkg{hitszthesis.ins},在使用本模板之前,请仔细阅读\file{hitszthesis.pdf}(本文件)、\file{main.tex}(撰写示例)及\file{main-bachelor.pdf}、\file{main-master.pdf} 与 \file{main-doctor.pdf}(撰写效果)。
% \end{abstract}
%
% \vskip1.5cm
@@ -931,7 +932,7 @@
%<cls>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<cls>\ProvidesClass{hitszthesis}
%<cfg>\ProvidesFile{hitszthesis.cfg}
-%<cls|cfg>[2020/03/10 3.0 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
+%<cls|cfg>[2020/03/13 3.0.4 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
% \end{macrocode}
%
% \subsection{定义选项}
@@ -2078,7 +2079,7 @@ delim_1 "\\hspace*{\\fill}"
chapter={
afterindent=true,
pagestyle={hitsz@headings},
- beforeskip={24.74658bp},%一个空行 1.57481 × 18
+ beforeskip={18.74658bp},%一个空行 1.57481 × 18
afterskip={24.74658bp},%0.8应该不计算间距 0.8 × 18 + 0.57481×18
aftername=\enspace,
format={\centering\hitsz@title@font\xiaoer[1.57481]},%\center 会影响之后全局
@@ -2491,6 +2492,14 @@ delim_1 "\\hspace*{\\fill}"
本人郑重声明:在哈尔滨工业大学攻读学士学位期间,所提交的毕业设计(论文)《\hitsz@ctitle》,是本人在导师指导下独立进行研究工作所取得的成果。对本文的研究工作做出重要贡献的个人和集体,均已在文中以明确方式注明,其它未注明部分不包含他人已发表或撰写过的研究成果,不存在购买、由他人代写、剽窃和伪造数据等作假行为。
本人愿为此声明承担法律责任。}
+\newcommand{\hitsz@authorizationtext@bachelor@shenzhen}{%
+本人郑重声明:在哈尔滨工业大学(深圳)攻读学士学位期间,所提交的毕业设计(论文)《\hitsz@ctitle》,是本人在导师指导下独立进行研究工作所取得的成果。对本文的研究工作做出重要贡献的个人和集体,均已在文中以明确方式注明,其它未注明部分不包含他人已发表或撰写过的研究成果,不存在购买、由他人代写、剽窃和伪造数据等作假行为。
+
+本人愿为此声明承担法律责任。}
+\newcommand{\hitsz@authorizationtext@bachelor@weihai}{%
+本人郑重声明:在哈尔滨工业大学(威海)攻读学士学位期间,所提交的毕业设计(论文)《\hitsz@ctitle》,是本人在导师指导下独立进行研究工作所取得的成果。对本文的研究工作做出重要贡献的个人和集体,均已在文中以明确方式注明,其它未注明部分不包含他人已发表或撰写过的研究成果,不存在购买、由他人代写、剽窃和伪造数据等作假行为。
+
+本人愿为此声明承担法律责任。}
\newcommand{\hitsz@declarename}{学位论文原创性声明}
\newcommand{\hitsz@declaretext}{%
本人郑重声明:此处所提交的学位论文《\hitsz@ctitle》,是本人在导师指导下,在哈尔滨工业大学攻读学位期间独立进行研究工作所取得的成果,且学位论文中除已标注引用文献的部分外不包含他人完成或已发表的研究成果。对本学位论文的研究工作做出重要贡献的个人和集体,均已在文中以明确方式注明。}
@@ -2507,6 +2516,8 @@ delim_1 "\\hspace*{\\fill}"
% \end{macrocode}
%
% 中英文封面。
+% \changes{v3.0.3}{2020/03/12}{Change titlepage description of master dissertation}
+% \changes{v3.0.4}{2020/03/13}{Change second bachelor titilepage from heiti to songti}
% \begin{macrocode}
%<*cls>
\newlength{\hitsz@title@width}
@@ -2558,7 +2569,7 @@ delim_1 "\\hspace*{\\fill}"
% 此处深圳校区竟然是左对齐。另外,院系名称也有点不一样。
% \begin{macrocode}
\ifhitsz@shenzhen%
- \begin{tabular}{rl}%
+ \begin{tabular}{@{}r@{}@{}l@{\qquad}}%
\else%
\begin{tabular}{rc}%
\fi%
@@ -2578,7 +2589,7 @@ delim_1 "\\hspace*{\\fill}"
{\hitsz@put@title{\hitsz@bachelor@cstudentidtitle}\hitsz@title@csep} & \hitsz@cstudentid
\end{tabular}
\ifhitsz@shenzhen%
- \begin{tabular}{rl}%
+ \begin{tabular}{@{}r@{}@{}l@{}}%
\else%
\begin{tabular}{rc}%
\fi%
@@ -2623,36 +2634,36 @@ delim_1 "\\hspace*{\\fill}"
\ifhitsz@infoleft
\begin{tabular}{l@{\ \ }l}
{\xiaoer \hitsz@put@title{\hitsz@bachelor@cthesistitle}} &
- \underline{\makebox[\infowidth][l]{\hspace*{1em}\xiaoer \hitsz@ctitleone}}\\
- & \underline{\makebox[\infowidth][l]{\hspace*{1em}\xiaoer \hitsz@ctitletwo}}\\
+ \underline{\makebox[\infowidth][l]{\hspace*{1em}\xiaoer\songti\textbf{\hitsz@ctitleone}}}\\
+ & \underline{\makebox[\infowidth][l]{\hspace*{1em}\xiaoer\songti\textbf{\hitsz@ctitletwo}}}\\
& \\
{\hitsz@put@title{\hitsz@bachelor@cmajortitle}} &
- \underline{\makebox[\infowidth][l]{\hspace*{1em}\hitsz@csubject}}\\
+ \underline{\makebox[\infowidth][l]{\hspace*{1em}\songti\textbf{\hitsz@csubject}}}\\
{\hitsz@put@title{\hitsz@bachelor@cstudentidtitle}} &
- \underline{\makebox[\infowidth][l]{\hspace*{1em}\hitsz@cstudentid}}\\
+ \underline{\makebox[\infowidth][l]{\hspace*{1em}\songti\textbf{\hitsz@cstudentid}}}\\
{\hitsz@put@title{\hitsz@bachelor@cstudenttitle}} &
- \underline{\makebox[\infowidth][l]{\hspace*{1em}\hitsz@cauthor}}\\
+ \underline{\makebox[\infowidth][l]{\hspace*{1em}\songti\textbf{\hitsz@cauthor}}}\\
{\hitsz@put@title{\hitsz@bachelor@csupervisortitle}} &
- \underline{\makebox[\infowidth][l]{\hspace*{1em}\hitsz@csupervisor}}\\
+ \underline{\makebox[\infowidth][l]{\hspace*{1em}\songti\textbf{\hitsz@csupervisor}}}\\
{\hitsz@put@title{\hitsz@cdatetitle}} &
- \underline{\makebox[\infowidth][l]{\hspace*{1em}\CJK@todaysmall}}
+ \underline{\makebox[\infowidth][l]{\hspace*{1em}\songti\textbf{\CJK@todaysmall}}}
\end{tabular}
\else
\begin{tabular}{l@{\ \ }c}
{\xiaoer \hitsz@put@title{\hitsz@bachelor@cthesistitle}} &
- \underline{\makebox[\infowidth]{\xiaoer \hitsz@ctitleone}}\\
- & \underline{\makebox[\infowidth]{\xiaoer \hitsz@ctitletwo}}\\
+ \underline{\makebox[\infowidth]{\xiaoer\songti\textbf{\hitsz@ctitleone}}}\\
+ & \underline{\makebox[\infowidth]{\xiaoer\songti\textbf{\hitsz@ctitletwo}}}\\
& \\
{\hitsz@put@title{\hitsz@bachelor@cmajortitle}} &
- \underline{\makebox[\infowidth]{\hitsz@csubject}}\\
+ \underline{\makebox[\infowidth]{\songti\textbf{\hitsz@csubject}}}\\
{\hitsz@put@title{\hitsz@bachelor@cstudentidtitle}} &
- \underline{\makebox[\infowidth]{\hitsz@cstudentid}}\\
+ \underline{\makebox[\infowidth]{\songti\textbf{\hitsz@cstudentid}}}\\
{\hitsz@put@title{\hitsz@bachelor@cstudenttitle}} &
- \underline{\makebox[\infowidth]{\hitsz@cauthor}}\\
+ \underline{\makebox[\infowidth]{\songti\textbf{\hitsz@cauthor}}}\\
{\hitsz@put@title{\hitsz@bachelor@csupervisortitle}} &
- \underline{\makebox[\infowidth]{\hitsz@csupervisor}}\\
+ \underline{\makebox[\infowidth]{\songti\textbf{\hitsz@csupervisor}}}\\
{\hitsz@put@title{\hitsz@cdatetitle}} &
- \underline{\makebox[\infowidth]{\CJK@todaysmall}}
+ \underline{\makebox[\infowidth]{\songti\textbf{\CJK@todaysmall}}}
\end{tabular}
\fi
\renewcommand{\arraystretch}{1}
@@ -2754,52 +2765,88 @@ delim_1 "\\hspace*{\\fill}"
}
% 英文封面
\newcommand{\emultiline}[2][c]{%
- \renewcommand{\arraystretch}{1}
+ \renewcommand{\arraystretch}{1}%
\begin{tabular}[#1]{@{}l@{}}#2\end{tabular}
\renewcommand{\arraystretch}{1.3}
}
\newcommand{\hitsz@engcover}{
{
\xiaosi[1.667]\noindent Classified Index: \hitsz@natclassifiedindex \\[8pt]
- U.D.C: \hitsz@intclassifiedindex }
+ U.D.C: \hitsz@intclassifiedindex
+ }
\vspace*{1em}
\begin{center}
- \parbox[t][1.6cm][t]{\textwidth}{\begin{center} \end{center} }
- \parbox[t][3.5cm][t]{\textwidth}{\xiaoer[1]
- \begin{center}Dissertation for the {\hitsz@exueweier} Degree in \hitsz@exueke\end{center}
- \ifhitsz@fulltime\relax
- \else%
- \begin{center}
- \hitsz@ebraceleft\hitsz@estudenttype\hitsz@ebraceright
+ \ifhitsz@doctor%博士封面
+ \parbox[t][1.6cm][t]{\textwidth}{\begin{center} \end{center}}
+ \parbox[t][3.5cm][t]{\textwidth}{\xiaoer[1]%
+ \begin{center}%
+ Dissertation for the {\hitsz@exueweier} Degree in \hitsz@exueke
+ \end{center}
+ \ifhitsz@fulltime
+ \relax
+ \else%
+ \begin{center}%
+ \hitsz@ebraceleft\hitsz@estudenttype\hitsz@ebraceright%
+ \end{center}
+ \fi
+ }
+ \else%硕士封面
+ \vspace*{1em}
+ \parbox[t][4.5cm][t]{\textwidth}{\xiaoer[1]%
+ \begin{center}%
+ A dissertation submitted in partial fulfillment of \\[2pt]
+ the requirements for the academic degree of \\[2pt]
+ Master of \hitsz@exueke
\end{center}
- \fi} %与中文保持一致,删除in {\hitsz@exueke}
+ \ifhitsz@fulltime
+ \relax
+ \else%
+ \begin{center}%
+ \hitsz@ebraceleft\hitsz@estudenttype\hitsz@ebraceright%
+ \end{center}
+ \fi
+ }
+ \fi
\parbox[t][7cm][t]{\textwidth}{%
- \begin{center}%
- \settowidth{\hitsz@etitlelength}{%
- \erhao\hitsz@etitle\ifhitsz@subtitle\hitsz@title@esep\hitsz@esubtitle\fi}%
- \ifdim\hitsz@etitlelength>450mm\xiaoer\else\erhao\fi%
- \textbf{\MakeUppercase{\hitsz@etitle}%
-\ifhitsz@subtitle\hitsz@title@esep\MakeUppercase{\hitsz@esubtitle}\fi}\end{center}}
- %★★★★若信息内容不太长,不会引起信息内容分行时,使用tabular环境,否则使用下面的tabularx环境。
+ \begin{center}%
+ \settowidth{\hitsz@etitlelength}{%
+ \erhao\hitsz@etitle%
+ \ifhitsz@subtitle
+ \hitsz@title@esep\hitsz@esubtitle%
+ \fi
+ }%
+ \ifdim\hitsz@etitlelength>450mm\xiaoer\else\erhao\fi%
+ \textbf{\MakeUppercase{\hitsz@etitle}%
+ \ifhitsz@subtitle%
+ \hitsz@title@esep\MakeUppercase{\hitsz@esubtitle}%
+ \fi
+ }
+ \end{center}
+ }
+ % 表格
{\sihao\renewcommand{\arraystretch}{1.3}
\begin{tabular}{@{}l@{~}l@{}}
- \textbf{\hitsz@eauthortitle\hitsz@title@esep} & \hitsz@eauthor\\
- \textbf{\hitsz@esupervisortitle\hitsz@title@esep} & \hitsz@esupervisor\\
- \ifx\hitsz@eassosupervisor\@empty\else%
- \textbf{\hitsz@eassosupervisortitle\hitsz@title@esep} & \hitsz@eassosupervisor\\
- \fi
- \ifx\hitsz@ecosupervisor\@empty\else%
- \textbf{\hitsz@ecosupervisortitle\hitsz@title@esep} & \hitsz@ecosupervisor\\
- \fi
- \textbf{\hitsz@edegreetitle\hitsz@title@esep} & \hitsz@edegree\\
- \textbf{\hitsz@esubjecttitle\hitsz@title@esep} &\hitsz@esubject\\
- \textbf{\hitsz@eaffiltitle\hitsz@title@esep} &\hitsz@eaffil\\
- \textbf{\hitsz@edatetitle\hitsz@title@esep} & \hitsz@edate\\
- \textbf{\hitsz@eschoolnametitle\hitsz@title@esep} & \hitsz@eschoolname
- \end{tabular}\renewcommand{\arraystretch}{1}}
+ \textbf{\hitsz@eauthortitle\hitsz@title@esep} & \hitsz@eauthor\\
+ \textbf{\hitsz@esupervisortitle\hitsz@title@esep} & \hitsz@esupervisor\\
+ \ifx\hitsz@eassosupervisor\@empty%
+ \else%
+ \textbf{\hitsz@eassosupervisortitle\hitsz@title@esep} & \hitsz@eassosupervisor\\
+ \fi
+ \ifx\hitsz@ecosupervisor\@empty%
+ \else%
+ \textbf{\hitsz@ecosupervisortitle\hitsz@title@esep} & \hitsz@ecosupervisor\\
+ \fi
+ \textbf{\hitsz@edegreetitle\hitsz@title@esep} & \hitsz@edegree\\
+ \textbf{\hitsz@esubjecttitle\hitsz@title@esep} &\hitsz@esubject\\
+ \textbf{\hitsz@eaffiltitle\hitsz@title@esep} &\hitsz@eaffil\\
+ \textbf{\hitsz@edatetitle\hitsz@title@esep} & \hitsz@edate\\
+ \textbf{\hitsz@eschoolnametitle\hitsz@title@esep} & \hitsz@eschoolname
+ \end{tabular}
+ \renewcommand{\arraystretch}{1}
+ }
\end{center}
}
-
+% 制作封面
\def\makecover{
\phantomsection
\pdfbookmark[0]{\hitsz@ctitle}{ctitle}
@@ -3077,7 +3124,15 @@ delim_1 "\\hspace*{\\fill}"
\ifhitsz@openright\cleardoublepage\else\clearpage\fi
\chapter*{\ifhitsz@harbin\relax\else\sanhao\fi\hitsz@declarename@bachelor}
\addcontentsline{toc}{chapter}{\hitsz@authorization@bachelor@toc}
- \hitsz@authorizationtext@bachelor
+ \ifhitsz@shenzhen%
+ \hitsz@authorizationtext@bachelor@shenzhen
+ \else%
+ \ifhitsz@weihai
+ \hitsz@authorizationtext@bachelor@weihai
+ \else
+ \hitsz@authorizationtext@bachelor
+ \fi
+ \fi
\vspace{2\baselineskip}
\par\hspace{6em}\hitsz@authorsig\hfill\hitsz@frontdate\hitsz@datefill
}