texlive[55637] Master/texmf-dist: hitszthesis (23jun20)

commits+karl at tug.org commits+karl at tug.org
Tue Jun 23 23:19:29 CEST 2020


Revision: 55637
          http://tug.org/svn/texlive?view=revision&revision=55637
Author:   karl
Date:     2020-06-23 23:19:28 +0200 (Tue, 23 Jun 2020)
Log Message:
-----------
hitszthesis (23jun20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/hitszthesis/README.md
    trunk/Master/texmf-dist/doc/latex/hitszthesis/back/appendix01.tex
    trunk/Master/texmf-dist/doc/latex/hitszthesis/back/appendix02.tex
    trunk/Master/texmf-dist/doc/latex/hitszthesis/body/chapter02.tex
    trunk/Master/texmf-dist/doc/latex/hitszthesis/body/chapter06.tex
    trunk/Master/texmf-dist/doc/latex/hitszthesis/dtx-style.sty
    trunk/Master/texmf-dist/doc/latex/hitszthesis/front/coverinformation.tex
    trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-bachelor.pdf
    trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-example.tex
    trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.cfg
    trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.pdf
    trunk/Master/texmf-dist/makeindex/hitszthesis/hitszthesis.ist
    trunk/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.dtx
    trunk/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.ins
    trunk/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls
    trunk/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.sty

Modified: trunk/Master/texmf-dist/doc/latex/hitszthesis/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hitszthesis/README.md	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/doc/latex/hitszthesis/README.md	2020-06-23 21:19:28 UTC (rev 55637)
@@ -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.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 模板简介
 
-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
 

Modified: trunk/Master/texmf-dist/doc/latex/hitszthesis/back/appendix01.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hitszthesis/back/appendix01.tex	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/doc/latex/hitszthesis/back/appendix01.tex	2020-06-23 21:19:28 UTC (rev 55637)
@@ -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

Modified: trunk/Master/texmf-dist/doc/latex/hitszthesis/back/appendix02.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hitszthesis/back/appendix02.tex	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/doc/latex/hitszthesis/back/appendix02.tex	2020-06-23 21:19:28 UTC (rev 55637)
@@ -94,11 +94,11 @@
   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 @@
     \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 @@
 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

Modified: trunk/Master/texmf-dist/doc/latex/hitszthesis/body/chapter02.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hitszthesis/body/chapter02.tex	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/doc/latex/hitszthesis/body/chapter02.tex	2020-06-23 21:19:28 UTC (rev 55637)
@@ -110,7 +110,7 @@
 
 无意义文字,每页底部不要留空白。
 
-\lipsum[1]
+\lipsum[4-5]
 
 \begin{figure}[!ht]
 \setlength{\subfigcapskip}{-1bp}

Modified: trunk/Master/texmf-dist/doc/latex/hitszthesis/body/chapter06.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hitszthesis/body/chapter06.tex	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/doc/latex/hitszthesis/body/chapter06.tex	2020-06-23 21:19:28 UTC (rev 55637)
@@ -73,14 +73,20 @@
 
 \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 @@
 \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]

Modified: trunk/Master/texmf-dist/doc/latex/hitszthesis/dtx-style.sty
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hitszthesis/dtx-style.sty	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/doc/latex/hitszthesis/dtx-style.sty	2020-06-23 21:19:28 UTC (rev 55637)
@@ -11,14 +11,14 @@
 %% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e at 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.

Modified: trunk/Master/texmf-dist/doc/latex/hitszthesis/front/coverinformation.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hitszthesis/front/coverinformation.tex	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/doc/latex/hitszthesis/front/coverinformation.tex	2020-06-23 21:19:28 UTC (rev 55637)
@@ -25,8 +25,8 @@
   cxueke={工学},
   csubject={机械设计制造及其自动化},
   % csubject={机械工程},
-  % caffil={机电工程与自动化学院},
-  caffil={哈尔滨工业大学(深圳)},
+  caffil={机电工程与自动化学院},
+  % caffil={哈尔滨工业大学(深圳)},
   cauthor={杨敬轩},
   csupervisor={某某某 教授},
   cassosupervisor={某某某 教授}, % 副指导老师
@@ -33,7 +33,7 @@
   % ccosupervisor={某某某 教授}, % 联合指导老师
   % 日期自动使用当前时间,若需指定按如下方式修改:
   cdate={2020年6月},
-  % 指定第二页封面的日期,即答辩日期
+  % 指定本科第二页封面的日期,即答辩日期
   cdatesecond={2020年06月09日},
   cstudentid={SZ160310217},
   cstudenttype={同等学力人员}, %非全日制教育申请学位者

Modified: trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-bachelor.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-example.tex	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-example.tex	2020-06-23 21:19:28 UTC (rev 55637)
@@ -3,7 +3,7 @@
 % !TEX program  = XeLaTeX
 %%=============================================
 % 模板名称:hitszthesis
-% 模板版本:V3.1
+% 模板版本:V3.2
 % 模板作者:杨敬轩(Jingxuan Yang)
 % 联系作者:yangjingxuan at stu.hit.edu.cn & yanglatex2e at 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}

Modified: trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.cfg
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.cfg	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.cfg	2020-06-23 21:19:28 UTC (rev 55637)
@@ -11,19 +11,19 @@
 %% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e at 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.
 %% 
 \ProvidesFile{hitszthesis.cfg}
-[2020/05/25 3.1 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
+[2020/06/23 3.2 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
 \theorembodyfont{\normalfont}
 \theoremheaderfont{\normalfont\heiti}
 \theoremsymbol{\ensuremath{\square}}
@@ -170,7 +170,7 @@
   哈尔滨工业大学本科毕业设计(论文)原创性声明
 \else%
   \ifhitsz at shenzhen%
-    哈尔滨工业大学(深圳)本科毕业设计(论文)原创性声明
+    哈尔滨工业大学本科毕业设计(论文)原创性声明
   \else%
     \ifhitsz at weihai%
       哈尔滨工业大学(威海)本科毕业设计(论文)原创性声明

Modified: trunk/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/makeindex/hitszthesis/hitszthesis.ist
===================================================================
--- trunk/Master/texmf-dist/makeindex/hitszthesis/hitszthesis.ist	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/makeindex/hitszthesis/hitszthesis.ist	2020-06-23 21:19:28 UTC (rev 55637)
@@ -11,14 +11,14 @@
 %% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e at 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.
 %% 

Modified: trunk/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.dtx	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.dtx	2020-06-23 21:19:28 UTC (rev 55637)
@@ -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 @@
 %    \begin{macrocode}
 %<*cls>
 \renewcommand\normalsize{%
-  \@setfontsize\normalsize{12bp}{ \ifhitsz at 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 @@
 % \label{sec:headerfooter}
 %
 % \begin{macro}{\hitsz at empty}
-% \begin{macro}{\hitsz at plain}
+% \begin{macro}{\hitsz at onlyheadings}
 % \begin{macro}{\hitsz at headings}
 % 定义三种页眉页脚格式:
 % \begin{itemize}
 % \item \texttt{hitsz at empty}:页眉页脚都没有
-% \item \texttt{hitsz at plain}:只显示页脚的页码。\cs{chapter} 自动调用
-% \cs{thispagestyle\{hitsz at plain\}}。
-% \item \texttt{hitsz at headings}:页眉页脚同时显示
+% \item \texttt{hitsz at onlyheadings}:只显示页眉。
+% \item \texttt{hitsz at headings}:页眉页脚同时显示。
 % \end{itemize}
 %    \begin{macrocode}
 %<*cls>
@@ -1609,9 +1611,15 @@
   \renewcommand{\headrulewidth}{0pt}
   \renewcommand{\footrulewidth}{0pt}
 }
+\fancypagestyle{hitsz at onlyheadings}{%
+  \fancyhf{}
+  \fancyhead[C]{\songti\xiaowu[0]%
+    \hitsz at cschoolname\hitsz at bachelor@cxuewei\hitsz at bachelor@cthesisname}%
+}
 %    \end{macrocode}
 %
 %    此处根据本科生模板的多种版本,提供选项自定义页码、页眉样式。
+% \changes{v3.2}{2020/06/23}{Omit '深圳' in second titlepage, heading and authorization title}
 %    \begin{macrocode}
 \fancypagestyle{hitsz at headings}{%
   \fancyhf{}
@@ -1651,7 +1659,7 @@
     \fi
     \ifhitsz at shenzhen
       \fancyhead[C]{\songti\xiaowu[0]%
-        \hitsz at cschoolname\hitsz at shenzhencampus\hitsz at bachelor@cxuewei\hitsz at bachelor@cthesisname}%
+        \hitsz at cschoolname\hitsz at bachelor@cxuewei\hitsz at bachelor@cthesisname}%
     \fi
     \ifhitsz at weihai
       \fancyhead[C]{\songti\xiaowu[0]%
@@ -2486,7 +2494,7 @@
   哈尔滨工业大学本科毕业设计(论文)原创性声明
 \else%
   \ifhitsz at shenzhen%
-    哈尔滨工业大学(深圳)本科毕业设计(论文)原创性声明
+    哈尔滨工业大学本科毕业设计(论文)原创性声明
   \else%
     \ifhitsz at weihai%
       哈尔滨工业大学(威海)本科毕业设计(论文)原创性声明
@@ -2617,18 +2625,17 @@
 \newcommand{\hitsz at second@titlepage at bachelor}{
   \vspace*{0.8cm}
   \ifhitsz at harbin%
-  \centering{\includegraphics[width=6.2cm]{hitlogo}}
+    \centering{\includegraphics[width=6.2cm]{hitlogo}}
   \else%
-  \ifhitsz at shenzhen%
-  \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
-    \kaishu\yihao\hitsz at shenzhencampus}}
-  \else%
-  \ifhitsz at weihai%
-  \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
-    \kaishu\yihao\hitsz at weihaicampus}}
+    \ifhitsz at shenzhen%
+      \centering{\includegraphics[width=6.2cm]{hitlogo}}
+    \else%
+      \ifhitsz at weihai%
+        \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
+        \kaishu\yihao\hitsz at weihaicampus}}
+      \fi%
+    \fi%
   \fi%
-  \fi%
-  \fi%
   \vspace{1.3cm}
   \begin{center}
     \centering\includegraphics[width=10.5cm]{bthesistitle}
@@ -3029,7 +3036,7 @@
 %    \end{macrocode}
 %
 % 此处临时更改一下对齐方式。\CTeX\ 似乎无法应对双语目录。
-% 删除增加\cs{hangindent}的方法,其原因是\cs{numberline}多出一个空格
+% 删除增加 \cs{hangindent} 的方法,其原因是 \cs{numberline} 多出一个空格
 %    \begin{macrocode}
   \@starttoc{toe}%
   \if at restonecol\twocolumn\fi}
@@ -3053,6 +3060,8 @@
 %
 % 设置附录、结论、参考文献等格式。
 % \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 at appendix\appendix
 \renewenvironment{appendix}{%
@@ -3068,6 +3077,29 @@
   }{%
   \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 at onlyheadings},
+  }
+  \thispagestyle{hitsz at headings}
+  \pagestyle{hitsz at onlyheadings}
+}
 \let\title\@gobble
 \newcommand{\hitsz at appendix@title}[1]{%
   \begin{center}
@@ -3144,19 +3176,19 @@
 }
 \def\hitsz at authorization@bachelor{%
   \ifhitsz at openright\cleardoublepage\else\clearpage\fi
-  \chapter*{\ifhitsz at harbin\relax\else\sanhao\fi\hitsz at declarename@bachelor}
+  \chapter*{\ifhitsz at weihai\sanhao\fi\hitsz at declarename@bachelor}
   \addcontentsline{toc}{chapter}{\hitsz at authorization@bachelor at toc}
   \ifhitsz at shenzhen%
     \hitsz at authorizationtext@bachelor at shenzhen
   \else%
-    \ifhitsz at weihai
+    \ifhitsz at weihai%
       \hitsz at authorizationtext@bachelor at weihai
-    \else
+    \else%
       \hitsz at authorizationtext@bachelor
-    \fi
-  \fi
-\vspace{2\baselineskip}
-\par\hspace{6em}\hitsz at authorsig\hfill\hitsz at frontdate\hitsz at datefill
+    \fi%
+  \fi%
+  \vspace{2\baselineskip}
+  \par\hspace{6em}\hitsz at authorsig\hfill\hitsz at frontdate\hitsz at datefill
 }
 
 \NewDocumentCommand{\authorization}{o}{%

Modified: trunk/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.ins	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.ins	2020-06-23 21:19:28 UTC (rev 55637)
@@ -1,18 +1,18 @@
 %%
-% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e at gmail.com>
+%% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e at 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 @@
 Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e at 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 @@
 Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e at 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 @@
 Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e at 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.
 

Modified: trunk/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls	2020-06-23 21:19:28 UTC (rev 55637)
@@ -11,14 +11,14 @@
 %% Copyright (C) 2019-2020 by Jingxuan Yang <yanglatex2e at 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.
@@ -25,7 +25,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesClass{hitszthesis}
-[2020/05/25 3.1 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
+[2020/06/23 3.2 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)]
 \RequirePackage{ifthen}
 \RequirePackage{kvoptions}
 \SetupKeyvalOptions{
@@ -272,9 +272,7 @@
   \ifhitsz at openright\cleardoublepage\else\clearpage\fi
   \@mainmattertrue}
 \renewcommand\normalsize{%
-  \@setfontsize\normalsize{12bp}{ \ifhitsz at 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
@@ -308,6 +306,11 @@
   \renewcommand{\headrulewidth}{0pt}
   \renewcommand{\footrulewidth}{0pt}
 }
+\fancypagestyle{hitsz at onlyheadings}{%
+  \fancyhf{}
+  \fancyhead[C]{\songti\xiaowu[0]%
+    \hitsz at cschoolname\hitsz at bachelor@cxuewei\hitsz at bachelor@cthesisname}%
+}
 \fancypagestyle{hitsz at headings}{%
   \fancyhf{}
   \ifhitsz at doctor
@@ -346,7 +349,7 @@
     \fi
     \ifhitsz at shenzhen
       \fancyhead[C]{\songti\xiaowu[0]%
-        \hitsz at cschoolname\hitsz at shenzhencampus\hitsz at bachelor@cxuewei\hitsz at bachelor@cthesisname}%
+        \hitsz at cschoolname\hitsz at bachelor@cxuewei\hitsz at bachelor@cthesisname}%
     \fi
     \ifhitsz at weihai
       \fancyhead[C]{\songti\xiaowu[0]%
@@ -876,18 +879,17 @@
 \newcommand{\hitsz at second@titlepage at bachelor}{
   \vspace*{0.8cm}
   \ifhitsz at harbin%
-  \centering{\includegraphics[width=6.2cm]{hitlogo}}
+    \centering{\includegraphics[width=6.2cm]{hitlogo}}
   \else%
-  \ifhitsz at shenzhen%
-  \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
-    \kaishu\yihao\hitsz at shenzhencampus}}
-  \else%
-  \ifhitsz at weihai%
-  \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
-    \kaishu\yihao\hitsz at weihaicampus}}
+    \ifhitsz at shenzhen%
+      \centering{\includegraphics[width=6.2cm]{hitlogo}}
+    \else%
+      \ifhitsz at weihai%
+        \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{%
+        \kaishu\yihao\hitsz at weihaicampus}}
+      \fi%
+    \fi%
   \fi%
-  \fi%
-  \fi%
   \vspace{1.3cm}
   \begin{center}
     \centering\includegraphics[width=10.5cm]{bthesistitle}
@@ -1259,6 +1261,21 @@
   }{%
   \let\title\@gobble%
 }
+\newenvironment{algorithmen}[1][htb]{
+  \renewcommand{\algorithmcfname}{Algorithm}%
+  \begin{algorithm}[#1]%
+}{%
+  \end{algorithm}
+}
+\newcommand{\appendixcaption}[1]{\centering\wuhao#1}
+\newcommand{\SetPageNumberingFromOne}{\setcounter{page}{1}}
+\newcommand{\SetAppendixWithOnlyHeadings}{
+  \ctexset{
+    chapter/pagestyle = {hitsz at onlyheadings},
+  }
+  \thispagestyle{hitsz at headings}
+  \pagestyle{hitsz at onlyheadings}
+}
 \let\title\@gobble
 \newcommand{\hitsz at appendix@title}[1]{%
   \begin{center}
@@ -1331,19 +1348,19 @@
 }
 \def\hitsz at authorization@bachelor{%
   \ifhitsz at openright\cleardoublepage\else\clearpage\fi
-  \chapter*{\ifhitsz at harbin\relax\else\sanhao\fi\hitsz at declarename@bachelor}
+  \chapter*{\ifhitsz at weihai\sanhao\fi\hitsz at declarename@bachelor}
   \addcontentsline{toc}{chapter}{\hitsz at authorization@bachelor at toc}
   \ifhitsz at shenzhen%
     \hitsz at authorizationtext@bachelor at shenzhen
   \else%
-    \ifhitsz at weihai
+    \ifhitsz at weihai%
       \hitsz at authorizationtext@bachelor at weihai
-    \else
+    \else%
       \hitsz at authorizationtext@bachelor
-    \fi
-  \fi
-\vspace{2\baselineskip}
-\par\hspace{6em}\hitsz at authorsig\hfill\hitsz at frontdate\hitsz at datefill
+    \fi%
+  \fi%
+  \vspace{2\baselineskip}
+  \par\hspace{6em}\hitsz at authorsig\hfill\hitsz at frontdate\hitsz at datefill
 }
 
 \NewDocumentCommand{\authorization}{o}{%

Modified: trunk/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.sty	2020-06-23 21:19:06 UTC (rev 55636)
+++ trunk/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.sty	2020-06-23 21:19:28 UTC (rev 55637)
@@ -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 at captiontext}[2]{\wuhao#1\algocf at typo~\AlCapFnt{}#2} % text of caption
 \expandafter\ifx\csname algocf at within\endcsname\relax% if \algocf at within doesn't exist
-\renewcommand\thealgocf{\@arabic\c at algocf} % and the way it is printed
+  \renewcommand\thealgocf{\@arabic\c at algocf} % and the way it is printed
 \else%                                    else
-\renewcommand\thealgocf{\csname the\algocf at within\endcsname-\@arabic\c at algocf}
+  \renewcommand\thealgocf{\csname the\algocf at within\endcsname-\@arabic\c at algocf}
 \fi
 \renewcommand{\algocf at makecaption}[2]{%中英文双标题一定多于一行,因此去掉单行时的判断,并将\parbox中标题设置为居中
   \addtolength{\hsize}{\algomargin}%



More information about the tex-live-commits mailing list.