diff options
10 files changed, 138 insertions, 91 deletions
diff --git a/Master/texmf-dist/doc/latex/hitszthesis/README.md b/Master/texmf-dist/doc/latex/hitszthesis/README.md index 2b403e82aea..ee047e546b0 100644 --- a/Master/texmf-dist/doc/latex/hitszthesis/README.md +++ b/Master/texmf-dist/doc/latex/hitszthesis/README.md @@ -3,18 +3,18 @@ # hitszthesis: Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ) -# hitszthesis:哈尔滨工业大学(深圳)本硕博学位论文$\LaTeX$模板 +# hitszthesis:哈尔滨工业大学(深圳)本硕博学位论文LaTeX模板 ![CTAN Version](https://img.shields.io/ctan/v/hitszthesis.svg) -![Github Version](https://img.shields.io/github/release/YangLaTeX/hitszthesis.svg) +![GitHub Version](https://img.shields.io/github/release/YangLaTeX/hitszthesis.svg) ![Repo Size](https://img.shields.io/github/repo-size/YangLaTeX/hitszthesis.svg) ![License](https://img.shields.io/ctan/l/hitszthesis.svg) -[Github](https://github.com/YangLaTeX/hitszthesis) | [Download](https://github.com/YangLaTeX/hitszthesis/releases) | [Wiki](https://github.com/YangLaTeX/hitszthesis/wiki) | [CTAN](https://www.ctan.org/pkg/hitszthesis) +[GitHub](https://github.com/YangLaTeX/hitszthesis) | [Gitee](https://gitee.com/jingxuanyang/hitszthesis) | [GitLab](https://gitlab.com/jingxuanyang/hitszthesis) | [Wiki](https://github.com/YangLaTeX/hitszthesis/wiki) | [CTAN](https://www.ctan.org/pkg/hitszthesis) # 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.0.4, updated on 2020/03/13. 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.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. ```latex |- front @@ -61,7 +61,7 @@ HITSZThesis is a **dissertation** LaTeX template for **Harbin Institute of Techn # hitszthesis 模板简介 -hitszthesis 是哈尔滨工业大学(深圳)本硕博学位论文模板,当前版本为3.0.4,更新于2020年3月13日。注意3.x版本不兼容2.x版本。请加入QQ群:1039392552反馈模板使用过程中遇到的问题。 +hitszthesis 是哈尔滨工业大学(深圳)本硕博学位论文模板,当前版本为3.1,更新于2020年5月25日。注意3.x版本不兼容2.x版本。请加入QQ群:1039392552反馈模板使用过程中遇到的问题。 # Documentation @@ -95,11 +95,15 @@ Typesetting examples: * Published version: [CTAN](https://www.ctan.org/pkg/hitszthesis) * Developer version: [GitHub](https://github.com/YangLaTeX/hitszthesis) +* Developer version: [Gitee](https://gitee.com/jingxuanyang/hitszthesis) +* Developer version: [GitLab](https://gitlab.com/jingxuanyang/hitszthesis) # 下载 * 发布版本:[CTAN](https://www.ctan.org/pkg/hitszthesis) * 开发版本:[GitHub](https://github.com/YangLaTeX/hitszthesis) +* 开发版本:[Gitee](https://gitee.com/jingxuanyang/hitszthesis) +* 开发版本:[GitLab](https://gitlab.com/jingxuanyang/hitszthesis) # Updates(更新) diff --git a/Master/texmf-dist/doc/latex/hitszthesis/front/coverinformation.tex b/Master/texmf-dist/doc/latex/hitszthesis/front/coverinformation.tex index 93da0ba036c..cca578358f2 100644 --- a/Master/texmf-dist/doc/latex/hitszthesis/front/coverinformation.tex +++ b/Master/texmf-dist/doc/latex/hitszthesis/front/coverinformation.tex @@ -23,8 +23,8 @@ ctitle={基于神经网络的机器人智能抓取研究},%放在原创性声明中使用 csubtitle={一条副标题}, %一般情况没有,可以注释掉 cxueke={工学}, - % csubject={机械设计制造及其自动化}, - csubject={机械工程}, + csubject={机械设计制造及其自动化}, + % csubject={机械工程}, % caffil={机电工程与自动化学院}, caffil={哈尔滨工业大学(深圳)}, cauthor={杨敬轩}, @@ -32,7 +32,9 @@ cassosupervisor={某某某 教授}, % 副指导老师 % ccosupervisor={某某某 教授}, % 联合指导老师 % 日期自动使用当前时间,若需指定按如下方式修改: - %cdate={超新星纪元}, + cdate={2020年6月}, + % 指定第二页封面的日期,即答辩日期 + cdatesecond={2020年06月09日}, cstudentid={SZ160310217}, cstudenttype={同等学力人员}, %非全日制教育申请学位者 %(同等学力人员)、(工程硕士)、(工商管理硕士)、 diff --git a/Master/texmf-dist/doc/latex/hitszthesis/main-bachelor.pdf b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-bachelor.pdf Binary files differindex f0840a8f8e7..daa58b67954 100644 --- a/Master/texmf-dist/doc/latex/hitszthesis/main-bachelor.pdf +++ b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-bachelor.pdf diff --git a/Master/texmf-dist/doc/latex/hitszthesis/main-doctor.pdf b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-doctor.pdf Binary files differindex ac53374d4fc..ac53374d4fc 100644 --- a/Master/texmf-dist/doc/latex/hitszthesis/main-doctor.pdf +++ b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-doctor.pdf diff --git a/Master/texmf-dist/doc/latex/hitszthesis/main.tex b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-example.tex index a0699934007..205cf33e01d 100644 --- a/Master/texmf-dist/doc/latex/hitszthesis/main.tex +++ b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-example.tex @@ -3,7 +3,7 @@ % !TEX program = XeLaTeX %%============================================= % 模板名称:hitszthesis -% 模板版本:V3.0.4 +% 模板版本:V3.1 % 模板作者:杨敬轩(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/03/12 +% 更新时间:2020/05/25 % 模板帮助:请**务必务必务必**阅读 hitszthesis.pdf 说明文档,文档查看方法: % cmd 命令行:texdoc hitszthesis % 推荐前往模板的 GitHub 仓库获取最新文件,地址: @@ -20,9 +20,9 @@ %%============================================= % 设置文档类别为 <hitszthesis> -\documentclass[type=doctor]{hitszthesis} +% \documentclass[type=doctor]{hitszthesis} % \documentclass[type=master]{hitszthesis} -% \documentclass[type=bachelor,infoleft=true]{hitszthesis} +\documentclass[type=bachelor,infoleft=true]{hitszthesis} % 模板提供以下选项,各个选项之间不要有空格 % 1. type=bachelor|master|doctor @@ -48,6 +48,8 @@ % 含义:博士论文是否要求章节首页必须在奇数页,默认否(false) % 10. library=true|false % 含义:是否为提交到图书馆的电子版,默认否(false) +% 11. alphappendix=true|false +% 含义:本科毕业设计附录章节编号是否为大写字母,默认是(true) % 自定义设置与额外加载的宏包请写在 \file{hitszthesis.sty} 里 \usepackage{hitszthesis} @@ -107,64 +109,64 @@ %%%% \begin{本科书序} %%%% 这是一个假的环境,本科请用这里的内容 -% % 结论 -% \input{back/conclusion} +% 结论 +\input{back/conclusion} -% % 参考文献 -% \bibliographystyle{hitszthesis} -% \bibliography{reference} +% 参考文献 +\bibliographystyle{hitszthesis} +\bibliography{reference} -% % 授权 -% \authorization +% 授权 +\authorization -% % 授权页为扫描的PDF文件(scan.pdf),与上面的命令互斥 -% % \authorization[scan.pdf] +% 授权页为扫描的PDF文件(scan.pdf),与上面的命令互斥 +% \authorization[scan.pdf] -% % 致谢 -% \input{back/acknowledgements} +% 致谢 +\input{back/acknowledgements} -% % 附录 -% \begin{appendix} -% \input{back/appendix01} -% \input{back/appendix02} -% \input{back/appendix03} -% \end{appendix} +% 附录 +\begin{appendix} + \input{back/appendix01} + \input{back/appendix02} + \input{back/appendix03} +\end{appendix} %%%% \end{本科书序} %%%% \begin{硕博书序} %%%% 这是一个假的环境,硕、博请用这里的内容 -% 结论 -\input{back/conclusion} +% % 结论 +% \input{back/conclusion} -% 参考文献 -\bibliographystyle{hitszthesis} -\bibliography{reference} +% % 参考文献 +% \bibliographystyle{hitszthesis} +% \bibliography{reference} -% 附录 -\begin{appendix} - \input{back/appendixA.tex} - \input{back/appendixB.tex} -\end{appendix} +% % 附录 +% \begin{appendix} +% \input{back/appendixA.tex} +% \input{back/appendixB.tex} +% \end{appendix} -% 发表文章 -\input{back/publications} +% % 发表文章 +% \input{back/publications} -% 索引 -% \input{back/ceindex} +% % 索引 +% % \input{back/ceindex} -% 授权 -\authorization +% % 授权 +% \authorization -% 授权页为扫描的PDF文件(scan.pdf),与上面的命令互斥 -% \authorization[scan.pdf] +% % 授权页为扫描的PDF文件(scan.pdf),与上面的命令互斥 +% % \authorization[scan.pdf] -% 致谢 -\input{back/acknowledgements} +% % 致谢 +% \input{back/acknowledgements} -% 个人简介 -\input{back/resume} +% % 个人简介 +% \input{back/resume} %%%% \end{硕博书序} diff --git a/Master/texmf-dist/doc/latex/hitszthesis/main-master.pdf b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-master.pdf Binary files differindex fad23a367a0..fad23a367a0 100644 --- a/Master/texmf-dist/doc/latex/hitszthesis/main-master.pdf +++ b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis-master.pdf diff --git a/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.cfg b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.cfg index 4b76936ad0d..aedd783ca64 100644 --- a/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.cfg +++ b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.cfg @@ -23,7 +23,7 @@ %% This is the configuration file of the hitszthesis package with LaTeX2e. %% \ProvidesFile{hitszthesis.cfg} -[2020/03/13 3.0.4 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)] +[2020/05/25 3.1 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)] \theorembodyfont{\normalfont} \theoremheaderfont{\normalfont\heiti} \theoremsymbol{\ensuremath{\square}} diff --git a/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.pdf b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.pdf Binary files differindex 89626c38e45..6d507c25408 100644 --- a/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.pdf +++ b/Master/texmf-dist/doc/latex/hitszthesis/hitszthesis.pdf diff --git a/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.dtx b/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.dtx index 0d615ac5842..918854628b9 100644 --- a/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.dtx +++ b/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.dtx @@ -16,7 +16,7 @@ % % \iffalse %<*driver> -\ProvidesFile{hitszthesis.dtx}[2020/03/13 3.0.4 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)] +\ProvidesFile{hitszthesis.dtx}[2020/05/25 3.1 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)] \documentclass{ltxdoc} \usepackage{dtx-style} @@ -932,7 +932,7 @@ %<cls>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<cls>\ProvidesClass{hitszthesis} %<cfg>\ProvidesFile{hitszthesis.cfg} -%<cls|cfg>[2020/03/13 3.0.4 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)] +%<cls|cfg>[2020/05/25 3.1 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)] % \end{macrocode} % % \subsection{定义选项} @@ -1072,6 +1072,11 @@ \DeclareBoolOption[true]{absupper} % \end{macrocode} % +% 本科附录章节编号是否为大写字母 +% \begin{macrocode} +\DeclareBoolOption[true]{alphappendix} +% \end{macrocode} +% % 此处添加控制本科论文的页码横线选项 % \begin{macrocode} \DeclareBoolOption[true]{bsmainpagenumberline} @@ -2327,17 +2332,18 @@ delim_1 "\\hspace*{\\fill}" \hitsz@def@term{natclassifiedindex} %国内图书分类号 \hitsz@def@term{intclassifiedindex} %国际图书分类号 -\hitsz@def@term{ctitlecover} %中文标题封面 -\hitsz@def@term{ctitle} %中文标题 -\hitsz@def@term{csubtitle} %中文副标题 -\hitsz@def@term{cxueke} %中文学科 -\hitsz@def@term{cauthor} %中文作者 -\hitsz@def@term{csupervisor} %中文导师 -\hitsz@def@term{cassosupervisor} %中文副导师 -\hitsz@def@term{ccosupervisor}%中文联合导师 -\hitsz@def@term{caffil}%中文院系 -\hitsz@def@term{csubject}%中文专业 -\hitsz@def@term{cdate} +\hitsz@def@term{ctitlecover} % 中文标题封面 +\hitsz@def@term{ctitle} % 中文标题 +\hitsz@def@term{csubtitle} % 中文副标题 +\hitsz@def@term{cxueke} % 中文学科 +\hitsz@def@term{cauthor} % 中文作者 +\hitsz@def@term{csupervisor} % 中文导师 +\hitsz@def@term{cassosupervisor} % 中文副导师 +\hitsz@def@term{ccosupervisor} % 中文联合导师 +\hitsz@def@term{caffil} % 中文院系 +\hitsz@def@term{csubject} % 中文专业 +\hitsz@def@term{cdate} % 封面日期指定 +\hitsz@def@term{cdatesecond} % 第二页日期指定 \hitsz@def@term{cstudentid}% \hitsz@def@term{cstudenttype}% @@ -2646,7 +2652,7 @@ delim_1 "\\hspace*{\\fill}" {\hitsz@put@title{\hitsz@bachelor@csupervisortitle}} & \underline{\makebox[\infowidth][l]{\hspace*{1em}\songti\textbf{\hitsz@csupervisor}}}\\ {\hitsz@put@title{\hitsz@cdatetitle}} & - \underline{\makebox[\infowidth][l]{\hspace*{1em}\songti\textbf{\CJK@todaysmall}}} + \underline{\makebox[\infowidth][l]{\hspace*{1em}\songti\textbf{\hitsz@cdatesecond}}} \end{tabular} \else \begin{tabular}{l@{\ \ }c} @@ -2663,7 +2669,7 @@ delim_1 "\\hspace*{\\fill}" {\hitsz@put@title{\hitsz@bachelor@csupervisortitle}} & \underline{\makebox[\infowidth]{\songti\textbf{\hitsz@csupervisor}}}\\ {\hitsz@put@title{\hitsz@cdatetitle}} & - \underline{\makebox[\infowidth]{\songti\textbf{\CJK@todaysmall}}} + \underline{\makebox[\infowidth]{\songti\textbf{\hitsz@cdatesecond}}} \end{tabular} \fi \renewcommand{\arraystretch}{1} @@ -3033,19 +3039,35 @@ delim_1 "\\hspace*{\\fill}" % 目录中附录的章号格式。 % \begin{macrocode} \ctexset{% - appendix/number=\ifhitsz@bachelor\arabic{chapter}\else\Alph{chapter}\fi, + appendix/number=\ifhitsz@bachelor% + \ifhitsz@alphappendix% + \Alph{chapter}% + \else% + \arabic{chapter}% + \fi% + \else% + \Alph{chapter}% + \fi,% } % \end{macrocode} % % 设置附录、结论、参考文献等格式。 +% \changes{v3.1}{2020/05/25}{Add support to Alph abstract title for bachelor thesis} % \begin{macrocode} \let\hitsz@appendix\appendix \renewenvironment{appendix}{% - \let\title\hitsz@appendix@title - \hitsz@appendix - \ifhitsz@bachelor\renewcommand{\thechapter}{\arabic{chapter}}\fi + \let\title\hitsz@appendix@title% + \hitsz@appendix% + \ifhitsz@bachelor% + \ifhitsz@alphappendix% + \renewcommand{\thechapter}{\Alph{chapter}}% + \else% + \renewcommand{\thechapter}{\arabic{chapter}}% + \fi% + \fi% }{% - \let\title\@gobble} + \let\title\@gobble% +} \let\title\@gobble \newcommand{\hitsz@appendix@title}[1]{% \begin{center} diff --git a/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls b/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls index 7a5e204b370..954f215456e 100644 --- a/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls +++ b/Master/texmf-dist/tex/latex/hitszthesis/hitszthesis.cls @@ -25,7 +25,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{hitszthesis} -[2020/03/13 3.0.4 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)] +[2020/05/25 3.1 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)] \RequirePackage{ifthen} \RequirePackage{kvoptions} \SetupKeyvalOptions{ @@ -76,6 +76,7 @@ \DeclareBoolOption[true]{capcenterlast} \DeclareBoolOption[true]{subcapcenterlast} \DeclareBoolOption[true]{absupper} +\DeclareBoolOption[true]{alphappendix} \DeclareBoolOption[true]{bsmainpagenumberline} \DeclareBoolOption[true]{bsfrontpagenumberline} \DeclareBoolOption[true]{bsheadrule} @@ -746,17 +747,18 @@ \hitsz@def@term{natclassifiedindex} %国内图书分类号 \hitsz@def@term{intclassifiedindex} %国际图书分类号 -\hitsz@def@term{ctitlecover} %中文标题封面 -\hitsz@def@term{ctitle} %中文标题 -\hitsz@def@term{csubtitle} %中文副标题 -\hitsz@def@term{cxueke} %中文学科 -\hitsz@def@term{cauthor} %中文作者 -\hitsz@def@term{csupervisor} %中文导师 -\hitsz@def@term{cassosupervisor} %中文副导师 -\hitsz@def@term{ccosupervisor}%中文联合导师 -\hitsz@def@term{caffil}%中文院系 -\hitsz@def@term{csubject}%中文专业 -\hitsz@def@term{cdate} +\hitsz@def@term{ctitlecover} % 中文标题封面 +\hitsz@def@term{ctitle} % 中文标题 +\hitsz@def@term{csubtitle} % 中文副标题 +\hitsz@def@term{cxueke} % 中文学科 +\hitsz@def@term{cauthor} % 中文作者 +\hitsz@def@term{csupervisor} % 中文导师 +\hitsz@def@term{cassosupervisor} % 中文副导师 +\hitsz@def@term{ccosupervisor} % 中文联合导师 +\hitsz@def@term{caffil} % 中文院系 +\hitsz@def@term{csubject} % 中文专业 +\hitsz@def@term{cdate} % 封面日期指定 +\hitsz@def@term{cdatesecond} % 第二页日期指定 \hitsz@def@term{cstudentid}% \hitsz@def@term{cstudenttype}% @@ -909,7 +911,7 @@ {\hitsz@put@title{\hitsz@bachelor@csupervisortitle}} & \underline{\makebox[\infowidth][l]{\hspace*{1em}\songti\textbf{\hitsz@csupervisor}}}\\ {\hitsz@put@title{\hitsz@cdatetitle}} & - \underline{\makebox[\infowidth][l]{\hspace*{1em}\songti\textbf{\CJK@todaysmall}}} + \underline{\makebox[\infowidth][l]{\hspace*{1em}\songti\textbf{\hitsz@cdatesecond}}} \end{tabular} \else \begin{tabular}{l@{\ \ }c} @@ -926,7 +928,7 @@ {\hitsz@put@title{\hitsz@bachelor@csupervisortitle}} & \underline{\makebox[\infowidth]{\songti\textbf{\hitsz@csupervisor}}}\\ {\hitsz@put@title{\hitsz@cdatetitle}} & - \underline{\makebox[\infowidth]{\songti\textbf{\CJK@todaysmall}}} + \underline{\makebox[\infowidth]{\songti\textbf{\hitsz@cdatesecond}}} \end{tabular} \fi \renewcommand{\arraystretch}{1} @@ -1233,15 +1235,30 @@ \if@restonecol\twocolumn\fi} \def\@dotsep{0.75} % 定义英文目录的点间距 \ctexset{% - appendix/number=\ifhitsz@bachelor\arabic{chapter}\else\Alph{chapter}\fi, + appendix/number=\ifhitsz@bachelor% + \ifhitsz@alphappendix% + \Alph{chapter}% + \else% + \arabic{chapter}% + \fi% + \else% + \Alph{chapter}% + \fi,% } \let\hitsz@appendix\appendix \renewenvironment{appendix}{% - \let\title\hitsz@appendix@title - \hitsz@appendix - \ifhitsz@bachelor\renewcommand{\thechapter}{\arabic{chapter}}\fi + \let\title\hitsz@appendix@title% + \hitsz@appendix% + \ifhitsz@bachelor% + \ifhitsz@alphappendix% + \renewcommand{\thechapter}{\Alph{chapter}}% + \else% + \renewcommand{\thechapter}{\arabic{chapter}}% + \fi% + \fi% }{% - \let\title\@gobble} + \let\title\@gobble% +} \let\title\@gobble \newcommand{\hitsz@appendix@title}[1]{% \begin{center} |