texlive[72468] Master/texmf-dist: hduthesis (5oct24)
commits+karl at tug.org
commits+karl at tug.org
Sat Oct 5 21:34:50 CEST 2024
Revision: 72468
https://tug.org/svn/texlive?view=revision&revision=72468
Author: karl
Date: 2024-10-05 21:34:50 +0200 (Sat, 05 Oct 2024)
Log Message:
-----------
hduthesis (5oct24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis-demo.pdf
trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis-demo.tex
trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.pdf
trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.tex
trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis.cls
Added Paths:
-----------
trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-bc.cover-module.code.tex
Removed Paths:
-------------
trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-cover-module.code.tex
Modified: trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis-demo.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis-demo.tex
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis-demo.tex 2024-10-04 23:41:47 UTC (rev 72467)
+++ trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis-demo.tex 2024-10-05 19:34:50 UTC (rev 72468)
@@ -1,7 +1,7 @@
\documentclass{hduthesis}
\setCJKmainfont{SimSong}
-\setCJKsansfont{STHeiti}[AutoFakeBold]
+\setCJKsansfont{STHeiti}[AutoFakeBold = 2]
\tikzset{ > = stealth }
\usetikzlibrary{positioning,shapes.geometric}
@@ -11,11 +11,11 @@
school = 理学院,
% major = ,
% class = ,
- % stdntid = ,
+ stdntid = 31415926,
% author = ,
% supervisor = ,
+ reference = reference.bib
}
-\addbibresource{reference.bib}
\begin{document}
@@ -36,8 +36,9 @@
\input{cha/cha6.tex}
\input{cha/cha7.tex}
\input{cha/thanks.tex}
-\nocite{*}
+
\printbibliography
+
\appendix
\chapter*{附录}
Modified: trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.tex
===================================================================
--- trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.tex 2024-10-04 23:41:47 UTC (rev 72467)
+++ trunk/Master/texmf-dist/doc/xelatex/hduthesis/hduthesis.tex 2024-10-05 19:34:50 UTC (rev 72468)
@@ -27,7 +27,7 @@
School of Sciences, Physics Department, Graduate in 06/2025 (expected)
}
}
-\date{v0.1.0\footnote{\url{https://github.com/xiamyphys/litetable}} ~(\today)}
+\date{v0.1.1\footnote{\url{https://github.com/xiamyphys/hduthesis}} ~(\today)}
\begin{document}
@@ -38,9 +38,9 @@
\tikz
{
\node [opacity = .8]
- {\includegraphics[width = .2\paperwidth]{./figures/hdumotto.pdf}};
+ {\includegraphics[width = .2\paperwidth]{hdumotto.pdf}};
\node [opacity = .3]
- {\includegraphics[width = .3\paperwidth]{./figures/hdulogo.pdf}};
+ {\includegraphics[width = .3\paperwidth]{hdulogo.pdf}};
}
\end{center}
\begin{abstract}
@@ -52,14 +52,13 @@
\end{center}
\begin{enumerate}[leftmargin = 2.5ex]
\item 本模板通过 LPPL 1.3c 协议开放源代码,您可以随意使用编译出的 PDF 文件.
- \item 截止本文档编译时,杭州电子科技大学教务处只提供Word模板
- \footnote
- {
- \url{https://jwc.hdu.edu.cn/2022/0428/c4528a153813/page.htm}
- }. 作者不对使用本模板产生的格式审查问题负责.
- \emph{如果您所在的学院要求提交 \cmd{.docx} 格式的论文稿件,请勿执意使用本模板,
- 避免因格式转换带来不必要的麻烦.} 欢迎前往 GitHub 提交反馈意见,为推动学校认证与规范化
- \textsc{\cls{HduThesis}} 贡献力量.
+ \item 本模板根据杭州电子科技大学教务处颁发的
+ \href{https://jwc.hdu.edu.cn/2022/0428/c4528a153813/page.htm}
+ {杭电理工类毕业论文写作规范} 编写而成. 作者不对使用本模板产生的格式审查问题负责.
+ \emph{如果您所在的学院因论文查重、收录等原因要求提交 \file{.docx} 格式,
+ 不接收 \file{.pdf} 论文稿件,请勿执意使用本模板,避免因格式转换带来不必要的麻烦.}
+ \item 欢迎前往 GitHub 提交反馈意见,
+ 为推动学校认证与规范化\textsc{\cls{HduThesis}} 贡献力量.
\end{enumerate}
\end{abstract}
\thispagestyle{empty}
@@ -77,7 +76,8 @@
此命令接收键值,用于设置文档信息. 键 \keys{\cmdmac~title} 用于设置论文标题,
键 \keys{\cmdmac~school} 用于设置学院,键 \keys{\cmdmac~major} 用于设置专业,
键 \keys{\cmdmac~class} 用于设置班级,键 \keys{\cmdmac~stdntid} 用于设置学号,
- 键 \keys{\cmdmac~author} 用于设置作者,键 \keys{\cmdmac~supervisor} 用于设置导师.
+ 键 \keys{\cmdmac~author} 用于设置作者,键 \keys{\cmdmac~supervisor} 用于设置导师,
+ 键 \keys{\cmdmac~reference} 用于设置插入参考文献文件源.
\begin{framed}
\begin{verbatim}
@@ -85,7 +85,7 @@
\DocInfo
{
title = XXXXXX , school = 理学院, major = , class = ,
- stdntid = , author = , supervisor = ,
+ stdntid = 31415926, author = , supervisor = , reference =
}
\begin{document} \maketitle ... \end{document}
\end{verbatim}
@@ -147,24 +147,22 @@
\fbox{\includegraphics[page = 12, width = .3\linewidth]{hduthesis-demo}}
\end{center}
-同时,模板额外预制了如下宏包
+同时,模板额外预置了以下宏包
\begin{table}[htbp]
\centering
- \begin{tabular}{*{6}{p{.13\linewidth}}}
+ \begin{tabular}{*{8}{p{.096\linewidth}}}
\toprule
- \pkg{amsmath} & \pkg{amssymb} & \pkg{bm} &
- \pkg{booktabs} & \pkg{cancel} & \pkg{cleveref}\\
+ \pkg{amsmath} & \pkg{amssymb} & \pkg{bm} & \pkg{booktabs} &
+ \pkg{cancel} & \pkg{circuitikz}& \pkg{cleveref} & \pkg{derivative} \\
\midrule
- \pkg{derivative} & \pkg{extarrows} & \pkg{fixdif} &
- \pkg{mathtools} & \pkg{multicol} & \pkg{physics2}\\
+ \pkg{extarrows} & \pkg{fixdif} & \pkg{listings} & \pkg{mathtools} & \pkg{multicol} & \pkg{pgfplots} & \pkg{physics2} & \pkg{siunitx}\\
\bottomrule
\end{tabular}
\end{table}
-如需插入参考文献,在导言区使用命令 \cs{addbibsource}\marg{.bib file name}导入
-\file{.bib} 文件,并在文章末尾输入 \cs{printbiblography} 即可.
-文档已将参考文献格式设置为 \cmd{gb7714-2015}.
+如需插入参考文献,通过命令 \cs{DocInfo} 导入 \file{.bib} 文件后在文章末尾输入
+\cs{printbiblography} 即可输出参考文献列表. 文档已将参考文献格式设置为 \cmd{gb7714-2015}. 若未指定参考文献\file{.bib} 文件,则 \pkg{biblatex} 宏包将不会加载.
\appendix\clearpage
@@ -186,28 +184,26 @@
\begin{framed}
\begin{verbatim}
- % 预留学号接口,用于后续判断学位.
- \cs_new_protected_nopar:Npn \int_if_exist_use:N #1
+ \keys_define:nn { hduthesis / docinfo }% 声明相应键
{
- \int_compare:nNnT #1 > 0
- {
- \int_use:N #1
- }
+ title.tl_set:N = \l__docinfo_title_tl,
+ school.tl_set:N = \l__docinfo_school_tl,
+ major.tl_set:N = \l__docinfo_major_tl,
+ class.tl_set:N = \l__docinfo_class_tl,
+ stdntid.tl_set:N = \l__docinfo_stdntid_tl,
+ author.tl_set:N = \l__docinfo_author_tl,
+ supervisor.tl_set:N = \l__docinfo_supervisor_tl,
+ reference.tl_set:N = \l__docinfo_reference_tl,
}
- \keys_define:nn { hduthesis / docinfo }% 声明相应键
- {
- title.tl_set:N = \l__docinfo_title_tl,
- school.tl_set:N = \l__docinfo_school_tl,
- major.tl_set:N = \l__docinfo_major_tl,
- class.tl_set:N = \l__docinfo_class_tl,
- stdntid.int_set:N = \l__docinfo_stdntid_int,
- author.tl_set:N = \l__docinfo_author_tl,
- supervisor.tl_set:N = \l__docinfo_supervisor_tl,
- }
+
\NewDocumentCommand \DocInfo { m }
{
\keys_set:nn { hduthesis / docinfo } { #1 }
}
+
+ % 预留学号接口,用于后续判断学位.
+ % \int_compare:nNnT {\tl_count:N \l__docinfo_stdntid_tl} = {8} { }
+ % \int_compare:nNnTF {\tl_count:N \l__docinfo_stdntid_tl} = {10} { }
\end{verbatim}
\end{framed}
Added: trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-bc.cover-module.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-bc.cover-module.code.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-bc.cover-module.code.tex 2024-10-05 19:34:50 UTC (rev 72468)
@@ -0,0 +1,122 @@
+\hduthesis_provide_module:n {bc.cover}
+
+\RequirePackage{array}
+\cs_new_protected:Npn \l_spread_box:nn #1#2
+ {
+ \mode_leave_vertical:
+ \hbox_to_wd:nn {#1}
+ { \tl_map_inline:Nn {#2} { ##1 \hfil } \unskip }
+ }
+\cs_new_protected:Npn \l_center_box:nn #1#2
+ {
+ \mode_leave_vertical:
+ \dim_set:Nn \l_tmpa_dim {#1}
+ \dim_add:Nn \l_tmpa_dim {0.6em}
+ \makebox[0cm][l]{\rule[-.8ex]{\l_tmpa_dim}{.5 pt}}
+ {\hbox_to_wd:nn {\l_tmpa_dim} { \hfil #2 \hfil }}
+ }
+\int_new:N \l__hduthesis_grade_int
+\int_set:Nn \l__hduthesis_grade_int
+{
+ \int_compare:nNnTF {\c_sys_month_int} < 9
+ {\c_sys_year_int} {\int_eval:n {\c_sys_year_int+1}}
+}
+\cs_new_protected_nopar:Nn \__hduthesis_cover_page_aux:
+{
+ \begin{center}
+ \vspace*{1.8\baselineskip}
+ \includegraphics{hdubadge}
+ \par\vspace*{2\baselineskip}
+ \scalebox{3.2}
+ {\textbf
+ {
+ \l_spread_box:nn {\fp_eval:n{1/4.1}\linewidth} {本科毕业设计}
+ }
+ }
+ \par\vspace*{1.3\baselineskip}
+ {
+ \LARGE(\int_if_exist_use:N \l__hduthesis_grade_int\bfseries 届)
+ }
+ \par\vspace*{4\baselineskip}
+ \begin{tabular}
+ {
+ >{\large\bfseries}p{5.5\ccwd}@{}
+ >{\large\centering\arraybackslash\kaishu}p{.65\linewidth}
+ }
+ 题\qquad 目 &
+ \l_center_box:nn{.93\linewidth}
+ {
+ \l__docinfo_title_tl
+ }\\[5.8ex]
+ 学\qquad 院 &
+ \l_center_box:nn{.93\linewidth}
+ {
+ \l__docinfo_school_tl
+ }\\[5.8ex]
+ 专\qquad 业 &
+ \l_center_box:nn{.93\linewidth}
+ {
+ \l__docinfo_major_tl
+ }\\[5.8ex]
+ 班\qquad 级 &
+ \l_center_box:nn{.93\linewidth}
+ {
+ \l__docinfo_class_tl
+ }\\[5.8ex]
+ 学\qquad 号 &
+ \l_center_box:nn{.93\linewidth}
+ {
+ \l__docinfo_stdntid_tl
+ }\\[5.8ex]
+ 学生姓名 &
+ \l_center_box:nn{.93\linewidth}
+ {
+ \l__docinfo_author_tl
+ }\\[5.8ex]
+ 指导教师 &
+ \l_center_box:nn{.93\linewidth}
+ {
+ \l__docinfo_supervisor_tl
+ }\\[5.8ex]
+ 完成日期 &
+ \l_center_box:nn{.93\linewidth}{
+ \textsf{\int_use:N \c_sys_year_int} 年
+ \textsf{\int_use:N \c_sys_month_int} 月
+ }
+ \end{tabular}
+ \end{center}
+}
+
+\cs_new_protected_nopar:Nn \__hduthesis_cover_promise_aux:
+ {
+ \vspace*{3.5\baselineskip}
+ \begin{center}
+ \@beginparpenalty\@lowpenalty
+ \Large\textsf{\bfseries \l_spread_box:nn {6\ccwd}{诚信承诺}}
+ \@endparpenalty\@M
+ \end{center}
+ \vspace*{.6\baselineskip}\par
+ \linespread{2.1}
+ {\semilarge
+ 我谨在此承诺:本人所写的毕业论文《\l__docinfo_title_tl》
+ 均系本人独立完成,没有抄袭行为,凡涉及其他作者的观点和材料,均作了注释,
+ 若有不实,后果由本人承担。\par\vspace*{\baselineskip}
+ \l_spread_box:nn {.48\linewidth}{}
+ \textsf{\bfseries 承诺人(签名):}
+ \vspace*{.5\baselineskip}\par
+ \l_spread_box:nn {.48\linewidth+2em}{}
+ \textsf{\bfseries 年\qquad 月\qquad 日}
+ }
+ }
+
+\RenewDocumentCommand \maketitle {}
+ {
+ \begin{titlepage}
+ \__hduthesis_cover_page_aux:
+ \end{titlepage}
+ \titlepage
+ \__hduthesis_cover_promise_aux:
+ \endtitlepage
+ }
+
+\endinput
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-bc.cover-module.code.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-cover-module.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-cover-module.code.tex 2024-10-04 23:41:47 UTC (rev 72467)
+++ trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis-cover-module.code.tex 2024-10-05 19:34:50 UTC (rev 72468)
@@ -1,121 +0,0 @@
-\hduthesis_provide_module:n {cover}
-
-\RequirePackage{array}
-\cs_new_protected:Npn \l_spread_box:nn #1#2
- {
- \mode_leave_vertical:
- \hbox_to_wd:nn {#1}
- { \tl_map_inline:Nn {#2} { ##1 \hfil } \unskip }
- }
-\cs_new_protected:Npn \l_center_box:nn #1#2
- {
- \mode_leave_vertical:
- \dim_set:Nn \l_tmpa_dim {#1}
- \dim_add:Nn \l_tmpa_dim {0.6em}
- \makebox[0cm][l]{\rule[-.8ex]{\l_tmpa_dim}{.5 pt}}
- {\hbox_to_wd:nn {\l_tmpa_dim} { \hfil #2 \hfil }}
- }
-\int_new:N \l__hduthesis_grade_int
-\int_set:Nn \l__hduthesis_grade_int
-{
- \int_compare:nNnTF {\c_sys_month_int} < 9
- {\c_sys_year_int} {\int_eval:n {\c_sys_year_int+1}}
-}
-\cs_new_protected_nopar:Nn \__hduthesis_cover_page_aux:
-{
- \begin{center}
- \vspace*{1.8\baselineskip}
- \includegraphics{hdubadge}
- \par\vspace*{2\baselineskip}
- \scalebox{3.2}
- {\textbf
- {
- \l_spread_box:nn {\fp_eval:n{1/4.1}\linewidth} {本科毕业设计}
- }
- }
- \par\vspace*{1.3\baselineskip}
- {
- \LARGE(\int_if_exist_use:N \l__hduthesis_grade_int\bfseries 届)
- }
- \par\vspace*{4\baselineskip}
- \begin{tabular}
- {
- >{\large\bfseries}p{5.5\ccwd}@{}
- >{\large\centering\arraybackslash\kaishu}p{.65\linewidth}
- }
- 题\qquad 目 &
- \l_center_box:nn{.93\linewidth}
- {
- \l__docinfo_title_tl
- }\\[5.8ex]
- 学\qquad 院 &
- \l_center_box:nn{.93\linewidth}
- {
- \l__docinfo_school_tl
- }\\[5.8ex]
- 专\qquad 业 &
- \l_center_box:nn{.93\linewidth}
- {
- \l__docinfo_major_tl
- }\\[5.8ex]
- 班\qquad 级 &
- \l_center_box:nn{.93\linewidth}
- {
- \l__docinfo_class_tl
- }\\[5.8ex]
- 学\qquad 号 &
- \l_center_box:nn{.93\linewidth}
- {
- \int_if_exist_use:N \l__docinfo_stdntid_int
- }\\[5.8ex]
- 学生姓名 &
- \l_center_box:nn{.93\linewidth}
- {
- \l__docinfo_author_tl
- }\\[5.8ex]
- 指导教师 &
- \l_center_box:nn{.93\linewidth}
- {
- \l__docinfo_supervisor_tl
- }\\[5.8ex]
- 完成日期 &
- \l_center_box:nn{.93\linewidth}{
- \textsf{\int_use:N \c_sys_year_int} 年
- \textsf{\int_use:N \c_sys_month_int} 月
- }
- \end{tabular}
- \end{center}
-}
-
-\cs_new_protected_nopar:Nn \__hduthesis_cover_promise_aux:
- {
- \vspace*{3.5\baselineskip}
- \begin{center}
- \@beginparpenalty\@lowpenalty
- \Large\textsf{\bfseries \l_spread_box:nn {6\ccwd}{诚信承诺}}
- \@endparpenalty\@M
- \end{center}
- \vspace*{.6\baselineskip}\par
- \linespread{2.1}
- {\semilarge
- 我谨在此承诺:本人所写的毕业论文《\l__docinfo_title_tl》
- 均系本人独立完成,没有抄袭行为,凡涉及其他作者的观点和材料,均作了注释,
- 若有不实,后果由本人承担。\par\vspace*{\baselineskip}
- \l_spread_box:nn {.48\linewidth}{}
- \textsf{\bfseries 承诺人(签名):}
- \vspace*{.5\baselineskip}\par
- \l_spread_box:nn {.48\linewidth+2em}{}
- \textsf{\bfseries 年\qquad 月\qquad 日}
- }
- }
-
-\RenewDocumentCommand \maketitle {}
- {
- \begin{titlepage}
- \__hduthesis_cover_page_aux:
- \end{titlepage}
- \titlepage
- \__hduthesis_cover_promise_aux:
- \endtitlepage
- }
-\endinput
\ No newline at end of file
Modified: trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis.cls 2024-10-04 23:41:47 UTC (rev 72467)
+++ trunk/Master/texmf-dist/tex/xelatex/hduthesis/hduthesis.cls 2024-10-05 19:34:50 UTC (rev 72468)
@@ -1,27 +1,27 @@
-%% ****************************************************************
-%% Copyright 2024 by M.Y. XIA <xiamyphys at gmail.com> *
-%% *
-%% This work may be distributed and/or modified under the *
-%% conditions of the LaTeX Project Public License *
-%% *
-%% http://www.latex-project.org/lppl.txt *
-%% *
-%% either version 1.3c of this license or any later version. *
-%% *
-%% This work has the LPPL maintenance status `maintained'. *
-%% *
-%% The Current Maintainers of this work is M.Y. XIA *
-%% *
-%% This work consists of the files hduthesis.cls, *
-%% hduthesis-font-module.code, *
-%% hduthesis-cover-module.code, *
-%% hduthesis-matter-module.code,*
-%% hduthesis-layout-module.code,*
-%% and README.md. *
-%% available at https://github.com/xiamyphys/hduthesis *
-%% ****************************************************************
-\def\hduthesis at date{2024/10/04}
-\def\hduthesis at version{0.1.0}
+%% *********************************************************************
+%% Copyright 2024 by M.Y. XIA <xiamyphys at gmail.com> *
+%% *
+%% This work may be distributed and/or modified under the *
+%% conditions of the LaTeX Project Public License *
+%% *
+%% http://www.latex-project.org/lppl.txt *
+%% *
+%% either version 1.3c of this license or any later version. *
+%% *
+%% This work has the LPPL maintenance status `maintained'. *
+%% *
+%% The Current Maintainers of this work is M.Y. XIA *
+%% *
+%% This work consists of the files hduthesis.cls, *
+%% hduthesis-font-module.code, *
+%% hduthesis-bc.cover-module.code, *
+%% hduthesis-matter-module.code, *
+%% hduthesis-layout-module.code, *
+%% and README.md. *
+%% available at https://github.com/xiamyphys/hduthesis *
+%% *********************************************************************
+\def\hduthesis at date{2024/10/05}
+\def\hduthesis at version{0.1.1}
\ExplSyntaxOn
\cs_new_protected_nopar:Npn \hduthesis_provide_module:n #1
@@ -33,7 +33,8 @@
\PassOptionsToPackage{quiet}{xeCJK}
\PassOptionsToPackage{no-math}{fontspec}
-\ProvidesExplClass{hduthesis}{\hduthesis at date}{\hduthesis at version}{HDU Thesis Class}
+\ProvidesExplClass{hduthesis} {\hduthesis at date} {\hduthesis at version}
+{HDU Thesis Class}
\cs_new_protected:Npn \hduthesis_msg_new:nn #1#2
{ \msg_new:nnn { hduthesis } { #1 } { #2 } }
@@ -76,37 +77,47 @@
school.tl_set:N = \l__docinfo_school_tl,
major.tl_set:N = \l__docinfo_major_tl,
class.tl_set:N = \l__docinfo_class_tl,
- stdntid.int_set:N = \l__docinfo_stdntid_int,
+ stdntid.tl_set:N = \l__docinfo_stdntid_tl,
author.tl_set:N = \l__docinfo_author_tl,
supervisor.tl_set:N = \l__docinfo_supervisor_tl,
+ reference.tl_set:N = \l__docinfo_reference_tl,
}
\NewDocumentCommand \DocInfo { m }
{
\keys_set:nn { hduthesis / docinfo } { #1 }
-}
-
-\hduthesis_load_module:n {font}
-\hduthesis_load_module:n {cover}
-\hduthesis_load_module:n {matter}
-\hduthesis_load_module:n {layout}
-
-\RequirePackage[
- backend = biber,
- citestyle = gb7714-2015,
- bibstyle = gb7714-2015,
-]{biblatex}
-\AddToHook{cmd/printbibliography/before}
-{
- \group_begin:
- \AddToHook{cmd/@makeschapterhead/after}
+ \tl_if_empty:NTF \l__docinfo_reference_tl
{
- \linespread{1.3}
+ \newcommand*\printbibliography{\chapter*{参考文献}}
+ \renewcommand*\cite[1]{\textsuperscript{[##1]}}
}
+ {
+ \RequirePackage
+ [
+ backend = biber,
+ citestyle = gb7714-2015,
+ bibstyle = gb7714-2015,
+ ] {biblatex}
+ \AddToHook{cmd/printbibliography/before}
+ {
+ \group_begin:
+ \AddToHook{cmd/@makeschapterhead/after} { \linespread{1.3} }
+ }
+ \AddToHook{cmd/printbibliography/after} { \group_end: }
+ \exp_args:Nf \addbibresource { \l__docinfo_reference_tl }
+ }
+ % \int_compare:nNnT {\tl_count:N \l__docinfo_stdntid_tl} = {8}
+ % {
+ % \hduthesis_load_module:n { bc.cover }
+ % }
+ % \int_compare:nNnTF {\tl_count:N \l__docinfo_stdntid_tl} = {10}
+ % {
+ % \hduthesis_load_module:n { pg.cover }
+ % }
}
-\AddToHook{cmd/printbibliography/after}
-{
- \group_end:
-}
+\hduthesis_load_module:n { font }
+\hduthesis_load_module:n { bc.cover }
+\hduthesis_load_module:n { matter }
+\hduthesis_load_module:n { layout }
\endinput
More information about the tex-live-commits
mailing list.