From d24edaf46a7cdf4fc46d1be65ce6448ca54a0c39 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 26 May 2022 19:51:53 +0000 Subject: nwafuthesis (26may22) git-svn-id: svn://tug.org/texlive/trunk@63407 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/doc/latex/nwafuthesis/nwafudoc.cls | 2 +- .../doc/latex/nwafuthesis/nwafuthesis.pdf | Bin 2337625 -> 2339629 bytes .../source/latex/nwafuthesis/nwafuthesis.dtx | 44 ++++++++++++++------- .../tex/latex/nwafuthesis/nwafuthesis.cls | 21 +++++++--- 4 files changed, 45 insertions(+), 22 deletions(-) diff --git a/Master/texmf-dist/doc/latex/nwafuthesis/nwafudoc.cls b/Master/texmf-dist/doc/latex/nwafuthesis/nwafudoc.cls index 9d96ea0a12d..bfb7fa120a1 100644 --- a/Master/texmf-dist/doc/latex/nwafuthesis/nwafudoc.cls +++ b/Master/texmf-dist/doc/latex/nwafuthesis/nwafudoc.cls @@ -31,7 +31,7 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo $Id: nwafuthesis.dtx 1.12 2022-05-24 Nan Geng $ +\GetIdInfo $Id: nwafuthesis.dtx 1.13 2022-05-26 Nan Geng $ {Documentation class for nwafuthesis} \ProvidesExplClass{nwafudoc} {\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} diff --git a/Master/texmf-dist/doc/latex/nwafuthesis/nwafuthesis.pdf b/Master/texmf-dist/doc/latex/nwafuthesis/nwafuthesis.pdf index 21c3a57b03c..4603ecc9f1c 100644 Binary files a/Master/texmf-dist/doc/latex/nwafuthesis/nwafuthesis.pdf and b/Master/texmf-dist/doc/latex/nwafuthesis/nwafuthesis.pdf differ diff --git a/Master/texmf-dist/source/latex/nwafuthesis/nwafuthesis.dtx b/Master/texmf-dist/source/latex/nwafuthesis/nwafuthesis.dtx index 79611c3fd71..56cff0bc085 100644 --- a/Master/texmf-dist/source/latex/nwafuthesis/nwafuthesis.dtx +++ b/Master/texmf-dist/source/latex/nwafuthesis/nwafuthesis.dtx @@ -110,7 +110,7 @@ %\NeedsTeXFormat{LaTeX2e} %\RequirePackage{expl3} %<*!(driver|install)> -%\GetIdInfo $Id: nwafuthesis.dtx 1.12 2022-05-24 Nan Geng $ +%\GetIdInfo $Id: nwafuthesis.dtx 1.13 2022-05-26 Nan Geng $ % {Thesis template for Northwest A\&F University} %\ProvidesExplClass{\ExplFileName} % {Definition file for nwafuthesis} @@ -143,7 +143,7 @@ \textbf{\nwafuthesis: 西北农林科技大学学位论文 \xpinyin[font=\sffamily,format=\color{MaterialIndigo800}]{模}{mu2}板}}} \author{耿楠} -\date{\today\quad v1.12% +\date{\today\quad v1.13% \thanks{\url{https://gitee.com/nwafu_nan/nwafuthesis-l3}.}} \begin{document} @@ -836,7 +836,7 @@ % \begin{nwafusyntax}[emph={[1]btype}] % btype = (*<(paper)|design>*) % \end{nwafusyntax} -% 本科毕业类型,仅适用于本科。\opt{paper} 和 \opt{design} +% 本科生毕业类型,仅适用于本科。\opt{paper} 和 \opt{design} % 分别表示论文和设计。 % \end{function} % @@ -1548,7 +1548,7 @@ % % \bibitem{西北农林科技大学本科生论文撰写规范} % 西北农林科技大学教务处. -% \newblock \textit{西北农林科技大学本科毕业论文(设计)写作规范(试用)} [EB/OL]. +% \newblock \textit{西北农林科技大学本科生毕业论文(设计)写作规范(试用)} [EB/OL]. % \newblock 2021 年 5 月修订版. % \newblock (2021-05-07) % \urlprefix\url{https://jiaowu.nwafu.edu.cn/docs//2021-05/8aa0ef88fcf94e5ebf0bdcc2a6f42785.pdf} @@ -1794,7 +1794,7 @@ % \begin{variable}{\l_@@_withchap_bool} % 是否按章编写论文(默认按章编写)。 % 该选项是针对部分学院需要按报告形式(类似``1\ 绪论'')的形式 -% 撰写本科毕业论文(设计)而设置的。 +% 撰写本科生毕业论文(设计)而设置的。 % \begin{macrocode} \bool_new:N \l_@@_withchap_bool % \end{macrocode} @@ -1805,7 +1805,7 @@ % \begin{variable}{\g_@@_chapnum_int} % 章编号编号类型(默认为阿拉伯数字)。 % 该选项是针对部分学院需要中文数字进行章编号(类似``第一章 绪论'')的需求 -% 仅为撰写本科毕业论文(设计)而设置的。 +% 仅为撰写本科生毕业论文(设计)而设置的。 % \begin{macrocode} \int_new:N \g_@@_chapnum_int % \end{macrocode} @@ -2000,7 +2000,7 @@ % % \begin{macro}{type} % 设置论文类型。设为模板选项主要是为了以后的兼容性。论文类型可能会 -% 影响很多设置,默认为本科毕业论文。 +% 影响很多设置,默认为本科生毕业论文。 % \begin{macrocode} type .choice:, type .value_required:n = true, @@ -2385,13 +2385,15 @@ % % \subsubsection{杂项常量定义} % +% \changes{v1.13}{2022/05/26}{修订本科毕业为本科生毕业。} +% % \begin{variable}{\c_@@_thesis_type_clist, % \c_@@_degree_type_clist, % \c_@@_bachelor_type_clist} % 论文类型与学位类型。 % \begin{macrocode} \clist_const:Nn \c_@@_thesis_type_clist - { 博士学位论文, 硕士学位论文, 本科毕业 } + { 博士学位论文, 硕士学位论文, 本科生毕业 } \clist_const:Nn \c_@@_degree_type_clist { 学术学位, 专业学位 } \clist_const:Nn \c_@@_bachelor_type_clist @@ -3516,6 +3518,7 @@ % \end{macrocode} % % \changes{v1.11}{2022/04/02}{删除本科生目录页眉,并修正单面模式目录页眉。} +% \changes{v1.13}{2022/05/26}{删除本科页眉题目中的换行符。} % % \begin{macro}{\frontmatter,\mainmatter} % 重定义 \tn{frontmatter}和\tn{mainmatter}, @@ -3617,7 +3620,9 @@ % 本科生偶数页页眉 % \begin{macrocode} \RenewDocumentCommand \headrulewidth { } { 0.4 pt } - \nwafuhead[EC]{\small \nouppercase{ \l__@@_info_title_tl } } + \tl_set_eq:NN \l_tmpa_tl \l__@@_info_title_tl + \tl_replace_all:Nnn \l_tmpa_tl { \\ } { ~ } + \nwafuhead[EC]{\small \nouppercase{ \l_tmpa_tl } } } }{ % \end{macrocode} @@ -3646,7 +3651,9 @@ % \end{macrocode} % 本科生偶数页页眉 % \begin{macrocode} - \small \nouppercase{ \l__@@_info_title_tl } + \tl_set_eq:NN \l_tmpa_tl \l__@@_info_title_tl + \tl_replace_all:Nnn \l_tmpa_tl { \\ } { ~ } + \small \nouppercase{ \l_tmpa_tl } } } } @@ -4671,7 +4678,7 @@ % \end{variable} % % \begin{variable}{\l_@@_info_bachelor_type_int} -% 本科毕业类型。1 为论文,2 为设计。仅对本科生有效。 +% 本科生毕业类型。1 为论文,2 为设计。仅对本科生有效。 % \begin{macrocode} \int_new:N \l_@@_info_bachelor_type_int % \end{macrocode} @@ -4693,7 +4700,7 @@ % \end{macro} % % \begin{macro}{info/btype} -% 本科毕业类型。仅对本科生有效。 +% 本科生毕业类型。仅对本科生有效。 % \begin{macrocode} btype .choice:, btype .value_required:n = true, @@ -5225,7 +5232,7 @@ \@@_spread_box:nn { 0.75 \textwidth } { \l_@@_tmpa_tl } }{ % \end{macrocode} -% 本科毕业年份(届)。 +% 本科生毕业年份(届)。 % \begin{macrocode} \@@_get_text_width:NV \l__@@_tmpa_dim \l__@@_info_grade_tl \@@_center_box:Vn \l__@@_tmpa_dim { \l__@@_info_grade_tl } @@ -6081,13 +6088,15 @@ % % \subsubsection{定义封面页面元素} % +% \changes{v1.13}{2022/05/26}{修订ID为四号字。} +% % \begin{macro}{cover/i/id} % 封一学校代码和学号。仅本科生需要 % \begin{macrocode} \@@_declare_element:nn { cover / i / id } { content = \@@_cover_id:, - format = \bfseries\zihao { -5 }, + format = \bfseries\zihao { 4 }, bottom-skip = 0 pt plus 0.3 fill, align = right, } @@ -7332,12 +7341,15 @@ % \begin{macrocode} \cs_new_protected:Npn \@@_abstract_begin: { + % \tl_set_eq:NN \l_tmpa_tl \l_@@_info_title_tl + % \tl_replace_all:Nnn \l_tmpa_tl { \\ } { ~ } \int_compare:nNnTF { \g_@@_thesis_type_int } < { 3 } { \@@_chapter:V \c_@@_name_abstract_tl }{ \par \mode_leave_vertical: \par \begin{center}\nwafu@hei\zihao{3}\l_@@_info_title_tl\end{center} + % \begin{center}\nwafu@hei\zihao{3}\l_tmpa_tl\end{center} } } \cs_set_eq:NN \my_uppercase:n \uppercase @@ -7802,6 +7814,8 @@ % \end{macrocode} % 此后 \tn{hypersetup} 命令由 \pkg{hyperref} 宏包接管。 % \begin{macrocode} + \tl_set_eq:NN \l_tmpa_tl \l_@@_info_title_tl + \tl_replace_all:Nnn \l_tmpa_tl { \\ } { ~ } \hypersetup { bookmarksnumbered = true, @@ -7811,7 +7825,7 @@ % 填写 PDF 元信息。 % \begin{macrocode} %<*class> - pdftitle = \l_@@_info_title_tl, + pdftitle = \l_tmpa_tl, pdfauthor = \l_@@_info_author_tl, pdfkeywords = \l_@@_abstract_keywords_clist, % diff --git a/Master/texmf-dist/tex/latex/nwafuthesis/nwafuthesis.cls b/Master/texmf-dist/tex/latex/nwafuthesis/nwafuthesis.cls index 398e90540c7..5ddf4094cf2 100644 --- a/Master/texmf-dist/tex/latex/nwafuthesis/nwafuthesis.cls +++ b/Master/texmf-dist/tex/latex/nwafuthesis/nwafuthesis.cls @@ -30,7 +30,7 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo $Id: nwafuthesis.dtx 1.12 2022-05-24 Nan Geng $ +\GetIdInfo $Id: nwafuthesis.dtx 1.13 2022-05-26 Nan Geng $ {Thesis template for Northwest A\&F University} \ProvidesExplClass{\ExplFileName} {\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} @@ -397,7 +397,7 @@ \clist_const:Nn \c__nwafu_auth_decl_sign_clist { 作者签名, 导师签名, 日期 } \clist_const:Nn \c__nwafu_thesis_type_clist - { 博士学位论文, 硕士学位论文, 本科毕业 } + { 博士学位论文, 硕士学位论文, 本科生毕业 } \clist_const:Nn \c__nwafu_degree_type_clist { 学术学位, 专业学位 } \clist_const:Nn \c__nwafu_bachelor_type_clist @@ -1146,7 +1146,9 @@ } }{ \RenewDocumentCommand \headrulewidth { } { 0.4 pt } - \nwafuhead[EC]{\small \nouppercase{ \l__nwafu_info_title_tl } } + \tl_set_eq:NN \l_tmpa_tl \l__nwafu_info_title_tl + \tl_replace_all:Nnn \l_tmpa_tl { \\ } { ~ } + \nwafuhead[EC]{\small \nouppercase{ \l_tmpa_tl } } } }{ \RenewDocumentCommand \headrulewidth { } { 0.4 pt } @@ -1163,7 +1165,9 @@ \clist_item:Nn \c__nwafu_thesis_type_clist { \g__nwafu_thesis_type_int } } }{ - \small \nouppercase{ \l__nwafu_info_title_tl } + \tl_set_eq:NN \l_tmpa_tl \l__nwafu_info_title_tl + \tl_replace_all:Nnn \l_tmpa_tl { \\ } { ~ } + \small \nouppercase{ \l_tmpa_tl } } } } @@ -2468,7 +2472,7 @@ \__nwafu_declare_element:nn { cover / i / id } { content = \__nwafu_cover_id:, - format = \bfseries\zihao { -5 }, + format = \bfseries\zihao { 4 }, bottom-skip = 0 pt plus 0.3 fill, align = right, } @@ -3189,12 +3193,15 @@ { \__nwafu_abstract_en_begin: } { \__nwafu_abstract_en_end: } \cs_new_protected:Npn \__nwafu_abstract_begin: { + % \tl_set_eq:NN \l_tmpa_tl \l__nwafu_info_title_tl + % \tl_replace_all:Nnn \l_tmpa_tl { \\ } { ~ } \int_compare:nNnTF { \g__nwafu_thesis_type_int } < { 3 } { \__nwafu_chapter:V \c__nwafu_name_abstract_tl }{ \par \mode_leave_vertical: \par \begin{center}\nwafu@hei\zihao{3}\l__nwafu_info_title_tl\end{center} + % \begin{center}\nwafu@hei\zihao{3}\l_tmpa_tl\end{center} } } \cs_set_eq:NN \my_uppercase:n \uppercase @@ -3449,12 +3456,14 @@ \ctex_at_end_preamble:n { \RequirePackage { hyperref } + \tl_set_eq:NN \l_tmpa_tl \l__nwafu_info_title_tl + \tl_replace_all:Nnn \l_tmpa_tl { \\ } { ~ } \hypersetup { bookmarksnumbered = true, psdextra = true, unicode = true, - pdftitle = \l__nwafu_info_title_tl, + pdftitle = \l_tmpa_tl, pdfauthor = \l__nwafu_info_author_tl, pdfkeywords = \l__nwafu_abstract_keywords_clist, pdfcreator = \c__nwafu_name_pdf_creator_tl -- cgit v1.2.3