diff options
author | Norbert Preining <norbert@preining.info> | 2024-11-22 03:03:27 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-11-22 03:03:27 +0000 |
commit | cfe1c0b2748a9c908eaecd919f4beddd483c8739 (patch) | |
tree | e62ee80840f39f8e66a0e9a38133cabf4135a98c /macros/xetex/latex | |
parent | 53b0a1d945ba8cba0311a865c58ddf8596f6b916 (diff) |
CTAN sync 202411220303
Diffstat (limited to 'macros/xetex/latex')
-rw-r--r-- | macros/xetex/latex/hduthesis/README.md | 4 | ||||
-rw-r--r-- | macros/xetex/latex/hduthesis/doc/hduthesis.pdf | bin | 642274 -> 642137 bytes | |||
-rw-r--r-- | macros/xetex/latex/hduthesis/doc/hduthesis.tex | 30 | ||||
-rw-r--r-- | macros/xetex/latex/hduthesis/examples/hduthesis-bc.pdf | bin | 464474 -> 464473 bytes | |||
-rw-r--r-- | macros/xetex/latex/hduthesis/examples/hduthesis-pg.pdf | bin | 147864 -> 147863 bytes | |||
-rw-r--r-- | macros/xetex/latex/hduthesis/tex/hduthesis-font-module.code.tex | 6 | ||||
-rw-r--r-- | macros/xetex/latex/hduthesis/tex/hduthesis-hdu.l3doc-module.code.tex | 86 | ||||
-rw-r--r-- | macros/xetex/latex/hduthesis/tex/hduthesis-pg.layout-module.code.tex | 2 | ||||
-rw-r--r-- | macros/xetex/latex/hduthesis/tex/hduthesis-unv.layout-module.code.tex | 63 | ||||
-rw-r--r-- | macros/xetex/latex/hduthesis/tex/hduthesis.cls | 93 | ||||
-rw-r--r-- | macros/xetex/latex/hduthesis/tex/hduthesisdoc.cls | 111 |
11 files changed, 195 insertions, 200 deletions
diff --git a/macros/xetex/latex/hduthesis/README.md b/macros/xetex/latex/hduthesis/README.md index 09879970ba..016c5b30c7 100644 --- a/macros/xetex/latex/hduthesis/README.md +++ b/macros/xetex/latex/hduthesis/README.md @@ -1,4 +1,4 @@ -# The `hduthesis` class +# The `hduThesiS` class This class provides the thesis template for Hangzhou Dianzi University. @@ -10,4 +10,4 @@ This work may be distributed and/or modified under the conditions of the [LaTeX This work has the LPPL maintenance status `maintained`. -The Current Maintainer of this work is [Mingyu Xia](https://www.ctan.org/author/xia-my).
\ No newline at end of file +The Current Maintainer of this work is [Mingyu Xia](https://www.ctan.org/author/xia-my). diff --git a/macros/xetex/latex/hduthesis/doc/hduthesis.pdf b/macros/xetex/latex/hduthesis/doc/hduthesis.pdf Binary files differindex 782faa2bf9..e107387864 100644 --- a/macros/xetex/latex/hduthesis/doc/hduthesis.pdf +++ b/macros/xetex/latex/hduthesis/doc/hduthesis.pdf diff --git a/macros/xetex/latex/hduthesis/doc/hduthesis.tex b/macros/xetex/latex/hduthesis/doc/hduthesis.tex index 36b9642248..4db3f85939 100644 --- a/macros/xetex/latex/hduthesis/doc/hduthesis.tex +++ b/macros/xetex/latex/hduthesis/doc/hduthesis.tex @@ -1,4 +1,4 @@ -\documentclass[11pt]{hduthesisdoc} +\documentclass[l3doc]{hduthesis} \DocInfo { @@ -6,7 +6,6 @@ \hologo{LaTeX} Thesis Template for Hangzhou Dianzi University, author = Mingyu Xia \mailto{xiamyphys@hdu.edu.cn} \footnote{Physics Department, Graduate in 06/2025 (expected)}, - version = v0.3.2, CJKmain-font = {[AutoFakeSlant]{Songti SC}}, CJKsans-font = {[BoldFont = Hei, AutoFakeSlant]{Heiti SC}}, CJKmono-font = {[AutoFakeSlant]{LXGW WenKai Mono}} @@ -17,17 +16,17 @@ \maketitle \begin{abstract} - \hologo{hduthesis} 是杭州电子科技大学毕业论文 \hologo{LaTeX}模板,支持学士和硕士学位论文排版. + \hologo{hduthesis} 是杭州电子科技大学学位论文 \hologo{LaTeX} 模板,支持学士、硕士学位论文排版. \end{abstract} + \begin{center} \small\bfseries User Agreement \end{center} -\begin{enumerate} +\begin{enumerate}\small \item 本模板通过 LPPL 1.3c 协议开放源代码,您可以随意使用编译出的 PDF 文件. - \item 本模板根据杭州电子科技大学教务处颁发的 \href{https://jwc.hdu.edu.cn/2022/0428/c4528a153813/page.htm}{杭电理工类毕业论文写作规范} 编写而成. 作者不对使用本模板产生的格式审查问题负责. \emph{如果您所在的学院因论文查重、收录等原因要求提交 \file{.docx} 格式,不接收 \file{.pdf} 论文稿件,请勿执意使用本模板,避免因格式转换带来不必要的麻烦.} 使用本模板时,请按编译错误提示操作来勾选同意用户协议. + \item 本模板根据杭州电子科技大学教务处颁发的 \href{https://jwc.hdu.edu.cn/2022/0428/c4528a153813/page.htm}{杭电理工类毕业论文写作规范} 编写而成,作者不对使用本模板产生的格式审查问题负责. \emph{如果您所在的学院因论文查重、收录等原因要求提交 \file{.docx} 格式,不接收 \file{.pdf} 论文稿件,请勿执意使用本模板,避免因格式转换带来不必要的麻烦.} 使用本模板时,请按编译错误提示操作来勾选同意用户协议. \item 欢迎前往 GitHub 提交反馈意见,为推动学校认证与规范化 \hologo{hduthesis} 贡献力量. \end{enumerate} -\thispagestyle{empty} \endtitlepage \restoregeometry @@ -93,13 +92,12 @@ \end{verbatim} \end{framed} -\begin{function}{\l__hduthesis_grade_int} - \begin{syntax} - \cs{ExplSyntaxOn} \cs{int_set:Nn} \cs{l__hduthesis_grade_int} \marg{Year} \cs{ExplSyntaxOff} - \end{syntax} +\DescribeMacro{\l__hduthesis_grade_int} +论文完成日期和学生毕业年份会根据当前系统时间自动生成. 如果当前月份在8月及以前,毕业年份会显示今年;如果当前月份在9月及以后,毕业年份会显示次年. 在 \cs{DocInfo} 后对整型 \cs{l__hduthesis_grade_int} 重新赋值可手动更改毕业年份. - 论文完成日期和学生毕业年份会根据当前系统时间自动生成. 如果当前月份在8月及以前,毕业年份会显示当前年;如果当前月份在9月及以后,毕业年份会显示次年. 在导言区 \cs{DocInfo} 命令后对整型 \cs{l__hduthesis_grade_int} 重新赋值可强制更改毕业年份. -\end{function} +\begin{verbatim} + \ExplSyntaxOn \int_set:Nn \l__hduthesis_grade_int <Year> \ExplSyntaxOff +\end{verbatim} 下页包含所生成的硕士学位论文封面、扉页和承诺书缩略图. 此文档样例可在终端执行 \cmd{texdoc hduthesis-pg} 获取. @@ -112,8 +110,10 @@ \section{Enter Abstract in EN / CN} \DescribeEnv{abstract} +环境 \env{abstract} 用于生成摘要,其可选参数可设置语言格式. + \DescribeMacro{\keywords} -环境 \env{abstract} 用于生成摘要,其可选参数可设置语言格式. 命令 \cs{keywords} 需在 \env{abstract} 环境内执行,其会根据 \env{abstract} 环境所选择的语言,自动生成英文 / 中文格式的关键词. +命令 \cs{keywords} 需在 \env{abstract} 环境内执行,其会根据 \env{abstract} 环境所选择的语言,自动生成英文 / 中文格式的关键词. \begin{framed} \begin{verbatim} @@ -128,12 +128,12 @@ \centering \fbox { - \includegraphics[page = 3, width = .46\linewidth] + \includegraphics[page = 3, width = .42\linewidth] {/Users/xiamyphys/Desktop/LaTeXer/hduthesis/examples/hduthesis-bc.pdf} } \hfill \fbox { - \includegraphics[page = 4, width = .46\linewidth] + \includegraphics[page = 4, width = .42\linewidth] {/Users/xiamyphys/Desktop/LaTeXer/hduthesis/examples/hduthesis-bc.pdf} } \caption{样例文件 \file{hduthesis-bc.pdf}, Page 3 -- 4} \end{figure} diff --git a/macros/xetex/latex/hduthesis/examples/hduthesis-bc.pdf b/macros/xetex/latex/hduthesis/examples/hduthesis-bc.pdf Binary files differindex c560308a1e..743ceca2f4 100644 --- a/macros/xetex/latex/hduthesis/examples/hduthesis-bc.pdf +++ b/macros/xetex/latex/hduthesis/examples/hduthesis-bc.pdf diff --git a/macros/xetex/latex/hduthesis/examples/hduthesis-pg.pdf b/macros/xetex/latex/hduthesis/examples/hduthesis-pg.pdf Binary files differindex 30a01017bd..e921508b0c 100644 --- a/macros/xetex/latex/hduthesis/examples/hduthesis-pg.pdf +++ b/macros/xetex/latex/hduthesis/examples/hduthesis-pg.pdf diff --git a/macros/xetex/latex/hduthesis/tex/hduthesis-font-module.code.tex b/macros/xetex/latex/hduthesis/tex/hduthesis-font-module.code.tex index 300e2ca0ad..5e659bd7c6 100644 --- a/macros/xetex/latex/hduthesis/tex/hduthesis-font-module.code.tex +++ b/macros/xetex/latex/hduthesis/tex/hduthesis-font-module.code.tex @@ -1,9 +1,9 @@ \hduthesis_provide_module:n {font} \linespread{1.39} -\dim_set:Nn \parindent {2\ccwd} -\newcommand\semilarge{\@setfontsize\semilarge{14}{16.5}} -\newcommand\semiLarge{\@setfontsize\semiLarge{16.5}{18}} +\dim_set:Nn \parindent { 2\ccwd } +\newcommand \semilarge { \@setfontsize \semilarge{14}{16.5} } +\newcommand \semiLarge { \@setfontsize \semiLarge{16.5}{18} } \setmainfont{texgyretermes} [ diff --git a/macros/xetex/latex/hduthesis/tex/hduthesis-hdu.l3doc-module.code.tex b/macros/xetex/latex/hduthesis/tex/hduthesis-hdu.l3doc-module.code.tex new file mode 100644 index 0000000000..ffe1dbeac3 --- /dev/null +++ b/macros/xetex/latex/hduthesis/tex/hduthesis-hdu.l3doc-module.code.tex @@ -0,0 +1,86 @@ +\hduthesis_provide_module:n {hdu.l3doc} + +\keys_define:nn { hdu.l3doc / docinfo } + { + title .tl_set:N = \l__docinfo_title_clist, + author .tl_set:N = \l__docinfo_author_tl, + CJKmain-font .tl_set:N = \g__docinfo_main_CJK_font, + CJKsans-font .tl_set:N = \g__docinfo_sans_CJK_font, + CJKmono-font .tl_set:N = \g__docinfo_mono_CJK_font + } + +\NewDocumentCommand \DocInfo { m } + { + \keys_set:nn { hdu.l3doc / docinfo } {#1} + \title { \bfseries \l__docinfo_title_clist } + \author { \l__docinfo_author_tl } + \date + { + v\hduthesis@version + \footnote{\url{https://github.com/xiamyphys/hduthesis}}~ + (\hduthesis@date) + } + \tl_if_empty:NF \g__docinfo_main_CJK_font + { \exp_last_unbraced:No \setCJKmainfont \g__docinfo_main_CJK_font } + \tl_if_empty:NF \g__docinfo_sans_CJK_font + { \exp_last_unbraced:No \setCJKsansfont \g__docinfo_sans_CJK_font } + \tl_if_empty:NF \g__docinfo_mono_CJK_font + { \exp_last_unbraced:No \setCJKmonofont \g__docinfo_mono_CJK_font } + } + +\hypersetup{urlcolor = teal, filecolor = violet} +\hologoFontSetup{general = \sffamily} +\RequirePackage[mono = false]{libertine} +\RequirePackage{geometry,framed,xeCJKfntef,tikz,pdfpages,subcaption} +\setlength{\oddsidemargin}{.9in} \setlength{\evensidemargin}{.1in} +\FrameSep = 0pt +\RequirePackage[os = mac]{menukeys} +\RequirePackage{datetime} \yyyymmdddate +\RequirePackage[fontset = none, scheme = plain]{ctex}\linespread{1.5} +\renewcommand \emph[1] + {\CJKsout*[thickness = 2.5ex, format = \color{blue!15}]{#1}} +\hook_gput_code:nnn { env/function/before } { . } { \vspace{-2ex} } + +\def\HoLogo@hduthesis#1 + { + \raisebox{-.5pt} + { + \HOLOGO@mbox + { + \tikz[baseline = (hduthesis.base)] + { + \node [ inner~sep = 0pt ] (hduthesis) + {\textsc{\cls{hduThesi\scalebox{1.2}[1.2]{S}}}}; + \draw let \p1 = (hduthesis.west), \p2 = (hduthesis.east) + in (\x1,\y1) (\x2,\y2) [ line~width = {.028pt * (\x2 - \x1)} ] + ([yshift = -.5ex]hduthesis.north~west) to[ bend~right = 5 ] + ([yshift = .25ex]hduthesis.north~east); + } + } + } + } + +\let \legacy@maketitle \maketitle +\RenewDocumentCommand \maketitle {} + { + \titlepage + \newgeometry{margin = 1in} + \legacy@maketitle + \begin{center} + \tikz + { + \node [ opacity = .8 ] + { \includegraphics[width = .15\paperwidth]{hdumotto.pdf} }; + \node [ opacity = .3 ] + { \includegraphics[width = .21\paperwidth]{hdulogo.pdf} }; + } + \end{center} + \thispagestyle{empty} + } + +\NewDocumentCommand \mailto {m} + { \texttt{<\href{mailto:#1}{#1}>} } +\pdfstringdefDisableCommands + { \def\mailto#1{<#1>} } + +\endinput diff --git a/macros/xetex/latex/hduthesis/tex/hduthesis-pg.layout-module.code.tex b/macros/xetex/latex/hduthesis/tex/hduthesis-pg.layout-module.code.tex index 62ed79a523..321822a42e 100644 --- a/macros/xetex/latex/hduthesis/tex/hduthesis-pg.layout-module.code.tex +++ b/macros/xetex/latex/hduthesis/tex/hduthesis-pg.layout-module.code.tex @@ -13,7 +13,7 @@ \par \vspace*{42\p@} { \LARGE\l_spread_box:nn {.575\linewidth} {硕士学位论文} } \par\vspace*{98\p@} - \semiLarge 题\qquad 目: + \semiLarge 题 \qquad 目: \l_center_box:nn { .75\linewidth } { \kaishu \l__docinfo_cntitle_tl } \vspace*{21\p@}\par \begin{tabular} diff --git a/macros/xetex/latex/hduthesis/tex/hduthesis-unv.layout-module.code.tex b/macros/xetex/latex/hduthesis/tex/hduthesis-unv.layout-module.code.tex index 2d351f674a..a2b9e21102 100644 --- a/macros/xetex/latex/hduthesis/tex/hduthesis-unv.layout-module.code.tex +++ b/macros/xetex/latex/hduthesis/tex/hduthesis-unv.layout-module.code.tex @@ -72,4 +72,67 @@ {./graphics/}{./graphic/}{./pictures/}{./picture/} } +\clist_set:Nn \g_system_month_clist + { + January, February, March, April, May, June, July, + August, September, October, November, December + } +\keys_define:nn { hduthesis / docinfo } + { + title .clist_set:N = \l__docinfo_title_clist, + department .tl_set:N = \l__docinfo_department_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 .clist_set:N = \l__docinfo_author_clist, + supervisor .clist_set:N = \l__docinfo_supervisor_clist, + bibsource .tl_set:N = \l__docinfo_bibsource_tl, + } + +\NewDocumentCommand \DocInfo { m } + { + \keys_set:nn { hduthesis / docinfo } {#1} + \__hduthesis_docinfo_process_aux: + \__hduthesis_docinfo_degree_if_aux: + } + +\cs_set_protected_nopar:Nn \__hduthesis_docinfo_process_aux: + { + \exp_args:NNne \seq_set_split:Nnn + \l__title_tmp_seq {/} {\l__docinfo_title_clist} + \exp_args:NNe \tl_set:Nn + \l__docinfo_cntitle_tl { \seq_item:Nn \l__title_tmp_seq {1} } + \exp_args:NNe \tl_set:Nn + \l__docinfo_entitle_tl { \seq_item:Nn \l__title_tmp_seq {2} } + \exp_args:NNne \seq_set_split:Nnn + \l__author_tmp_seq {/} {\l__docinfo_author_clist} + \exp_args:NNe \tl_set:Nn + \l__docinfo_cnauthor_tl { \seq_item:Nn \l__author_tmp_seq {1} } + \exp_args:NNe \tl_set:Nn + \l__docinfo_enauthor_tl { \seq_item:Nn \l__author_tmp_seq {2} } + \exp_args:NNne \seq_set_split:Nnn + \l__supervisor_tmp_seq {/} {\l__docinfo_supervisor_clist} + \exp_args:NNe \tl_set:Nn + \l__docinfo_cnsupervisor_tl { \seq_item:Nn \l__supervisor_tmp_seq {1} } + \exp_args:NNe \tl_set:Nn + \l__docinfo_ensupervisor_tl { \seq_item:Nn \l__supervisor_tmp_seq {2} } + \bool_if:NF \g__hduthesis_agreement_bool + { \tl_clear:N \l__docinfo_bibsource_tl } + \tl_if_empty:NTF \l__docinfo_bibsource_tl + { + \newcommand*\printbibliography{\chapter*{参考文献}} + \renewcommand*\cite[1]{\textsuperscript{[##1]}} + } + { + \RequirePackage[sort&compress]{gbt7714} + \bibliographystyle{gbt7714-numerical} + \dim_set:Nn \bibsep {.35ex} + \newcommand*\printbibliography + { + \nocite{*} \bibliography { \l__docinfo_bibsource_tl } + \addcontentsline{toc}{chapter}{参考文献} + } + } + } + \endinput diff --git a/macros/xetex/latex/hduthesis/tex/hduthesis.cls b/macros/xetex/latex/hduthesis/tex/hduthesis.cls index 844127806a..e73ead6ce2 100644 --- a/macros/xetex/latex/hduthesis/tex/hduthesis.cls +++ b/macros/xetex/latex/hduthesis/tex/hduthesis.cls @@ -17,11 +17,12 @@ %% hduthesis-unv.layout-module.code, * %% hduthesis-bc.layout-module.code, * %% hduthesis-pg.layout-module.code, * +%% hduthesis-hdu.l3doc-module.code, * %% and README.md. * %% available at https://github.com/xiamyphys/hduthesis * %% *********************************************************************** -\def\hduthesis@date{2024/11/20} -\def\hduthesis@version{0.3.2} +\def\hduthesis@date{2024/11/21} +\def\hduthesis@version{0.3.3} \RequirePackage{etoolbox} \ProvidesExplClass{hduthesis} {\hduthesis@date} {\hduthesis@version} @@ -35,12 +36,12 @@ \hduthesis_msg_new:nn { 用户协议 } { \exp_not:n { - ⚠️⚠️⚠️⚠️⚠️~「hduThesiS」编译受阻🥵~⚠️⚠️⚠️⚠️⚠️~ + ⚠️⚠️⚠️⚠️⚠️~ 「hduThesiS」编译受阻🥵 ~⚠️⚠️⚠️⚠️⚠️~ 使用模板前请认真阅读模板说明文档封面上的「用户协议」~ 😡👊模板作者不对使用本模板产生的格式审查问题负责👊😡~ 添加选项 `agreed'[\documentclass[agreed]{hduthesis}]~ 即可顺利编译并默认代表您已同意本协议.~ 祝君科研顺利!~ - 如遇问题,可邮件反馈至📮xiamyphys@gmail.com.~ + 如遇问题,可邮件反馈至📮xiamyphys@gmail.com. } } @@ -59,16 +60,19 @@ { \ProvidesExplFile{hduthesis-#1-module.code.tex} {\hduthesis@date}{\hduthesis@version} - {HDUThesis~ \text_titlecase:n {#1} ~Module} + {hduThesiS~ \text_titlecase:n {#1} ~Module} } % global options \clist_new:N \g__hdu_base_class_options_clist \keys_define:nn { hduthesis / classoption } { - agreed .bool_set:N = \g__hduthesis_agreement_bool, - agreed .initial:n = false, - agreed .default:n = true, + agreed .bool_set:N = \g__hduthesis_agreement_bool, + agreed .initial:n = false, + agreed .default:n = true, + l3doc .bool_set:N = \g__hduthesis_doc_bool, + l3doc .initial:n = false, + l3doc .default:n = true, math-font .tl_set:N = \g__hduthesis_math_font, CJKmain-font .tl_set:N = \g__hduthesis_main_CJK_font, CJKsans-font .tl_set:N = \g__hduthesis_sans_CJK_font, @@ -86,16 +90,19 @@ { \l_keys_key_str = \exp_not:n {#1} } } } - \ProcessKeyOptions [ hduthesis / classoption ] + +\bool_if:NT \g__hduthesis_doc_bool + { + \PassOptionsToClass{ 11pt, letterpaper } { l3doc } + \exp_args:NNV \LoadClass [ \g__hdu_base_class_options_clist ] { l3doc } + \hduthesis_load_module:n { hdu.l3doc } + \endinput + } + \PassOptionsToClass { a4paper, zihao = -4 } { ctexrep } \PassOptionsToPackage { quiet, no-math } { xeCJK } \exp_args:NNV \LoadClass [ \g__hdu_base_class_options_clist ] { ctexrep } - -\RequirePackage { siunitx, circuitikz, pgfplots, listings, hologo, - lipsum, zhlipsum, booktabs, multicol } -\pgfplotsset { compat = newest } - \bool_if:NTF \g__hduthesis_agreement_bool { \RequirePackage{hyperref} @@ -108,63 +115,13 @@ { \hypersetup { hidelinks, pdfproducer = hduThesiS~by~Mingyu~Xia } } } { \hduthesis_msg_error:nn { 用户协议 } { 未确认 } } +\RequirePackage { siunitx, circuitikz, pgfplots, listings, hologo, + lipsum, zhlipsum, booktabs, multicol } +\pgfplotsset { compat = newest } \hduthesis_load_module:n { font } \hduthesis_load_module:n { unv.layout } - -\keys_define:nn { hduthesis / docinfo } +\cs_new_protected_nopar:Nn \__hduthesis_docinfo_degree_if_aux: { - title .clist_set:N = \l__docinfo_title_clist, - department .tl_set:N = \l__docinfo_department_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 .clist_set:N = \l__docinfo_author_clist, - supervisor .clist_set:N = \l__docinfo_supervisor_clist, - bibsource .tl_set:N = \l__docinfo_bibsource_tl, - } -\clist_set:Nn \g_system_month_clist - { - January, February, March, April, May, June, July, - August, September, October, November, December - } -\NewDocumentCommand \DocInfo { m } - { - \keys_set:nn { hduthesis / docinfo } {#1} - \exp_args:NNne \seq_set_split:Nnn - \l__title_tmp_seq {/} {\l__docinfo_title_clist} - \exp_args:NNe \tl_set:Nn - \l__docinfo_cntitle_tl { \seq_item:Nn \l__title_tmp_seq {1} } - \exp_args:NNe \tl_set:Nn - \l__docinfo_entitle_tl { \seq_item:Nn \l__title_tmp_seq {2} } - \exp_args:NNne \seq_set_split:Nnn - \l__author_tmp_seq {/} {\l__docinfo_author_clist} - \exp_args:NNe \tl_set:Nn - \l__docinfo_cnauthor_tl { \seq_item:Nn \l__author_tmp_seq {1} } - \exp_args:NNe \tl_set:Nn - \l__docinfo_enauthor_tl { \seq_item:Nn \l__author_tmp_seq {2} } - \exp_args:NNne \seq_set_split:Nnn - \l__supervisor_tmp_seq {/} {\l__docinfo_supervisor_clist} - \exp_args:NNe \tl_set:Nn - \l__docinfo_cnsupervisor_tl { \seq_item:Nn \l__supervisor_tmp_seq {1} } - \exp_args:NNe \tl_set:Nn - \l__docinfo_ensupervisor_tl { \seq_item:Nn \l__supervisor_tmp_seq {2} } - \bool_if:NF \g__hduthesis_agreement_bool - { \tl_clear:N \l__docinfo_bibsource_tl } - \tl_if_empty:NTF \l__docinfo_bibsource_tl - { - \newcommand*\printbibliography{\chapter*{参考文献}} - \renewcommand*\cite[1]{\textsuperscript{[##1]}} - } - { - \RequirePackage[sort&compress]{gbt7714} - \bibliographystyle{gbt7714-numerical} - \dim_set:Nn \bibsep {.35ex} - \newcommand*\printbibliography - { - \nocite{*} \bibliography { \l__docinfo_bibsource_tl } - \addcontentsline{toc}{chapter}{参考文献} - } - } \int_compare:nNnTF { \tl_count:N \l__docinfo_stdntid_tl } = { 8 } { \hduthesis_load_module:n { bc.layout } } { \hduthesis_load_module:n { pg.layout } } diff --git a/macros/xetex/latex/hduthesis/tex/hduthesisdoc.cls b/macros/xetex/latex/hduthesis/tex/hduthesisdoc.cls deleted file mode 100644 index 5c14cbf1e2..0000000000 --- a/macros/xetex/latex/hduthesis/tex/hduthesisdoc.cls +++ /dev/null @@ -1,111 +0,0 @@ -%% *********************************************************************** -%% Copyright 2024 by M.Y. XIA <xiamyphys@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 hduthesisdoc.cls, * -%% available at https://github.com/xiamyphys/hduthesis * -%% *********************************************************************** -\def\hduthesisdoc@date{2024/11/20} -\def\hduthesisdoc@version{0.3.2} - -\ProvidesExplClass{hduthesisdoc} {\hduthesisdoc@date} {\hduthesisdoc@version} - {LaTeX Manual Class for LaTeX Package hduthesis} - -\LoadClass [ 11pt ] { l3doc } - -\keys_define:nn { hduthesisdoc / docinfo } - { - title .tl_set:N = \l__docinfo_title_clist, - author .tl_set:N = \l__docinfo_author_tl, - version .tl_set:N = \l__docinfo_version_tl, - CJKmain-font .tl_set:N = \g__hduthesisdoc_main_CJK_font, - CJKsans-font .tl_set:N = \g__hduthesisdoc_sans_CJK_font, - CJKmono-font .tl_set:N = \g__hduthesisdoc_mono_CJK_font - } - -\NewDocumentCommand \DocInfo { m } - { - \keys_set:nn { hduthesisdoc / docinfo } {#1} - \title { \bfseries \l__docinfo_title_clist } - \author { \l__docinfo_author_tl } - \date - { - \l__docinfo_version_tl - \footnote{\url{https://github.com/xiamyphys/hduthesis}}~ (\today) - } - \tl_if_empty:NF \g__hduthesisdoc_main_CJK_font - { \exp_last_unbraced:No \setCJKmainfont \g__hduthesisdoc_main_CJK_font } - \tl_if_empty:NF \g__hduthesisdoc_sans_CJK_font - { \exp_last_unbraced:No \setCJKsansfont \g__hduthesisdoc_sans_CJK_font } - \tl_if_empty:NF \g__hduthesisdoc_mono_CJK_font - { \exp_last_unbraced:No \setCJKmonofont \g__hduthesisdoc_mono_CJK_font } - } - -\hypersetup{urlcolor = teal, filecolor = violet} -\hologoFontSetup{general = \sffamily} -\RequirePackage[mono = false]{libertine} -\RequirePackage{geometry,framed,xeCJKfntef,tikz,pdfpages,subcaption,fadingimage} -\setlength{\oddsidemargin}{63pt}\setlength{\evensidemargin}{63pt} -\FrameSep = 0pt -\RequirePackage[os = mac]{menukeys} -\AddToHook{env/function/before}{\vspace{-.3\baselineskip}} -\AddToHook{env/syntax/after}{\vspace{-.2\baselineskip}} -\RequirePackage{datetime}\yyyymmdddate -\RequirePackage[fontset = none, scheme = plain]{ctex}\linespread{1.5} -\renewcommand{\emph}[1]{\CJKsout*[thickness=2.5ex, format=\color{blue!15}]{#1}} - -\def\HoLogo@hduthesis#1{% - \raisebox{-.5pt} - { - \HOLOGO@mbox - { - \tikz[baseline = (hduthesis.base)] - { - \node [ inner~sep = 0pt ] (hduthesis) - {\textsc{\cls{hduThesi\scalebox{1.2}[1.2]{S}}}}; - \draw - let \p1 = (hduthesis.west), \p2 = (hduthesis.east) - in (\x1,\y1) (\x2,\y2) - [line~width = {.028pt*(\x2 - \x1)}] - ([yshift = -.5ex]hduthesis.north~west) to[bend~right = 5] - ([yshift = .25ex]hduthesis.north~east); - } - } - } - } - -\let \legacy@maketitle \maketitle -\RenewDocumentCommand \maketitle {} - { - \titlepage - \newgeometry{margin = 1in} - \legacy@maketitle - \begin{center} - \tikz - { - \node [ opacity = .8 ] - { \includegraphics[width = .15\paperwidth]{hdumotto.pdf} }; - \node [ opacity = .3 ] - { \includegraphics[width = .21\paperwidth]{hdulogo.pdf} }; - } - \end{center} - } - -\NewDocumentCommand \mailto {m} - { \texttt{<\href{mailto:#1}{#1}>} } -\pdfstringdefDisableCommands - { \def\mailto#1{<#1>} } - -\endinput - -% End of file hduthesisdoc.cls |