From f53dd329bdfa3a20947143b0ab7fc79dd58127dd Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 10 Jan 2020 21:41:08 +0000 Subject: hithesis (10jan20) git-svn-id: svn://tug.org/texlive/trunk@53362 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/source/latex/hithesis/hithesis.dtx | 71 ++++++++++++++++------ 1 file changed, 52 insertions(+), 19 deletions(-) (limited to 'Master/texmf-dist/source/latex/hithesis') diff --git a/Master/texmf-dist/source/latex/hithesis/hithesis.dtx b/Master/texmf-dist/source/latex/hithesis/hithesis.dtx index 5cddf61a13c..25454eb6f57 100644 --- a/Master/texmf-dist/source/latex/hithesis/hithesis.dtx +++ b/Master/texmf-dist/source/latex/hithesis/hithesis.dtx @@ -16,7 +16,7 @@ % % \iffalse %<*driver> -\ProvidesFile{hithesis.dtx}[2018/12/05 2.0.6 Harbin Institute of Technology Thesis Template] +\ProvidesFile{hithesis.dtx}[2019/06/27 2.0.11 Harbin Institute of Technology Thesis Template] \documentclass{ltxdoc} \usepackage{dtx-style} @@ -750,7 +750,7 @@ % 的 \cs{cite}\marg{key},而 \cs{inlinecite}\marg{key} 则用来生成正文模式。 % % 关于参考文献模板推荐使用 \BibTeX,关于中文参考文献需要额外增加一个 Entry: -% \texttt{lang},将其设置为 \texttt{zh} 用来指示此参考文献为中文,以 +% \texttt{language},将其设置为 \texttt{zh} 用来指示此参考文献为中文,以 % 便 \file{hithesis.bst} 处理。如: % \begin{latex} % @INPROCEEDINGS{cnproceed, @@ -760,7 +760,7 @@ % year = 2006, % address = {西安, 中国}, % month = sep, -% lang = "zh", +% language = "zh", % } % % @ARTICLE{cnarticle, @@ -770,7 +770,7 @@ % PAGES = "260--266", % VOLUME = "224", % YEAR = "1800", -% LANG = "zh", +% LANGUAGE = "zh", % } % \end{latex} % @@ -941,7 +941,7 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesClass{hithesis} %\ProvidesFile{hithesis.cfg} -%[2018/12/05 2.0.6 Harbin Institute of Technology Thesis Template] +%[2019/06/27 2.0.11 Harbin Institute of Technology Thesis Template] % \end{macrocode} % % \subsection{定义选项} @@ -1024,6 +1024,11 @@ % \begin{macrocode} \DeclareBoolOption[false]{openright} % \end{macrocode} +% \changes{v2.0.10}{2019/6/25}{此处添加是否为提交图书馆电子版} +% 是否为提交图书馆电子版。 +% \begin{macrocode} +\DeclareBoolOption[false]{library} +% \end{macrocode} % 图题和标题最后一行是否居中对其(默认是,非规范要求)。 % \changes{v1.0.6}{2017/10/25}{此处更改了选项的名称} % \begin{macrocode} @@ -1343,8 +1348,11 @@ delim_1 "\\hspace*{\\fill}" % \begin{macro}{\cleardoublepage} % 对于 \textsl{openright} 选项,必须保证章首页右开,且如果前章末页无内容须 % 清空其页眉页脚。 +% 如果\textsl{library}为真,则强制设置\textsl{openright}为真。 +% \changes{v2.0.10}{2019/6/25}{添加\textsl{openright}和\textsl{library}逻辑} % \begin{macrocode} %<*cls> +\ifhit@library\hit@openrightfalse\else\relax\fi \let\hit@cleardoublepage\cleardoublepage \newcommand{\hit@clearemptydoublepage}{% \clearpage{\pagestyle{hit@empty}\hit@cleardoublepage} @@ -1353,8 +1361,6 @@ delim_1 "\\hspace*{\\fill}" % \end{macrocode} % \end{macro} % \begin{macro}{\frontmatter} -% \begin{macro}{\mainmatter} -% \begin{macro}{\backmatter} % 我们的单面和双面模式与常规的不太一样。 % \begin{macrocode} \renewcommand\frontmatter{% @@ -1363,26 +1369,37 @@ delim_1 "\\hspace*{\\fill}" \pagenumbering{Roman} \pagestyle{hit@empty} } - +% \end{macrocode} +% \end{macro} +% \begin{macro}{\mainmatter} +% 根据打印店(伪官方)的猛虎式操作,\cs{mainmatter}命令的逻辑是,双面打印时第一章必须在奇数页 +% (不看文档别怪我)。 +% \changes{v2.0.11}{2018/06/27}{设置第一章必须在奇数页} +% \begin{macrocode} \renewcommand\mainmatter{% \ifhit@tocblank% \addtocontents{toc}{\vspace{\baselineskip}} %规范中并没有这一要求,此处不应该加 \addtocontents{toe}{\vspace{\baselineskip}} \fi% - \ifhit@openright\cleardoublepage\else\clearpage\fi + \ifhit@doctor% + \ifhit@library\clearpage\else\cleardoublepage\fi + \else% + \clearpage + \fi% \@mainmattertrue \pagenumbering{arabic} \pagestyle{hit@headings} } - +% \end{macrocode} +% \end{macro} +% \begin{macro}{\backmatter} +% \begin{macrocode} \renewcommand\backmatter{% \ifhit@openright\cleardoublepage\else\clearpage\fi \@mainmattertrue} % % \end{macrocode} % \end{macro} -% \end{macro} -% \end{macro} % % \subsubsection{字体} % \label{sec:font} @@ -1432,6 +1449,7 @@ delim_1 "\\hspace*{\\fill}" % \end{macrocode} % \end{macro} % +% \begin{macro}{\dachu} % \begin{macro}{\chuhao} % \begin{macro}{\xiaochu} % \begin{macro}{\yihao} @@ -1452,6 +1470,7 @@ delim_1 "\\hspace*{\\fill}" % \begin{macro}{\bahao} % 一组字号定义。 % \begin{macrocode} +\hit@def@fontsize{dachu}{58bp} \hit@def@fontsize{chuhao}{42bp} \hit@def@fontsize{xiaochu}{36bp} \hit@def@fontsize{yihao}{26bp} @@ -1490,6 +1509,7 @@ delim_1 "\\hspace*{\\fill}" % \end{macro} % \end{macro} % \end{macro} +% \end{macro} % \subsubsection{页眉页脚} % \label{sec:headerfooter} % \begin{macro}{\hit@empty} @@ -1682,13 +1702,15 @@ delim_1 "\\hspace*{\\fill}" % \end{macrocode} % \subsubsection{浮动对象以及表格} % \label{sec:float} -% 设置浮动对象和文字之间的距离 +% 设置浮动对象和文字之间的距离,由于规范中没有明确规定,根据经验,设置成正文汉字 +% 高度。 % \changes{v1.0.9}{2018/01/07}{修正float垂直间距bug} +% \changes{v2.0.9}{2019/06/24}{修正float垂直间距bug} % \begin{macrocode} %<*cls> \setlength{\intextsep}{\ifhit@glue 8.50398bp \@plus 2.83465bp \@minus 0bp\else 8.50398bp\fi} \setlength{\textfloatsep}{\ifhit@glue 8.50398bp \@plus 2.83465bp \@minus 0bp\else 8.50398bp\fi} -\setlength{\floatsep}{\ifhit@glue 20.50398bp \@plus 2.83465bp \@minus 0bp\else 20.50398bp\fi} +\setlength{\floatsep}{\ifhit@glue 12bp \@plus 2.83465bp \@minus 0bp\else 12bp\fi} % \end{macrocode} % 此处设置float在p选项时间隔,此处不设置\cs{@fptop}和\cs{@fpbot}以确保居中。 % \changes{v1.0.12}{2018/04/03}{修正float为p状态时默认不居中bug} @@ -2258,7 +2280,7 @@ delim_1 "\\hspace*{\\fill}" 本人郑重声明:此处所提交的学位论文《\hit@ctitle》,是本人在导师指导下,在哈尔滨工业大学攻读学位期间独立进行研究工作所取得的成果,且学位论文中除已标注引用文献的部分外不包含他人完成或已发表的研究成果。对本学位论文的研究工作做出重要贡献的个人和集体,均已在文中以明确方式注明。} \newcommand{\hit@datefill}{\hspace{2.5em}年\hspace{1.5em}月\hspace{1.5em}日} \newcommand{\hit@publication@ctitle}{攻读\hit@cxuewei 学位期间发表的论文及其他成果} -\newcommand{\hit@publication@etitle}{Papers published in the period of PH.D. education} +\newcommand{\hit@publication@etitle}{Papers published in the period of Ph.D. education} \def\hit@index@etitle{Index} \def\hit@hi{嗨!thesis} \def\hit@cbraceleft{(} @@ -2454,18 +2476,21 @@ delim_1 "\\hspace*{\\fill}" \phantomsection \pdfbookmark[0]{\hit@ctitle}{ctitle} \xiaosi[1]% +% \end{macrocode} +% \changes{v2.0.10}{2019/6/25}{此处添加提交图书馆电子版的逻辑} +% \begin{macrocode} \begin{titlepage} \hit@first@titlepage - \cleardoublepage + \ifhit@library\clearpage\else\cleardoublepage\fi \hit@second@titlepage - \cleardoublepage + \ifhit@library\clearpage\else\cleardoublepage\fi \ifhit@bachelor \relax \else \phantomsection \pdfbookmark[0]{\hit@etitle}{etitle} \hit@engcover - \cleardoublepage + \ifhit@library\clearpage\else\cleardoublepage\fi \fi \end{titlepage} \normalsize @@ -2571,7 +2596,11 @@ delim_1 "\\hspace*{\\fill}" \advance\leftskip\@tempdima \hskip -\leftskip % numberline is called here, and it uses \@tempdima - {\ifhit@bachelor\sffamily\else\csname hit@toc@font\endcsname\fi\heiti #1} +% \end{macrocode} +% 修改本科生论文目录格式 +% \changes{v2.0.8}{2017/06/15}{修改本科生论文目录格式(感谢QQ:嬴政 同学)} +% \begin{macrocode} + {\ifhit@bachelor\rmfamily\else\csname hit@toc@font\endcsname\fi\heiti #1} \leaders\hbox{$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill \nobreak{\normalfont\normalcolor #2}\par \penalty\@highpenalty @@ -2749,6 +2778,10 @@ delim_1 "\\hspace*{\\fill}" \renewcommand\theenumiv{\@arabic\c@enumiv}}% \sloppy\frenchspacing % \end{macrocode} +% \changes{v2.0.7}{2019/03/02}{添加flushbottom到thebibliography环境中} +% \begin{macrocode} + \flushbottom +% \end{macrocode} % \changes{v2.0.3}{2018/10/08}{添加参考文献分割开关} % \begin{macrocode} \ifhit@splitbibitem -- cgit v1.2.3