From 68218acf993770c592e4f8dcafcb739bb1245b3b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 25 May 2020 21:11:58 +0000 Subject: hitszthesis (25may20) git-svn-id: svn://tug.org/texlive/trunk@55272 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/hitszthesis/hitszthesis.dtx | 62 +++++++++++++++------- 1 file changed, 42 insertions(+), 20 deletions(-) (limited to 'Master/texmf-dist/source') 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 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesClass{hitszthesis} %\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)] % \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} -- cgit v1.2.3