summaryrefslogtreecommitdiff
path: root/macros/unicodetex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-06-11 03:02:16 +0000
committerNorbert Preining <norbert@preining.info>2022-06-11 03:02:16 +0000
commit040c2af2b17f76a6f7e97a17ddbe0eee645508d4 (patch)
tree846f67bc2608b3051bfe8217d2fa9bc805dfd895 /macros/unicodetex
parentfb4909f4112d8b778570cf1c2e25ca18c63bc1ca (diff)
CTAN sync 202206110302
Diffstat (limited to 'macros/unicodetex')
-rw-r--r--macros/unicodetex/latex/njuthesis/njuthesis.dtx244
-rw-r--r--macros/unicodetex/latex/njuthesis/njuthesis.pdfbin1275071 -> 1284394 bytes
2 files changed, 140 insertions, 104 deletions
diff --git a/macros/unicodetex/latex/njuthesis/njuthesis.dtx b/macros/unicodetex/latex/njuthesis/njuthesis.dtx
index 193ef959f8..5dacce5878 100644
--- a/macros/unicodetex/latex/njuthesis/njuthesis.dtx
+++ b/macros/unicodetex/latex/njuthesis/njuthesis.dtx
@@ -118,7 +118,7 @@ To produce the documentation run the original source files ending with
%<*!(driver|install)>
% ^^A 诚耀百廿,雄创一流
% ^^A 南京大学一百二十周年华诞邀您共襄盛举!
-%<+!driver>\GetIdInfo $Id: njuthesis.dtx 0.19.0 2022-05-23 11:33:00 +0800 NJU LUG <git+nju-lug-email-3104-issue-@yaoge123.cn>$
+%<+!driver>\GetIdInfo $Id: njuthesis.dtx 0.20.0 2022-06-10 14:42:00 +0800 NJU LUG <git+nju-lug-email-3104-issue-@yaoge123.cn>$
%<class> {Thesis template for Nanjing University}
%<class>\ProvidesExplClass{njuthesis}
%<definition-ug> {Undergraduate definition file for njuthesis}
@@ -210,7 +210,7 @@ To produce the documentation run the original source files ending with
% \thanks{E-mail: \href{mailto:git+nju-lug-email-3104-issue-@yaoge123.cn}
% {git+nju-lug-email-3104-issue-@yaoge123.cn}}}
%
-% \date{v0.19.0 \quad 2022-05-23}
+% \date{v0.20.0 \quad 2022-06-10}
%
% \changes{v0.1}{2021/09/04}{开始开发。}
% \changes{v0.2}{2021/09/07}{初步搭建了可用的模板。}
@@ -236,6 +236,7 @@ To produce the documentation run the original source files ending with
% \changes{v0.16}{2022/03/01}{分离本科生和研究生模板配置。}
% \changes{v0.19}{2022/05/23}{对研究生普通封面进行若干细节修改。}
% \changes{v0.19}{2022/05/23}{对国家图书馆封面进行若干细节修改。}
+% \changes{v0.20}{2022/06/08}{更正本科生模板部分字样。}
%
%
% \maketitle
@@ -821,8 +822,8 @@ To produce the documentation run the original source files ending with
% 通过此项,对于本科生模板可在封面后添加的诚信承诺书,
% 对于研究生模板可在封面后添加原创性声明,并且在最后一页添加学位论文出版授权书。
%
-% 对于需要手动插入承诺书扫描页的情况,可以在导言区载入 \pkg{pdfpages} 宏包,
-% 并在所需位置使用该宏包提供的 \cs{includepdf} 命令。
+% 对于需要手动插入承诺书扫描页的情况,可以在导言区载入 \pkg{pdfpages} 宏包
+% \cite{pdfpages},并在所需位置使用该宏包提供的 \cs{includepdf} 命令。
% 例如,可以用如下所示的命令插入扫描件的第一页,并插入紧随的一个空白页。
% \begin{latexexample}[moretexcs={\includepdf},emph={[2]pages}]
% \includepdf[pages={1,{}}]{scanned.pdf}
@@ -1107,7 +1108,9 @@ To produce the documentation run the original source files ending with
% \begin{syntax}
% submit-date = \Arg{yyyy-mm-dd}
% \end{syntax}
-% 提交日期。中英文日期现在可以由 ISO 日期格式\cite{gb-t-7408-2005}的字符串统一生成。如果留空,则自动使用编译当天日期。
+% 提交日期。中英文日期现在可以由 ISO 日期格式\cite{gb-t-7408-2005}
+% 的字符串统一生成。如果在等号后留空,则原本中文日期处使用空白的年月日字样;
+% 如果不添加此设置项,则自动使用编译当天日期。
% \end{function}
%
% \begin{function}[updated=2022-01-14]{info/defend-date}
@@ -1124,20 +1127,20 @@ To produce the documentation run the original source files ending with
% 学位授予日期,只用于国家图书馆封面,要求同提交日期。
% \end{function}
%
-% \begin{function}[updated=2021-05-23]{info/bottom-date}
+% \begin{function}[updated=2022-05-23]{info/bottom-date}
% \begin{syntax}
% bottom-date = \Arg{yyyy-mm-dd}
% \end{syntax}
% 底部日期,只用于国家图书馆封面,要求同提交日期。
% \end{function}
%
-% \begin{function}[updated=2021-10-01]{info/chairman,info/reviewer}
+% \begin{function}[updated=2022-05-27]{info/chairman,info/reviewer}
% \begin{syntax}
-% chairman = \Arg{答辩主席}
-% reviewer = \Arg{评委姓名职称}
+% chairman = \Arg{答辩主席姓名职称}
+% reviewer = \Arg{答辩评委姓名职称}
% \end{syntax}
-% 答辩委员会信息,分别为评审委员会主席及四位成员的姓名加职称,只对研究生有效。
-% 四位评审成员是以列表的形式存储的,填写方法同关键词。
+% 答辩委员会信息,分别为评审委员会主席及成员的姓名加职称,只对研究生有效。
+% 评审成员名单以逗号分隔的列表形式存储,填写方法同关键词。
% 如果是盲审,填入“盲审”二字即可。
% \end{function}
%
@@ -2307,13 +2310,21 @@ To produce the documentation run the original source files ending with
% \urlprefix\CTANurl[文档:]{macros/latex/contrib/listings/listings.pdf}
%
% \bibitem{njuvisual}
-% \textsc{Yu Xiong}.
+% \textsc{Xiong Y}.
% \newblock \textit{Display logos related to Nanjing University} [EB/OL].
% \newblock version 0.2.1,
% \newblock (2022-01-09)
% \urlprefix\url{https://ctan.org/pkg/njuvisual}
% \urlprefix\CTANurl[文档:]{macros/latex/contrib/njuvisual/njuvisual.pdf}
%
+% \bibitem{pdfpages}
+% \textsc{Matthias A}.
+% \newblock \textit{Include PDF documents in \hologo{LaTeX}} [EB/OL].
+% \newblock version 0.5v,
+% \newblock (2022-05-22)
+% \urlprefix\url{https://www.ctan.org/pkg/pdfpages}
+% \urlprefix\CTANurl[文档:]{macros/latex/contrib/pdfpages/pdfpages.pdf}
+%
% \bibitem{siunitx}
% \textsc{Wright J}.
% \newblock \textit{A comprehensive (SI) units package} [EB/OL].
@@ -2485,17 +2496,20 @@ To produce the documentation run the original source files ending with
%
% 在变量名称中,|l| 代表局部变量,|g| 代表全局变量,|c| 代表常量,最后一个下划线后的内容指示其类型。
%
-% \begin{variable}{\l_@@_tmp_box,\l_@@_tmp_clist,
-% \l_@@_tmpa_dim,\l_@@_tmpb_dim,\l_@@_tmp_int,
-% \l_@@_tmp_seq,\l_@@_tmpa_tl,\l_@@_tmpb_tl}
+% \begin{variable}{
+% \l_@@_tmp_box,
+% \l_@@_tmp_clist,
+% \l_@@_tmpa_dim,\l_@@_tmpb_dim,
+% \l_@@_tmpa_int,\l_@@_tmpb_int,
+% \l_@@_tmpa_tl,\l_@@_tmpb_tl}
% 临时变量。
% \begin{macrocode}
\box_new:N \l_@@_tmp_box
\clist_new:N \l_@@_tmp_clist
\dim_new:N \l_@@_tmpa_dim
\dim_new:N \l_@@_tmpb_dim
-\int_new:N \l_@@_tmp_int
-\seq_new:N \l_@@_tmp_seq
+\int_new:N \l_@@_tmpa_int
+\int_new:N \l_@@_tmpb_int
\tl_new:N \l_@@_tmpa_tl
\tl_new:N \l_@@_tmpb_tl
% \end{macrocode}
@@ -2740,16 +2754,11 @@ To produce the documentation run the original source files ending with
{
\dim_compare:nTF { \l_@@_tmpa_dim > #1 }
{
- \hfil
\scalebox
{ \dim_to_decimal_in_unit:nn { #1 } { \l_@@_tmpa_dim } }
[ 1.0 ] { #2 #3 }
- \hfil
- }
- {
- \hbox_to_wd:nn { #1 }
- { #2 \tl_map_inline:nn { #3 } { ##1 \hfil } \unskip }
}
+ { #2 \tl_map_inline:nn { #3 } { ##1 \hfil } \unskip }
}
}
\cs_generate_variant:Nn \@@_spread_box:nnn { nnV }
@@ -2757,22 +2766,26 @@ To produce the documentation run the original source files ending with
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\@@_multiline_box:NNnn}
+% \begin{macro}{\@@_multiline_box:NNNn}
% 多行固定长度的下划线内容,用于国家图书馆封面。
% \begin{arguments}
% \item 用于循环的 |int| 型变量
+% \item 用于存储条目数量的 |int| 型变量
% \item 内容,|clist| 型变量
-% \item 行数
% \item 宽度,|dim| 型变量
% \end{arguments}
+% 默认绘制 4 条下划线。在评阅者人数超过 4 人时添加额外的条目。
% \begin{macrocode}
-\cs_new_protected:Npn \@@_multiline_box:NNnn #1#2#3#4
+\cs_new_protected:Npn \@@_multiline_box:NNNn #1#2#3#4
{
\int_set:Nn #1 { 1 }
- \int_do_until:nn { #1 > #3 }
+ \int_set:Nn #2 { \clist_count:N #3 }
+ \int_compare:nF { #2 > 4 }
+ { \int_set:Nn #2 { 4 } }
+ \int_do_until:nn { #1 > #2 }
{
\@@_ulined_center_box:nn { #4 }
- { \clist_item:Nn #2 { #1 } } \\
+ { \clist_item:Nn #3 { #1 } } \\
\int_incr:N #1
}
}
@@ -2887,9 +2900,12 @@ To produce the documentation run the original source files ending with
% \item 月份
% \item 日期
% \end{arguments}
-% 中文日期表示通过封装 \pkg{zhnumber} 的内部函数实现;英文日期表示通过用于研究生英文封面。其中,变量类型 |w| 表明参数符合特定语法格式。
+% 中文日期字样通过封装 \pkg{zhnumber} 的内部函数实现,默认使用阿拉伯数字表示,
+% 可以通过该宏包提供的 |\zhnumsetup{time=Chinese}| 来使用中文数字;
+% 英文日期字样用于研究生英文封面,格式为 \meta{月份缩写}~\meta{日},~\meta{年}。
+% 其中,变量类型 |w| 表明参数符合特定语法格式,其参数必须经过完全展开。
% \begin{macrocode}
-\cs_new:Npn \@@_date:www #1-#2-#3 \q_stop
+\cs_new:Npn \@@_date:www #1-#2-#3 \q_stop
{ \__zhnum_date_aux:nnn { #1 } { #2 } { #3 } }
\cs_new:Npn \@@_date_en:www #1-#2-#3 \q_stop
{ \clist_item:Nn \c_@@_month_en_clist { #2 } ~#3 , ~#1 }
@@ -2897,24 +2913,30 @@ To produce the documentation run the original source files ending with
% \end{macro}
%
% \begin{macro}{\@@_date:n,\@@_date_en:n}
-% 封装 ISO 日期格式字符串的转化命令,该字符串需要进行展开。
+% 从 ISO 格式的日期字符串生成中英文日期文本。
% \begin{macrocode}
-\cs_new_protected:Npn \@@_date:n #1
- {
- \tl_new:c { g_@@_info_ #1 date_tl }
- \tl_set:cn { g_@@_info_ #1 date_tl }
- {
- \exp_last_unbraced:Nv
- \@@_date:www { g_@@_info_ #1 date_raw_tl } \q_stop
- }
- }
-\cs_new_protected:Npn \@@_date_en:n #1
+\cs_new_protected:Npn \@@_date:n #1 { \@@_date:nn { #1 } { } }
+\cs_new_protected:Npn \@@_date_en:n #1 { \@@_date:nn { #1 } { _en } }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\exp_last_unbraced:cV,\@@_date:nn}
+% \changes{v0.20}{2022/05/24}{可在日期项留空以使用空白的年月日字样。}
+% 用于日期格式转化的辅助命令。在传入的字符串为空时生成空白字样。
+% \begin{macrocode}
+\cs_generate_variant:Nn \exp_last_unbraced:NV { cV }
+\cs_new_protected:Npn \@@_date:nn #1#2
{
- \tl_new:c { g_@@_info_ #1 date_en_tl }
- \tl_set:cn { g_@@_info_ #1 date_en_tl }
+ \tl_set:Nv \l_@@_tmpa_tl { g_@@_info_ #1 date_raw_tl }
+ \tl_new:c { g_@@_info_ #1 date #2 _tl }
+ \tl_set:cx { g_@@_info_ #1 date #2 _tl }
{
- \exp_last_unbraced:Nv
- \@@_date:www { g_@@_info_ #1 date_raw_tl } \q_stop
+ \tl_if_empty:NTF \l_@@_tmpa_tl
+ { \@@_name:n { blankdate #2 } }
+% \end{macrocode}
+% |w| 后的参数需要使用非括号包裹的形式完全展开。
+% \begin{macrocode}
+ { \exp_last_unbraced:cV { @@_date #2 :www } \l_@@_tmpa_tl \q_stop }
}
}
% \end{macrocode}
@@ -3054,9 +3076,9 @@ To produce the documentation run the original source files ending with
% 此时 \cs{njuemblem}、\cs{njuname} 和相关长度都是没有定义的。
% \begin{macrocode}
\cs_new_protected:Npn \@@_emblem:N #1
- { \njuemblem [ black ] { #1 } { ! } }
+ { \njuemblem [ \c_@@_fmt_emblemcolor_tl ] { #1 } { ! } }
\cs_new_protected:Npn \@@_name:N #1
- { \njuname [ black ] { #1 } { ! } }
+ { \njuname [ \c_@@_fmt_namecolor_tl ] { #1 } { ! } }
% \end{macrocode}
% \end{macro}
%
@@ -3133,12 +3155,12 @@ To produce the documentation run the original source files ending with
\setbox0 = \vbox{\hangindent=\wd\l_@@_tmp_box \hangafter=-1
\leftskip=#3 \rightskip=\leftskip \parindent=\z@ #2\par
\global\setbox2=\hbox{}
- \int_gzero:N \l_@@_tmp_int
+ \int_gzero:N \l_@@_tmpa_int
\loop
\setbox1=\lastbox \unskip\unpenalty
\unless\ifvoid1
\global\setbox2=\hbox{\@@_uline_box:\penalty0\unhbox2}
- \int_gincr:N \l_@@_tmp_int
+ \int_gincr:N \l_@@_tmpa_int
\repeat
}
{
@@ -3151,7 +3173,7 @@ To produce the documentation run the original source files ending with
% \begin{macrocode}
\bool_if:NT \g_@@_strict_abs_title_bool
{
- \int_case:nnF { \l_@@_tmp_int }
+ \int_case:nnF { \l_@@_tmpa_int }
{
{ 0 } { \msg_error:nn { njuthesis } { missing-title } }
{ 1 } { \@@_uline:n { \textwidth } }
@@ -3444,7 +3466,10 @@ To produce the documentation run the original source files ending with
%
% \begin{macro}{\njusetformat}
% \changes{v0.17}{2022/04/09}{提供修改默认样式的接口。}
-% 定义修改固定文本的接口。
+% \changes{v0.19}{2022/05/11}{提供默认页面样式的修改方式。}
+% \changes{v0.20}{2022/05/25}{提供页眉页脚样式的修改方式。}
+% \changes{v0.20}{2022/05/25}{提供内置校名校徽颜色的修改方式。}
+% 定义修改默认样式的接口。
% \begin{macrocode}
\NewDocumentCommand \njusetformat { m m }
{ \tl_gset:cn { c_@@_fmt_ #1 _tl } { #2 } }
@@ -3453,6 +3478,7 @@ To produce the documentation run the original source files ending with
%
% \begin{macro}{\njusetlength,\njusetlength*}
% \changes{v0.17}{2022/04/09}{提供修改长度值的接口。}
+% \changes{v0.18}{2022/04/20}{统一管理校名校徽尺寸。}
% 定义修改长度值的接口。可选星号表示修改弹性长度。
% \begin{macrocode}
\NewDocumentCommand \njusetlength { s m m }
@@ -3873,34 +3899,6 @@ To produce the documentation run the original source files ending with
{ \tl_set:Nn \g_@@_info_diploma_tl { g } }
% \end{macrocode}
%
-% 设置类型信息。
-% \begin{macrocode}
-\tl_set:Nx \g_@@_info_type_tl
- { \clist_item:Nn \c_@@_name_type_clist { \g_@@_info_type_int } }
-\tl_set:Nx \g_@@_info_type_en_tl
- { \clist_item:Nn \c_@@_name_type_en_clist { \g_@@_info_type_int } }
-\tl_put_left:Nx \g_@@_info_type_tl
- { \tl_use:c { c_@@_name_ \g_@@_info_diploma_tl _tl } }
-% \end{macrocode}
-%
-% 盲审模式下抹去个人信息和学校名称。
-% \begin{macrocode}
-\bool_if:NT \g_@@_blind_bool
- {
- \ctex_at_end_preamble:n
- {
- \clist_map_inline:Nn \c_@@_blind_info_clist
- { \tl_gclear:c { g_@@_info_ #1 _tl } }
- \clist_map_inline:Nn \c_@@_blind_info_en_clist
- { \tl_gclear:c { g_@@_info_ #1 _en_tl } }
- \clist_map_inline:Nn \c_@@_blind_infolist_clist
- { \clist_gclear:c { g_@@_info_ #1 _clist } }
- \tl_gclear:N \c_@@_name_nju_tl
- \tl_gclear:N \c_@@_name_nju_en_tl
- }
- }
-% \end{macrocode}
-%
% \changes{v0.15}{2022/01/22}{正确处理双导师信息。}
% 在导言区录入用户信息后进行变量设置。此处使用到了 \pkg{ctex} 提供的命令,
% 应当位于载入文档类之后。
@@ -3908,6 +3906,15 @@ To produce the documentation run the original source files ending with
\ctex_at_end_preamble:n
{
% \end{macrocode}
+% 设置类型信息。
+% \begin{macrocode}
+ \tl_set:Nx \g_@@_info_type_tl
+ { \clist_item:Nn \c_@@_name_type_clist { \g_@@_info_type_int } }
+ \tl_set:Nx \g_@@_info_type_en_tl
+ { \clist_item:Nn \c_@@_name_type_en_clist { \g_@@_info_type_int } }
+ \tl_put_left:Nx \g_@@_info_type_tl
+ { \tl_use:c { c_@@_name_ \g_@@_info_diploma_tl _tl } }
+% \end{macrocode}
% 拼合双导师的姓名和职称。
% \begin{macrocode}
\bool_set:Nn \l_@@_second_supv_bool
@@ -3965,6 +3972,24 @@ To produce the documentation run the original source files ending with
% \end{macrocode}
% \end{variable}
%
+% 盲审模式下抹去个人信息和学校名称。
+% \begin{macrocode}
+\bool_if:NT \g_@@_blind_bool
+ {
+ \ctex_at_end_preamble:n
+ {
+ \clist_map_inline:Nn \c_@@_blind_info_clist
+ { \tl_gclear:c { g_@@_info_ #1 _tl } }
+ \clist_map_inline:Nn \c_@@_blind_info_en_clist
+ { \tl_gclear:c { g_@@_info_ #1 _en_tl } }
+ \clist_map_inline:Nn \c_@@_blind_infolist_clist
+ { \clist_gclear:c { g_@@_info_ #1 _clist } }
+ \tl_gclear:N \c_@@_name_nju_tl
+ \tl_gclear:N \c_@@_name_nju_en_tl
+ }
+ }
+% \end{macrocode}
+%
%
% \subsection{字体设置}
%
@@ -4331,7 +4356,7 @@ To produce the documentation run the original source files ending with
%
%
% \subsubsection{页眉页脚}
-% ^^A TODO: 将页眉页脚样式改为使用 \njusetformat 修改
+% ^^A TODO: 删除 header/format 和 footer/format
% 提供设置页眉页脚的用户接口。在 \cs{fancyhead} 的可选参数中,
% \opt{E} 和 \opt{O} 分别表示在偶数页(even)和奇数页(odd),
% 而 \opt{L}、\opt{R} 和 \opt{C} 则分别表示左(left)、右
@@ -4345,8 +4370,7 @@ To produce the documentation run the original source files ending with
% \changes{v0.16}{2022/03/18}{可手动指定页眉样式。}
% 页眉格式。
% \begin{macrocode}
- header/format .tl_gset:N = \g_@@_header_format_tl,
- header/format .initial:n = \small \kaishu,
+ header/format .tl_gset:N = \c_@@_fmt_header_tl,
% \end{macrocode}
% \end{macro}
%
@@ -4372,8 +4396,7 @@ To produce the documentation run the original source files ending with
% \changes{v0.16}{2022/03/19}{可手动指定页脚样式。}
% 页脚格式。
% \begin{macrocode}
- footer/format .tl_gset:N = \g_@@_footer_format_tl,
- footer/format .initial:n = \small \rmfamily,
+ footer/format .tl_gset:N = \c_@@_fmt_footer_tl,
% \end{macrocode}
% \end{macro}
%
@@ -4418,9 +4441,9 @@ To produce the documentation run the original source files ending with
% 对 \pkg{fancyhdr} 的命令进行包装,便于设置页眉页脚。
% \begin{macrocode}
\cs_new_protected:Npn \@@_header:nn #1#2
- { \fancyhead [#1] { \g_@@_header_format_tl \nouppercase {#2} } }
+ { \fancyhead [#1] { \c_@@_fmt_header_tl \nouppercase {#2} } }
\cs_new_protected:Npn \@@_footer:nn #1#2
- { \fancyfoot [#1] { \g_@@_footer_format_tl \nouppercase {#2} } }
+ { \fancyfoot [#1] { \c_@@_fmt_footer_tl \nouppercase {#2} } }
% \end{macrocode}
% \end{macro}
%
@@ -5382,7 +5405,7 @@ To produce the documentation run the original source files ending with
% \begin{macrocode}
\@@_declare_element:nn { cover / nl / bottom }
{
- content = \@@_cover_bottom_nl:n { 4 },
+ content = \@@_cover_bottom_nl:,
bottom-skip = 1 cm,
align = r
}
@@ -5454,17 +5477,18 @@ To produce the documentation run the original source files ending with
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\@@_cover_bottom_nl:n}
+% \begin{macro}{\@@_cover_bottom_nl:}
% \changes{v0.19}{2022/05/20}{将国家图书馆封面的评审委员会人数分离为单独参数。}
+% \changes{v0.20}{2022/05/27}{自动识别评审委员会人数。}
% 国家图书馆封面底部信息。
% \begin{macrocode}
-\cs_new_protected:Npn \@@_cover_bottom_nl:n #1
+\cs_new_protected:Npn \@@_cover_bottom_nl:
{
\c_@@_name_chairman_tl \@@_hskip:
\@@_ulined_center_box:nn { 9 em } { \g_@@_info_chairman_tl } \\
\c_@@_name_reviewer_tl \@@_hskip:
- \@@_multiline_box:NNnn \l_@@_tmp_int
- \g_@@_info_reviewer_clist { #1 } { 9 em }
+ \@@_multiline_box:NNNn \l_@@_tmpa_int \l_@@_tmpb_int
+ \g_@@_info_reviewer_clist { 9 em }
}
% \end{macrocode}
% \end{macro}
@@ -5590,7 +5614,7 @@ To produce the documentation run the original source files ending with
\cs_new_protected:Npn \@@_authdecl_sign_g:
{
\c_@@_name_authsign_tl \par
- \c_@@_name_blankdate_tl
+ \c_@@_name_blankdate_a_tl
}
% \end{macrocode}
% \end{macro}
@@ -5720,6 +5744,7 @@ To produce the documentation run the original source files ending with
% \begin{macro}{\@@_make_origdecl: }
% \changes{v0.13}{2021/12/15}{加入本科生的诚信承诺书。}
% \changes{v0.19}{2022/05/22}{跟进新版本科生诚信承诺书样式。}
+% ^^A TODO: 使用 xtemplate 重构
% 生成本科生的诚信承诺书或研究生的学位论文原创性声明。
% \begin{macrocode}
\cs_new_protected:Npn \@@_make_origdecl:
@@ -5743,6 +5768,7 @@ To produce the documentation run the original source files ending with
{ \@@_vskip: \@@_name:n { ##1 } : \@@_uline:n { 7 em } }
\end{flushright}
\vfil
+%<definition-ug> \normalfont \normalsize
}
% \end{macrocode}
% \end{macro}
@@ -6081,6 +6107,7 @@ To produce the documentation run the original source files ending with
%
% \begin{macro}{\@@_print_keywords:nn}
% \changes{v0.15}{2022/01/26}{为关键词列表添加悬挂缩进。}
+% \changes{v0.20}{2022/05/26}{修复英文关键词列表不整齐的缩进间距。}
% 生成中英文关键词列表。
% \begin{arguments}
% \item 语言,空置为中文,|_en| 为英文
@@ -6092,6 +6119,8 @@ To produce the documentation run the original source files ending with
{
\tl_set:Nv \l_@@_tmpa_tl { c_@@_name_keywords #1 _tl }
\@@_get_text_width:NV \l_@@_tmpa_dim \l_@@_tmpa_tl
+ \dim_add:Nn \l_@@_tmpa_dim { 1 em }
+ \exp_args:NNv \tl_put_right:Nn \l_@@_tmpa_tl { c_@@_name_comma #1 _tl }
% \end{macrocode}
% 关键词列表的悬挂缩进样式由 \tn{list} 环境产生。
% \begin{macrocode}
@@ -6263,7 +6292,7 @@ To produce the documentation run the original source files ending with
\RenewDocumentCommand \mkbibdateshort { m m m }
{ \textbf { \thefield { ##1 } } }
% \end{macrocode}
-% 在使用章末参考文献表时,\env{refsection} 的单独一章范围内生效,
+% 在使用章末参考文献表时,\env{refsection} 在单独一章范围内生效,
% 无需额外添加环境。 ^^A TODO: 待修改为更简洁的形式
% \begin{macrocode}
\tl_if_eq:NnTF \blx@refsecreset@level { 2 }
@@ -6364,6 +6393,8 @@ To produce the documentation run the original source files ending with
%
% \subsubsection{名称}
% \label{subsubsec:constant-name}
+% ^^A TODO: 将所有名称合并后使用 guard 进行本科生/研究生的区分
+% ^^A TODO: supv -> supvi, supv_ii -> supvii
%
% 由于同一名称在不同位置具有不同变体,本模板使用字母后缀名进行了区分,
% 并在易混淆处添加了注释。
@@ -6399,9 +6430,13 @@ To produce the documentation run the original source files ending with
% 用于小标题的摘要名称字样
{ abstract_b } { 摘\qquad{}要 } { ABSTRACT },
{ appendix } { 附录 } { appendix },
+ { blankdate } { \qquad{}年 \quad{}月 \quad{}日 } { },
+ { blankdate_a } { \njuline{\qquad\qquad} 年
+ \njuline{\qquad} 月 \njuline{\qquad} 日 } { },
+ { comma } { : } { :~ },
{ dept } { 院系 } { DEPARTMENT },
{ figure } { 图 } { figure },
- { keywords } { 关键词: } { Keywords:~ },
+ { keywords } { 关键词 } { Keywords },
{ lang } { 中文 } { 英文 },
{ nju } { 南京大学 } { Nanjing~ University },
{ table } { 表 } { table }
@@ -6421,10 +6456,10 @@ To produce the documentation run the original source files ending with
本科毕业论文(设计) \\ 诚信承诺书 },
{ origsign } { 作者签名 },
{ submitdate } { 提交日期 },
- { supv } { 导师 },
+ { supv } { 指导教师 },
{ title } { 题目 },
{ type } { 本科生毕业论文(设计、作品) },
- { ug } { 本科生 }
+ { ug } { 本科 }
}
{ \@@_define_name:nn #1 }
\clist_map_inline:nn
@@ -6458,8 +6493,6 @@ To produce the documentation run the original source files ending with
{ author_a }
{ \tl_item:Nn \g_@@_info_degree_tl { 1 } 士生姓名 },
{ authsign } { 作者签名:\njuline{\hspace{6em}} },
- { blankdate } { \njuline{\qquad\qquad} 年
- \njuline{\qquad} 月 \njuline{\qquad} 日 },
% 用于摘要的作者名称字样
{ chairman } { 答辩委员会主席: },
{ clc } { 分类号 },
@@ -6488,8 +6521,8 @@ To produce the documentation run the original source files ending with
{ secretstatus } { 论文涉密情况: },
{ secretfree } { 不保密 },
{ secretdate }
- { 保密,保密期( \c_@@_name_blankdate_tl 至
- \c_@@_name_blankdate_tl ) },
+ { 保密,保密期( \c_@@_name_blankdate_a_tl 至
+ \c_@@_name_blankdate_a_tl ) },
{ sign } { (签字) },
{ submitdate } { 论文提交日期 },
{ subtitle } { (题名和副题名) },
@@ -6609,7 +6642,6 @@ To produce the documentation run the original source files ending with
% \label{subsubsec:constant-length}
%
% \changes{v0.17}{2022/04/09}{将长度值分离到 \file{.def} 文件。}
-% \changes{v0.18}{2022/04/20}{统一管理校名校徽尺寸。}
% 默认长度值。
% \begin{macrocode}
\clist_map_inline:nn
@@ -6633,21 +6665,25 @@ To produce the documentation run the original source files ending with
% \label{subsubsec:constant-format}
%
% \changes{v0.17}{2022/04/09}{将样式定义分离到 \file{.def} 文件。}
-% \changes{v0.19}{2022/05/11}{简化默认页面样式的修改方式。}
+% \changes{v0.20}{2022/05/28}{修复前一版本中错误的目录条目样式。}
% 默认样式。
% \begin{macrocode}
\clist_map_inline:nn
{
%<definition-ug> { pagestyle } { plain },
%<definition-g> { pagestyle } { headings },
- { section } { \large \sffamily },
+ { emblemcolor } { black },
+ { namecolor } { black },
+ { section } { \large \normalfont \sffamily },
{ chapter } { \c_@@_fmt_section_tl \centering },
{ chapterintoc } { \c_@@_fmt_section_tl },
{ subsection } { \c_@@_fmt_section_tl },
{ subsubsection } { \c_@@_fmt_section_tl },
{ paragraph } { \c_@@_fmt_section_tl },
{ subparagraph } { \c_@@_fmt_section_tl },
- { toctitle } { \centering \zihao { 3 } \bfseries }
+ { toctitle } { \centering \zihao { 3 } \bfseries },
+ { header } { \small \kaishu },
+ { footer } { \small \rmfamily }
}
{ \@@_define_fmt:nn #1 }
%</(definition-ug|definition-g)>
diff --git a/macros/unicodetex/latex/njuthesis/njuthesis.pdf b/macros/unicodetex/latex/njuthesis/njuthesis.pdf
index 3ed1bf2a66..82244fc5b4 100644
--- a/macros/unicodetex/latex/njuthesis/njuthesis.pdf
+++ b/macros/unicodetex/latex/njuthesis/njuthesis.pdf
Binary files differ