diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/hitszthesis')
4 files changed, 231 insertions, 116 deletions
diff --git a/Master/texmf-dist/source/latex/hitszthesis/Makefile b/Master/texmf-dist/source/latex/hitszthesis/Makefile index 4bba9876b83..4ebf11aee34 100644 --- a/Master/texmf-dist/source/latex/hitszthesis/Makefile +++ b/Master/texmf-dist/source/latex/hitszthesis/Makefile @@ -69,13 +69,13 @@ $(THESISMAIN).idx: $(THESISMAIN).bbl $(THESISMAIN)_china.idx : $(CLSFILES) $(THESISMAIN).bbl $(THESISMAIN).idx - splitindex $(THESISMAIN) -- -s $(PACKAGE).ist # 自动生成索引 + splitindex $(THESISMAIN) -- -s $(PACKAGE).ist $(THESISMAIN)_english.ind $(THESISMAIN)_china.ind $(THESISMAIN)_english.idx : $(THESISMAIN)_china.idx $(THESISMAIN).pdf: $(CLSFILES) $(THESISCONTENTS) $(THESISMAIN)_china.ind $(THESISMAIN)_china.idx $(THESISMAIN)_english.ind $(THESISMAIN)_english.idx $(THESISMAIN).bbl $(METHOD) $(THESISMAIN) - splitindex $(THESISMAIN) -- -s $(PACKAGE).ist # 自动生成索引 + splitindex $(THESISMAIN) -- -s $(PACKAGE).ist $(METHOD) $(THESISMAIN) $(THESISMAIN).bbl: $(BIBFILE) diff --git a/Master/texmf-dist/source/latex/hitszthesis/compile.bat b/Master/texmf-dist/source/latex/hitszthesis/compile.bat index 3ef4d414633..3c99e2cb441 100755 --- a/Master/texmf-dist/source/latex/hitszthesis/compile.bat +++ b/Master/texmf-dist/source/latex/hitszthesis/compile.bat @@ -10,13 +10,11 @@ if %flag%x == x ( )
if %flag%x == thesisx (
- call :cleanall
call :thesis
if ERRORLEVEL 1 (
echo Error! Please check the 'main.log' for more details...
pause
) else (
- call :clean
echo Finished!
)
goto :EOF
@@ -54,6 +52,13 @@ if %flag%x == wordcountx ( goto :EOF
)
+if %flag%x == devx (
+ call :doc
+ call :thesis
+ call :cleanall
+ goto :EOF
+)
+
:help
echo This is the compile batch script for hitszhesis.
echo Usage:
@@ -72,7 +77,7 @@ goto :EOF echo Compile thesis...
latex %PACKAGE%.ins
xelatex -shell-escape %THESIS%.tex
- bibtex %THESIS%.tex
+ bibtex %THESIS%
xelatex -shell-escape %THESIS%.tex
xelatex -shell-escape %THESIS%.tex
splitindex %THESIS% -- -s hitszthesis.ist
@@ -99,11 +104,12 @@ goto :EOF latexmk -c %PACKAGE%.dtx
latexmk -c %THESIS%
del *.xdv *.hd *.aux front\*.aux body\*.aux back\*.aux >nul 2>nul
+ del main-china.idx main-english.idx >nul 2>nul
goto :EOF
:cleanall
- echo Clean pdf files...
- del /Q %PACKAGE%.pdf %THESIS%.pdf >nul 2>nul
+ echo Clean class files...
+ del %PACKAGE%.cls %PACKAGE%.cfg dtx-style.sty >nul 2>nul
goto :clean
goto :EOF
diff --git a/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.dtx b/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.dtx index feb49f4a6be..5cf1c8adaf0 100644 --- a/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.dtx +++ b/Master/texmf-dist/source/latex/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/03/10 3.0 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} @@ -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{hitszthesis-bachelor.pdf}、\file{hitszthesis-master.pdf} 与 \file{hitszthesis-doctor.pdf}(撰写效果)。 % \end{abstract} % % \vskip1.5cm @@ -856,9 +857,9 @@ % \DescribeEnv{itemize} % \DescribeEnv{enumerate} % \DescribeEnv{description} -% 为了适合中文习惯,模板将这三个常用的列表环境用 \pkg{enumitem} 进行了纵向间距压 +% 为了适合中文习惯,模板将这三个常用的列表环境用 \env{enumitem} 进行了纵向间距压 % 缩。一方面清除了多余空间,另一方面用户可以自己指定列表环境的样式(如标签符号, -% 缩进等)。细节请参看 \pkg{enumitem} 文档,此处不再赘述。 +% 缩进等)。细节请参看 \env{enumitem} 文档,此处不再赘述。 % \subsection{后文} % % \subsubsection{结论} @@ -868,7 +869,7 @@ % \lstinputlisting[style=lstStyleLaTeX]{back/conclusion.tex} % % \subsubsection{参考文献} -% 在后文中的参考文献是自动生成的,不需要用户干预,具体命令在\file{main.tex} 中有 +% 在后文中的参考文献是自动生成的,不需要用户干预,具体命令在 \file{main.tex} 中有 % 示例。 % % \subsubsection{附录} @@ -881,6 +882,11 @@ % \end{appendix} % \end{latex} % +% 若需要附录从1开始编页码,在第一篇附录的 \cs{chapter} 后面 +% 写上 \cs{SetPageNumberingFromOne} 命令即可。 +% 若要求附录部分不含页码,则在 \env{appendix} 环境之前 +% 写上 \cs{SetAppendixWithOnlyHeadings}命令。 +% % \subsubsection{所发表文章} % \DescribeEnv{publication} % \PGR 与\UGR\ 中都没有明确规定此处的格式,以下仅为示例。 @@ -931,7 +937,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/06/23 3.2 Dissertation Template for Harbin Institute of Technology, ShenZhen (HITSZ)] % \end{macrocode} % % \subsection{定义选项} @@ -1071,6 +1077,11 @@ \DeclareBoolOption[true]{absupper} % \end{macrocode} % +% 本科附录章节编号是否为大写字母 +% \begin{macrocode} +\DeclareBoolOption[true]{alphappendix} +% \end{macrocode} +% % 此处添加控制本科论文的页码横线选项 % \begin{macrocode} \DeclareBoolOption[true]{bsmainpagenumberline} @@ -1476,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 @@ -1585,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> @@ -1603,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{} @@ -1645,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]% @@ -2078,7 +2092,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 会影响之后全局 @@ -2326,17 +2340,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}% @@ -2479,7 +2494,7 @@ delim_1 "\\hspace*{\\fill}" 哈尔滨工业大学本科毕业设计(论文)原创性声明 \else% \ifhitsz@shenzhen% - 哈尔滨工业大学(深圳)本科毕业设计(论文)原创性声明 + 哈尔滨工业大学本科毕业设计(论文)原创性声明 \else% \ifhitsz@weihai% 哈尔滨工业大学(威海)本科毕业设计(论文)原创性声明 @@ -2491,6 +2506,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 +2530,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 +2583,7 @@ delim_1 "\\hspace*{\\fill}" % 此处深圳校区竟然是左对齐。另外,院系名称也有点不一样。 % \begin{macrocode} \ifhitsz@shenzhen% - \begin{tabular}{rl}% + \begin{tabular}{@{}r@{}@{}l@{\qquad}}% \else% \begin{tabular}{rc}% \fi% @@ -2578,7 +2603,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% @@ -2600,17 +2625,16 @@ delim_1 "\\hspace*{\\fill}" \newcommand{\hitsz@second@titlepage@bachelor}{ \vspace*{0.8cm} \ifhitsz@harbin% - \centering{\includegraphics[width=6.2cm]{hitlogo}} - \else% - \ifhitsz@shenzhen% - \centering{\includegraphics[width=6.2cm]{hitlogo}~~\raisebox{0.2em}{% - \kaishu\yihao\hitsz@shenzhencampus}} + \centering{\includegraphics[width=6.2cm]{hitlogo}} \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} @@ -2623,36 +2647,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{\hitsz@cdatesecond}}} \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{\hitsz@cdatesecond}}} \end{tabular} \fi \renewcommand{\arraystretch}{1} @@ -2754,52 +2778,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} - \fi} %与中文保持一致,删除in {\hitsz@exueke} + \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} + \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} @@ -2976,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} @@ -2986,19 +3046,60 @@ 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} +% \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}{% - \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% +} +% 支持附录算法英文标题 +\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} @@ -3075,11 +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} - \hitsz@authorizationtext@bachelor -\vspace{2\baselineskip} -\par\hspace{6em}\hitsz@authorsig\hfill\hitsz@frontdate\hitsz@datefill + \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 } \NewDocumentCommand{\authorization}{o}{% diff --git a/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.ins b/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.ins index 7f9842300c5..7ea7581114e 100644 --- a/Master/texmf-dist/source/latex/hitszthesis/hitszthesis.ins +++ b/Master/texmf-dist/source/latex/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. |