summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hitszthesis
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hitszthesis')
-rw-r--r--macros/latex/contrib/hitszthesis/README.md12
-rw-r--r--macros/latex/contrib/hitszthesis/back/appendix01.tex6
-rw-r--r--macros/latex/contrib/hitszthesis/back/appendix02.tex15
-rw-r--r--macros/latex/contrib/hitszthesis/body/chapter02.tex2
-rw-r--r--macros/latex/contrib/hitszthesis/body/chapter06.tex30
-rw-r--r--macros/latex/contrib/hitszthesis/front/coverinformation.tex6
-rw-r--r--macros/latex/contrib/hitszthesis/hitszthesis-bachelor.pdfbin391775 -> 386915 bytes
-rw-r--r--macros/latex/contrib/hitszthesis/hitszthesis-example.tex7
-rw-r--r--macros/latex/contrib/hitszthesis/hitszthesis.dtx100
-rw-r--r--macros/latex/contrib/hitszthesis/hitszthesis.ins26
-rw-r--r--macros/latex/contrib/hitszthesis/hitszthesis.pdfbin607425 -> 611466 bytes
-rw-r--r--macros/latex/contrib/hitszthesis/hitszthesis.sty6
12 files changed, 124 insertions, 86 deletions
diff --git a/macros/latex/contrib/hitszthesis/README.md b/macros/latex/contrib/hitszthesis/README.md
index ee047e546b..acd4d49b73 100644
--- a/macros/latex/contrib/hitszthesis/README.md
+++ b/macros/latex/contrib/hitszthesis/README.md
@@ -14,7 +14,7 @@
# Introduction to hitszthesis
-HITSZThesis is a **dissertation** LaTeX template for **Harbin Institute of Technology, ShenZhen** (HITSZ), including bachelor, master and doctor dissertations. Current version is 3.1, updated on 2020/05/25. Note that 3.x version is not compatible with 2.x version. Please join QQ group: 1039392552 to report issues.
+HITSZThesis is a **dissertation** LaTeX template for **Harbin Institute of Technology, ShenZhen** (HITSZ), including bachelor, master and doctor dissertations. Current version is 3.2, updated on 2020/06/23. Note that 3.x version is not compatible with 2.x version. Please join QQ group: 1039392552 to report issues. If using `Makefile` or `compile.bat` to automatically compile thesis, please first rename the file `hitszthesis-example.tex` to `main.tex`.
```latex
|- front
@@ -50,10 +50,10 @@ HITSZThesis is a **dissertation** LaTeX template for **Harbin Institute of Techn
|- hitszthesis.pdf
|- hitszthesis.sty
|- latexmkrc
- |- main-bachelor.pdf
- |- main-doctor.pdf
- |- main-master.pdf
- |- main.tex
+ |- hitszthesis-bachelor.pdf
+ |- hitszthesis-doctor.pdf
+ |- hitszthesis-master.pdf
+ |- hitszthesis-example.tex
|- Makefile
|- README.md
|- reference.bib
@@ -61,7 +61,7 @@ HITSZThesis is a **dissertation** LaTeX template for **Harbin Institute of Techn
# hitszthesis 模板简介
-hitszthesis 是哈尔滨工业大学(深圳)本硕博学位论文模板,当前版本为3.1,更新于2020年5月25日。注意3.x版本不兼容2.x版本。请加入QQ群:1039392552反馈模板使用过程中遇到的问题。
+hitszthesis 是哈尔滨工业大学(深圳)本硕博学位论文模板,当前版本为3.2,更新于2020年6月23日。注意3.x版本不兼容2.x版本。请加入QQ群:1039392552反馈模板使用过程中遇到的问题。如果要使用`Makefile`或者`compile.bat`自动编译论文,请先把文件`hitszthesis-example.tex`重命名为`main.tex`。
# Documentation
diff --git a/macros/latex/contrib/hitszthesis/back/appendix01.tex b/macros/latex/contrib/hitszthesis/back/appendix01.tex
index 85bec68984..84e77e7efd 100644
--- a/macros/latex/contrib/hitszthesis/back/appendix01.tex
+++ b/macros/latex/contrib/hitszthesis/back/appendix01.tex
@@ -1,7 +1,9 @@
% !TEX root = ../main.tex
% 附录1
-\chapter{外文资料的调研阅读报告或书面翻译}
+\chapter{外文资料翻译}
+% 设置附录页码从1开始编号
+% \SetPageNumberingFromOne
\title{英文资料的中文标题}
@@ -23,8 +25,8 @@
庖丁为文惠君解牛,手之所触,肩之所倚,足之所履,膝之所倚,砉然响然,奏刀騞然,莫
不中音,合于桑林之舞,乃中经首之会。
\begin{table}[ht]
-\centering
\centering
+ \wuhao
\caption*{表~1\hskip1em 这是手动编号但不出现在索引中的一个表格例子}
\label{tab:badtabular3}
\begin{tabular}[c]{|m{1.5cm}|c|c|c|c|c|c|}\hline
diff --git a/macros/latex/contrib/hitszthesis/back/appendix02.tex b/macros/latex/contrib/hitszthesis/back/appendix02.tex
index 0dd811b0ab..46975ad85a 100644
--- a/macros/latex/contrib/hitszthesis/back/appendix02.tex
+++ b/macros/latex/contrib/hitszthesis/back/appendix02.tex
@@ -94,11 +94,11 @@ that the feasible set $S$ is bounded. This fact is the basis of the {\em simplex
algorithm} which was developed by Dantzig as a very efficient method for
solving linear programming.
\begin{table}[ht]
-\centering
\centering
- \caption*{Table~1\hskip1em This is an example for manually numbered table, which
+ \appendixcaption{Table~1\hskip1em This is an example for manually numbered table, which
would not appear in the list of tables}
\label{tab:badtabular2}
+ \wuhao
\begin{tabular}[c]{|m{1.5cm}|c|c|c|c|c|c|}\hline
\multicolumn{2}{|c|}{Network Topology} & \# of nodes &
\multicolumn{3}{c|}{\# of clients} & Server \\\hline
@@ -109,7 +109,7 @@ solving linear programming.
\multirow{2}{1.2in}{Max. Connectivity}\\\cline{1-3}
\multicolumn{2}{|c|}{Inet-2.1} & 6000 & & & &\\\hline
& \multicolumn{2}{c|}{ABCDEF} &\multicolumn{4}{c|}{} \\\hline
-\end{tabular}
+ \end{tabular}
\end{table}
Roughly speaking, the simplex algorithm examines only the extreme points of the
@@ -119,6 +119,15 @@ selected so as to improve the objective function value. The procedure is
repeated until no improvement in objective function value can be made. The last
extreme point is the optimal solution.
+% 附录算法请用这个新环境 <algorithmen>
+\begin{algorithmen}
+ \wuhao
+ \DontPrintSemicolon
+ \KwData{$G=(X,U)$ such that $G^{tc}$ is an order.}
+ \KwResult{$G’=(X,V)$ with $V\subseteq U$ such that $G’^{tc}$ is an interval order.}
+ \caption{\textsc{Fast}SLAM}
+\end{algorithmen}
+
\subsection{Nonlinear Programming}
If at least one of the functions $f(x),g_j(x),j=1,2,\cdots,p$ is nonlinear, then
diff --git a/macros/latex/contrib/hitszthesis/body/chapter02.tex b/macros/latex/contrib/hitszthesis/body/chapter02.tex
index 1a1da331b1..ae7392bd51 100644
--- a/macros/latex/contrib/hitszthesis/body/chapter02.tex
+++ b/macros/latex/contrib/hitszthesis/body/chapter02.tex
@@ -110,7 +110,7 @@ Times New Roman字体,字号尽量采用5号字(当字数较多时可用小5
无意义文字,每页底部不要留空白。
-\lipsum[1]
+\lipsum[4-5]
\begin{figure}[!ht]
\setlength{\subfigcapskip}{-1bp}
diff --git a/macros/latex/contrib/hitszthesis/body/chapter06.tex b/macros/latex/contrib/hitszthesis/body/chapter06.tex
index a6b26ad762..97cd974953 100644
--- a/macros/latex/contrib/hitszthesis/body/chapter06.tex
+++ b/macros/latex/contrib/hitszthesis/body/chapter06.tex
@@ -73,14 +73,20 @@ hitszthesis.pdf文件},本示例文档也最好能看一看。此示例文档
\subsection{右翻页}[Open right]
-对于双面打印的论文,强制使每章的标题页出现右手边为右翻页。
-规范中没有明确规定是否是右翻页打印。
-模板给出了右翻页选项。
-为了应对用户的个人喜好,在希望设置成右翻页的位置之前添加\cs{cleardoublepage}命令即可。
+对于双面打印的论文,强制使每章的标题页出现右手边为右翻页。规范中没有明确规定是否是右翻页打印。模板给出了右翻页选项。为了应对用户的个人喜好,在希望设置成右翻页的位置之前添加\cs{cleardoublepage}命令即可。
\subsection{算法}[Algorithms]
-算法不在规范中要求,此处不给出示例,在hitszthesis.sty中有定义示例。
+算法不在规范中要求,在hitszthesis.sty中有相关定义,一个例子如算法\ref{alg:rerank}所示。
+\begin{algorithm}
+ \DontPrintSemicolon
+ \wuhao
+ \caption{混合重排算法}
+ \label{alg:rerank}
+ \KwData{$A$:待重排的元素集合 \newline
+ $\alpha$: 对多样性,相关性作折中的权重因子}
+ \KwResult{$A_k$: a subset of $A$ of size k}
+\end{algorithm}
\subsection{脚注}[Footnotes]
@@ -95,24 +101,10 @@ hitszthesis.pdf文件},本示例文档也最好能看一看。此示例文档
\href{https://gihitb.com/YangLaTeX/hitszthesis}{https://gihitb.com/YangLaTeX/hitszthesis}
处下载。
-\lipsum[3]
-
\subsection{术语词汇管理}[Manage glossaries]
推荐使用glossaries包管理术语、缩略语,可以自动生成首次全写,非首次缩写。
-\subsection{\TeX\ 源码编辑器}[\TeX editor]
-
-推荐:(1)付费软件Winedt;(2)免费软件kile;(3)vim或emaces或sublime等神级编
-译器(需要配置)。
-
-\subsection{\LaTeX\ 排版重要原则}[\LaTeX\ typesetting rules]
-
-格式和内容分离是\LaTeX\ 最大优势,所有多次出现的内容、样式等等都可以定义为简单命
-令、环境。这样的好处是方便修改、管理。例如,如果想要把所有的表示向量的符号由粗体
-\cs{mathbf}变换到花体\cs{mathcal},只需修改该格式的命令的定义部分,不需要像MS
-word那样处处修改。总而言之,使用自定义命令和环境才是正确的使用\LaTeX\ 的方式。
-
\section{本章小结}[Brief summary]
\lipsum[2]
diff --git a/macros/latex/contrib/hitszthesis/front/coverinformation.tex b/macros/latex/contrib/hitszthesis/front/coverinformation.tex
index cca578358f..6a766b0977 100644
--- a/macros/latex/contrib/hitszthesis/front/coverinformation.tex
+++ b/macros/latex/contrib/hitszthesis/front/coverinformation.tex
@@ -25,15 +25,15 @@
cxueke={工学},
csubject={机械设计制造及其自动化},
% csubject={机械工程},
- % caffil={机电工程与自动化学院},
- caffil={哈尔滨工业大学(深圳)},
+ caffil={机电工程与自动化学院},
+ % caffil={哈尔滨工业大学(深圳)},
cauthor={杨敬轩},
csupervisor={某某某 教授},
cassosupervisor={某某某 教授}, % 副指导老师
% ccosupervisor={某某某 教授}, % 联合指导老师
% 日期自动使用当前时间,若需指定按如下方式修改:
cdate={2020年6月},
- % 指定第二页封面的日期,即答辩日期
+ % 指定本科第二页封面的日期,即答辩日期
cdatesecond={2020年06月09日},
cstudentid={SZ160310217},
cstudenttype={同等学力人员}, %非全日制教育申请学位者
diff --git a/macros/latex/contrib/hitszthesis/hitszthesis-bachelor.pdf b/macros/latex/contrib/hitszthesis/hitszthesis-bachelor.pdf
index daa58b6795..185db04f52 100644
--- a/macros/latex/contrib/hitszthesis/hitszthesis-bachelor.pdf
+++ b/macros/latex/contrib/hitszthesis/hitszthesis-bachelor.pdf
Binary files differ
diff --git a/macros/latex/contrib/hitszthesis/hitszthesis-example.tex b/macros/latex/contrib/hitszthesis/hitszthesis-example.tex
index 205cf33e01..6dc0c868f9 100644
--- a/macros/latex/contrib/hitszthesis/hitszthesis-example.tex
+++ b/macros/latex/contrib/hitszthesis/hitszthesis-example.tex
@@ -3,7 +3,7 @@
% !TEX program = XeLaTeX
%%=============================================
% 模板名称:hitszthesis
-% 模板版本:V3.1
+% 模板版本:V3.2
% 模板作者:杨敬轩(Jingxuan Yang)
% 联系作者:yangjingxuan@stu.hit.edu.cn & yanglatex2e@gmail.com
% 模板交流:QQ群:1039392552,加群请备注LaTeX、hitszthesis相关说明
@@ -12,7 +12,7 @@
% GNU make 工具:make thesis
% Windows批处理脚本:双击 compile.bat 自动编译论文
% 更多编译细节详见说明文档:hitszthesis.pdf
-% 更新时间:2020/05/25
+% 更新时间:2020/06/23
% 模板帮助:请**务必务必务必**阅读 hitszthesis.pdf 说明文档,文档查看方法:
% cmd 命令行:texdoc hitszthesis
% 推荐前往模板的 GitHub 仓库获取最新文件,地址:
@@ -126,6 +126,9 @@
\input{back/acknowledgements}
% 附录
+% 设置附录部分只包含页眉
+% \SetAppendixWithOnlyHeadings
+% 设置附录部分页码从1开始编号的命令在<back/appendix01.tex>里
\begin{appendix}
\input{back/appendix01}
\input{back/appendix02}
diff --git a/macros/latex/contrib/hitszthesis/hitszthesis.dtx b/macros/latex/contrib/hitszthesis/hitszthesis.dtx
index 918854628b..5cf1c8adaf 100644
--- a/macros/latex/contrib/hitszthesis/hitszthesis.dtx
+++ b/macros/latex/contrib/hitszthesis/hitszthesis.dtx
@@ -8,7 +8,7 @@
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
-% version 2005/12/01 or later.
+% version 2008/05/04 or later.
%
% This work has the LPPL1.3c maintenance status `maintained'.
%
@@ -16,7 +16,7 @@
%
% \iffalse
%<*driver>
-\ProvidesFile{hitszthesis.dtx}[2020/05/25 3.1 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
+\ProvidesFile{hitszthesis.dtx}[2020/06/23 3.2 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
\documentclass{ltxdoc}
\usepackage{dtx-style}
@@ -94,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-bachelor.pdf}、\file{main-master.pdf} 与 \file{main-doctor.pdf}(撰写效果)。
+% \hitszthesis 宏包旨在建立一个{\bfseries 规格严格、功夫到家}的哈尔滨工业大学(深圳)学位论文模板,目前包含本硕博毕业设计(论文)模板。模板的构建基于 \pkg{hitszthesis.dtx} 与 \pkg{hitszthesis.ins},在使用本模板之前,请仔细阅读\file{hitszthesis.pdf}(本文件)、\file{main.tex}(撰写示例)及\file{hitszthesis-bachelor.pdf}、\file{hitszthesis-master.pdf} 与 \file{hitszthesis-doctor.pdf}(撰写效果)。
% \end{abstract}
%
% \vskip1.5cm
@@ -857,9 +857,9 @@
% \DescribeEnv{itemize}
% \DescribeEnv{enumerate}
% \DescribeEnv{description}
-% 为了适合中文习惯,模板将这三个常用的列表环境用 \pkg{enumitem} 进行了纵向间距压
+% 为了适合中文习惯,模板将这三个常用的列表环境用 \env{enumitem} 进行了纵向间距压
% 缩。一方面清除了多余空间,另一方面用户可以自己指定列表环境的样式(如标签符号,
-% 缩进等)。细节请参看 \pkg{enumitem} 文档,此处不再赘述。
+% 缩进等)。细节请参看 \env{enumitem} 文档,此处不再赘述。
% \subsection{后文}
%
% \subsubsection{结论}
@@ -869,7 +869,7 @@
% \lstinputlisting[style=lstStyleLaTeX]{back/conclusion.tex}
%
% \subsubsection{参考文献}
-% 在后文中的参考文献是自动生成的,不需要用户干预,具体命令在\file{main.tex} 中有
+% 在后文中的参考文献是自动生成的,不需要用户干预,具体命令在 \file{main.tex} 中有
% 示例。
%
% \subsubsection{附录}
@@ -882,6 +882,11 @@
% \end{appendix}
% \end{latex}
%
+% 若需要附录从1开始编页码,在第一篇附录的 \cs{chapter} 后面
+% 写上 \cs{SetPageNumberingFromOne} 命令即可。
+% 若要求附录部分不含页码,则在 \env{appendix} 环境之前
+% 写上 \cs{SetAppendixWithOnlyHeadings}命令。
+%
% \subsubsection{所发表文章}
% \DescribeEnv{publication}
% \PGR 与\UGR\ 中都没有明确规定此处的格式,以下仅为示例。
@@ -932,7 +937,7 @@
%<cls>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<cls>\ProvidesClass{hitszthesis}
%<cfg>\ProvidesFile{hitszthesis.cfg}
-%<cls|cfg>[2020/05/25 3.1 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
+%<cls|cfg>[2020/06/23 3.2 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
% \end{macrocode}
%
% \subsection{定义选项}
@@ -1482,9 +1487,7 @@ delim_1 "\\hspace*{\\fill}"
% \begin{macrocode}
%<*cls>
\renewcommand\normalsize{%
- \@setfontsize\normalsize{12bp}{ \ifhitsz@glue 20.50398bp \@plus 2.83465bp \@minus 0bp
- \else 19.27374bp
- \fi}%
+ \@setfontsize\normalsize{12bp}{19.27374bp \@plus 2bp \@minus 2bp}%
\abovedisplayskip=8pt
\abovedisplayshortskip=8pt
\belowdisplayskip=\abovedisplayskip
@@ -1591,14 +1594,13 @@ delim_1 "\\hspace*{\\fill}"
% \label{sec:headerfooter}
%
% \begin{macro}{\hitsz@empty}
-% \begin{macro}{\hitsz@plain}
+% \begin{macro}{\hitsz@onlyheadings}
% \begin{macro}{\hitsz@headings}
% 定义三种页眉页脚格式:
% \begin{itemize}
% \item \texttt{hitsz@empty}:页眉页脚都没有
-% \item \texttt{hitsz@plain}:只显示页脚的页码。\cs{chapter} 自动调用
-% \cs{thispagestyle\{hitsz@plain\}}。
-% \item \texttt{hitsz@headings}:页眉页脚同时显示
+% \item \texttt{hitsz@onlyheadings}:只显示页眉。
+% \item \texttt{hitsz@headings}:页眉页脚同时显示。
% \end{itemize}
% \begin{macrocode}
%<*cls>
@@ -1609,9 +1611,15 @@ delim_1 "\\hspace*{\\fill}"
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
+\fancypagestyle{hitsz@onlyheadings}{%
+ \fancyhf{}
+ \fancyhead[C]{\songti\xiaowu[0]%
+ \hitsz@cschoolname\hitsz@bachelor@cxuewei\hitsz@bachelor@cthesisname}%
+}
% \end{macrocode}
%
% 此处根据本科生模板的多种版本,提供选项自定义页码、页眉样式。
+% \changes{v3.2}{2020/06/23}{Omit '深圳' in second titlepage, heading and authorization title}
% \begin{macrocode}
\fancypagestyle{hitsz@headings}{%
\fancyhf{}
@@ -1651,7 +1659,7 @@ delim_1 "\\hspace*{\\fill}"
\fi
\ifhitsz@shenzhen
\fancyhead[C]{\songti\xiaowu[0]%
- \hitsz@cschoolname\hitsz@shenzhencampus\hitsz@bachelor@cxuewei\hitsz@bachelor@cthesisname}%
+ \hitsz@cschoolname\hitsz@bachelor@cxuewei\hitsz@bachelor@cthesisname}%
\fi
\ifhitsz@weihai
\fancyhead[C]{\songti\xiaowu[0]%
@@ -2486,7 +2494,7 @@ delim_1 "\\hspace*{\\fill}"
哈尔滨工业大学本科毕业设计(论文)原创性声明
\else%
\ifhitsz@shenzhen%
- 哈尔滨工业大学(深圳)本科毕业设计(论文)原创性声明
+ 哈尔滨工业大学本科毕业设计(论文)原创性声明
\else%
\ifhitsz@weihai%
哈尔滨工业大学(威海)本科毕业设计(论文)原创性声明
@@ -2617,17 +2625,16 @@ delim_1 "\\hspace*{\\fill}"
\newcommand{\hitsz@second@titlepage@bachelor}{
\vspace*{0.8cm}
\ifhitsz@harbin%
- \centering{\includegraphics[width=6.2cm]{hitlogo}}
+ \centering{\includegraphics[width=6.2cm]{hitlogo}}
\else%
- \ifhitsz@shenzhen%
- \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
- \kaishu\yihao\hitsz@shenzhencampus}}
- \else%
- \ifhitsz@weihai%
- \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
- \kaishu\yihao\hitsz@weihaicampus}}
- \fi%
- \fi%
+ \ifhitsz@shenzhen%
+ \centering{\includegraphics[width=6.2cm]{hitlogo}}
+ \else%
+ \ifhitsz@weihai%
+ \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
+ \kaishu\yihao\hitsz@weihaicampus}}
+ \fi%
+ \fi%
\fi%
\vspace{1.3cm}
\begin{center}
@@ -3029,7 +3036,7 @@ delim_1 "\\hspace*{\\fill}"
% \end{macrocode}
%
% 此处临时更改一下对齐方式。\CTeX\ 似乎无法应对双语目录。
-% 删除增加\cs{hangindent}的方法,其原因是\cs{numberline}多出一个空格
+% 删除增加 \cs{hangindent} 的方法,其原因是 \cs{numberline} 多出一个空格
% \begin{macrocode}
\@starttoc{toe}%
\if@restonecol\twocolumn\fi}
@@ -3053,6 +3060,8 @@ delim_1 "\\hspace*{\\fill}"
%
% 设置附录、结论、参考文献等格式。
% \changes{v3.1}{2020/05/25}{Add support to Alph abstract title for bachelor thesis}
+% \changes{v3.2}{2020/06/23}{Add \env{algorithmen} environment for original english paper}
+% \changes{v3.2}{2020/06/23}{Add \cs{appendixcaption} command for captions in original english paper}
% \begin{macrocode}
\let\hitsz@appendix\appendix
\renewenvironment{appendix}{%
@@ -3068,6 +3077,29 @@ delim_1 "\\hspace*{\\fill}"
}{%
\let\title\@gobble%
}
+% 支持附录算法英文标题
+\newenvironment{algorithmen}[1][htb]{
+ \renewcommand{\algorithmcfname}{Algorithm}%
+ \begin{algorithm}[#1]%
+}{%
+ \end{algorithm}
+}
+% 支持附录图表编号
+\newcommand{\appendixcaption}[1]{\centering\wuhao#1}
+% \end{macrocode}
+%
+% 附录页码重新编号
+% \changes{v3.2}{2020/06/23}{Add \cs{SetPageNumberingFromOne} command to set page numberging from 1}
+% \changes{v3.2}{2020/06/23}{Add \cs{SetAppendixWithOnlyHeadings} command to set appendix with only headings, i.e., without page number in bottom center}
+% \begin{macrocode}
+\newcommand{\SetPageNumberingFromOne}{\setcounter{page}{1}}
+\newcommand{\SetAppendixWithOnlyHeadings}{
+ \ctexset{
+ chapter/pagestyle = {hitsz@onlyheadings},
+ }
+ \thispagestyle{hitsz@headings}
+ \pagestyle{hitsz@onlyheadings}
+}
\let\title\@gobble
\newcommand{\hitsz@appendix@title}[1]{%
\begin{center}
@@ -3144,19 +3176,19 @@ delim_1 "\\hspace*{\\fill}"
}
\def\hitsz@authorization@bachelor{%
\ifhitsz@openright\cleardoublepage\else\clearpage\fi
- \chapter*{\ifhitsz@harbin\relax\else\sanhao\fi\hitsz@declarename@bachelor}
+ \chapter*{\ifhitsz@weihai\sanhao\fi\hitsz@declarename@bachelor}
\addcontentsline{toc}{chapter}{\hitsz@authorization@bachelor@toc}
\ifhitsz@shenzhen%
\hitsz@authorizationtext@bachelor@shenzhen
\else%
- \ifhitsz@weihai
+ \ifhitsz@weihai%
\hitsz@authorizationtext@bachelor@weihai
- \else
+ \else%
\hitsz@authorizationtext@bachelor
- \fi
- \fi
-\vspace{2\baselineskip}
-\par\hspace{6em}\hitsz@authorsig\hfill\hitsz@frontdate\hitsz@datefill
+ \fi%
+ \fi%
+ \vspace{2\baselineskip}
+ \par\hspace{6em}\hitsz@authorsig\hfill\hitsz@frontdate\hitsz@datefill
}
\NewDocumentCommand{\authorization}{o}{%
diff --git a/macros/latex/contrib/hitszthesis/hitszthesis.ins b/macros/latex/contrib/hitszthesis/hitszthesis.ins
index 7f9842300c..7ea7581114 100644
--- a/macros/latex/contrib/hitszthesis/hitszthesis.ins
+++ b/macros/latex/contrib/hitszthesis/hitszthesis.ins
@@ -1,18 +1,18 @@
%%
-% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e@gmail.com>
+%% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e@gmail.com>
%%
%% This file is part of the hitszthesis package project.
%% ---------------------------------------------------
%%
%% This file may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3a
+%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in:
%%
%% http://www.latex-project.org/lppl.txt
%%
-%% and version 1.3a or later is part of all distributions of LaTeX
-%% version 2004/10/01 or later.
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2008/05/04 or later.
%%
\input docstrip
@@ -31,14 +31,14 @@ This is a generated file.
Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e@gmail.com>
This file may be distributed and/or modified under the
-conditions of the LaTeX Project Public License, either version 1.3a
+conditions of the LaTeX Project Public License, either version 1.3c
of this license or (at your option) any later version.
The latest version of this license is in:
http://www.latex-project.org/lppl.txt
-and version 1.3a or later is part of all distributions of LaTeX
-version 2004/10/01 or later.
+and version 1.3c or later is part of all distributions of LaTeX
+version 2008/05/04 or later.
To produce the documentation run the original source files ending with `.dtx'
through LaTeX.
@@ -52,14 +52,14 @@ This is a generated file.
Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e@gmail.com>
This file may be distributed and/or modified under the
-conditions of the LaTeX Project Public License, either version 1.3a
+conditions of the LaTeX Project Public License, either version 1.3c
of this license or (at your option) any later version.
The latest version of this license is in:
http://www.latex-project.org/lppl.txt
-and version 1.3a or later is part of all distributions of LaTeX
-version 2004/10/01 or later.
+and version 1.3c or later is part of all distributions of LaTeX
+version 2008/05/04 or later.
This is the configuration file of the hitszthesis package with LaTeX2e.
@@ -71,14 +71,14 @@ This is a generated file.
Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e@gmail.com>
This file may be distributed and/or modified under the
-conditions of the LaTeX Project Public License, either version 1.3a
+conditions of the LaTeX Project Public License, either version 1.3c
of this license or (at your option) any later version.
The latest version of this license is in:
http://www.latex-project.org/lppl.txt
-and version 1.3a or later is part of all distributions of LaTeX
-version 2004/10/01 or later.
+and version 1.3c or later is part of all distributions of LaTeX
+version 2008/05/04 or later.
This is the configuration file of the hitszthesis package with LaTeX2e.
diff --git a/macros/latex/contrib/hitszthesis/hitszthesis.pdf b/macros/latex/contrib/hitszthesis/hitszthesis.pdf
index 6d507c2540..ff78df1e39 100644
--- a/macros/latex/contrib/hitszthesis/hitszthesis.pdf
+++ b/macros/latex/contrib/hitszthesis/hitszthesis.pdf
Binary files differ
diff --git a/macros/latex/contrib/hitszthesis/hitszthesis.sty b/macros/latex/contrib/hitszthesis/hitszthesis.sty
index 1eac06471b..137d01e272 100644
--- a/macros/latex/contrib/hitszthesis/hitszthesis.sty
+++ b/macros/latex/contrib/hitszthesis/hitszthesis.sty
@@ -7,7 +7,7 @@
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
-% version 2005/12/01 or later.
+% version 2008/05/04 or later.
%
% This work has the LPPL1.3c maintenance status `maintained'.
%
@@ -61,9 +61,9 @@
\SetAlgoSkip{1pt}
\renewcommand{\algocf@captiontext}[2]{\wuhao#1\algocf@typo~\AlCapFnt{}#2} % text of caption
\expandafter\ifx\csname algocf@within\endcsname\relax% if \algocf@within doesn't exist
-\renewcommand\thealgocf{\@arabic\c@algocf} % and the way it is printed
+ \renewcommand\thealgocf{\@arabic\c@algocf} % and the way it is printed
\else% else
-\renewcommand\thealgocf{\csname the\algocf@within\endcsname-\@arabic\c@algocf}
+ \renewcommand\thealgocf{\csname the\algocf@within\endcsname-\@arabic\c@algocf}
\fi
\renewcommand{\algocf@makecaption}[2]{%中英文双标题一定多于一行,因此去掉单行时的判断,并将\parbox中标题设置为居中
\addtolength{\hsize}{\algomargin}%