Newer
Older
\@@_declare_element:nn { cover / g / emblem-img }
{
content = \njuemblem [ black ] { ! } { 1.9 cm },
bottom-skip = 1 cm
}
% \end{macrocode}
%
% \begin{macro}{cover/g/name-img}
% 研究生封面校名图片实例。
\@@_declare_element:nn { cover / g / name-img }
content = \njuname [ black ] { 4.4 cm } { ! },
\@@_declare_element:nn { cover / g / type }
content =
\@@_spread_box:nnn { 9 em } { } { \l_@@_info_type_tl },
format = \zihao { -1 } \bfseries,
bottom-skip = 1 cm
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{cover/g/degree}
% 研究生封面标题实例。
% \begin{macrocode}
\@@_declare_element:nn { cover / g / degree }
{
content = \c_@@_name_apply_tl,
format = \zihao { -1 } \bfseries,
bottom-skip = 1 cm plus 1.5 fil
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{cover/g/info}
% 研究封面信息栏实例。
% \begin{macrocode}
\@@_declare_element:nn { cover / g / info }
content = \@@_cover_info_g:nn { 6.2 em } { 18 em },
bottom-skip = 0 pt plus 1.5 fil
% \begin{macro}{cover/g/date}
% 研究封面日期实例。
% \begin{macrocode}
\@@_declare_element:nn { cover / g / date }
{ content = \l_@@_info_sm_date_tl }
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@@_cover_info_g:nn}
% 研究生封面信息栏。
% \begin{arguments}
% \item 名称盒子宽度,|dim| 型变量
% \item 内容盒子宽度,|dim| 型变量
% \end{arguments}
% \begin{macrocode}
\cs_new_protected:Npn \@@_cover_info_g:nn #1#2
}
% \end{macrocode}
% \end{macro}
%
% \subparagraph{背面}
%
% \begin{macro}{cover/g/back}
% 研究生封面背面信息实例。
% \begin{macrocode}
\@@_declare_element:nn { cover / g / back }
% \begin{macrocode}
\cs_new_protected:Npn \@@_cover_back_g:
\@@_spread_box:nnn { 6.2 em } { \kaishu } { \c_@@_name_id_tl }
{ : \@@_quad: } \l_@@_info_id_tl
\@@_vskip:
\@@_spread_box:nnn { 6.2 em } { \kaishu } { \c_@@_name_df_date_tl }
{ : \@@_quad: } \l_@@_info_df_date_tl
\@@_vskip:
\@@_spread_box:nnn { 6.2 em } { \kaishu } { \c_@@_name_supv_full_tl }
{ : \@@_quad: } \skip_horizontal:n { 8 em } \c_@@_name_sign_tl
% \subparagraph{英文封面} 包括标题、顶部、中部、校徽、底部。
%
% \begin{macro}{cover/g/en/title}
% 研究生英文封面标题实例。
\@@_declare_element:nn { cover / g / en / title }
content = \l_@@_info_title_en_tl,
format = \bf \sffamily \zihao { 2 },
bottom-skip = 2 cm
% \end{macro}
%
% \begin{macro}{cover/g/en/top}
% 研究生英文封面顶部信息实例。
\@@_declare_element:nn { cover / g / en / top }
{ by }
\skip_vertical:N \c_zero_skip
\textbf { \sffamily \l_@@_info_author_en_tl }
{ Supervised~ by }
\skip_vertical:N \c_zero_skip
\textsf { \l_@@_info_supv_full_en_tl },
format = \zihao { 4 },
bottom-skip = 0 pt plus 1.2 fil
% \end{macro}
%
% \begin{macro}{cover/g/en/middle}
% 研究生英文封面中部信息实例。
\@@_declare_element:nn { cover / g / en / middle }
\c_@@_cover_en_text_tl \@@_vskip:
\textsc { \clist_item:Nn \c_@@_name_degree_en_clist
% \end{macro}
%
% \begin{macro}{cover/g/en/emblem-img}
% 研究生英文封面校徽图片实例。
\@@_declare_element:nn { cover / g / en / emblem-img }
content = \njuemblem [ black ] { ! } { 2.5 cm },
bottom-skip = 1.5 cm
% \end{macro}
%
% \begin{macro}{cover/g/en/bottom}
% 研究生英文封面底部信息实例。
\@@_declare_element:nn { cover / g / en / bottom }
{
content =
\l_@@_info_dept_en_tl \skip_vertical:N \c_zero_skip
\c_@@_name_nju_en_tl \skip_vertical:n { 1 cm }
% \subparagraph{国家图书馆封面} 包括顶部、题名、标题、中部、底部、日期。
%
% \begin{macro}{cover/nl/top}
% 国家图书馆封面顶部信息实例。
% \begin{macrocode}
\@@_declare_element:nn { cover / nl / top }
content = \@@_cover_top_nl:,
bottom-skip = 2 cm
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{cover/nl/name}
% 国家图书馆封面标题名称实例。
% \begin{macrocode}
\@@_declare_element:nn { cover / nl / name }
\@@_spread_box:nnn { 6 em } { } { \c_@@_name_title_tl },
format = \zihao { -0 },
bottom-skip = 0 pt plus 1.2 fil
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{cover/nl/title}
% 国家图书馆封面标题实例。
% \begin{macrocode}
\@@_declare_element:nn { cover / nl / title }
content = \@@_cover_title_nl:,
format = \zihao { 1 },
bottom-skip = 1 cm
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{cover/nl/middle}
% 国家图书馆封面中部信息实例。
% \begin{macrocode}
\@@_declare_element:nn { cover / nl / middle }
content = \@@_cover_info_nl:,
format = \zihao { 4 },
bottom-skip = 0 pt plus 1.2 fil
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{cover/nl/bottom}
% 国家图书馆封面底部信息实例。
% \begin{macrocode}
\@@_declare_element:nn { cover / nl / bottom }
content = \@@_cover_bottom_nl:,
bottom-skip = 1 cm,
align = r
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{cover/nl/date}
% 国家图书馆封面底部日期实例。
% \begin{macrocode}
\@@_declare_element:nn { cover / nl / date }
{
content = \@@_qquad: 年 \@@_quad: 月 \@@_quad: 日,
}
% \end{macrocode}
% \end{macro}
%
\@@_spread_box:nnn { 3.2 em } { } { \c_@@_name_clc_tl } \@@_hskip:
\@@_ulined_center_box:nn { 9 em } { \l_@@_info_clc_tl } \hfill
\@@_spread_box:nnn { 3.2 em } { } { \c_@@_name_seclv_tl } \@@_hskip:
\@@_ulined_center_box:nn { 9 em } { \l_@@_info_seclv_tl } \\
\@@_spread_box:nnn { 3.2 em } { } { \c_@@_name_udc_tl } \@@_hskip:
\@@_ulined_center_box:nn { 9 em } { \l_@@_info_udc_tl } \hfill \null
% \begin{macro}{\@@_cover_title_nl:}
% 国家图书馆封面标题。
% \begin{macrocode}
\cs_new_protected:Npn \@@_cover_title_nl:
{
\@@_split_title:n { \l_@@_info_title_tl }
\@@_multiline_box:nnnn { \l_@@_tmp_int } \l_@@_tmp_clist { 3 } { 15 em }
\@@_ulined_center_box:nn { 4.5 em } { \l__nju_info_author_tl }
\skip_vertical:n { - 0.5 cm }
{ \zihao { 4 } { ( } \c_@@_name_author_tl { ) } }
\tl_set:Nn \l_@@_info_supv_tl
{ \clist_item:Nn \l_@@_info_supv_clist { 1 } }
\tl_set:Nn \l_@@_info_supv_ttl_tl
{ \clist_item:Nn \l_@@_info_supv_clist { 2 } }
\@@_uline_entry:Nnnn \l_@@_tmp_dim { supv_info } { supv } { } \\
\@@_ulined_center_box:nn { \textwidth } { \@@_info:n { supv_ttl }
\@@_quad: \@@_info:n { supv_cont } } \\
\@@_uline_bientry:Nnnn \l_@@_tmp_dim { degree } { degree } { }
\@@_uline_bientry:Nnnn \l_@@_tmp_dim { major_b } { major } { } \\
\@@_uline_bientry:Nnnn \l_@@_tmp_dim { sm_date } { sm_date } { }
\@@_uline_bientry:Nnnn \l_@@_tmp_dim { df_date } { df_date } { } \\
\@@_full_uline:Nn \l_@@_tmp_dim { \c_@@_name_confer_tl }
\@@_uline:n { \l_@@_tmp_dim }
% \begin{macro}{\@@_cover_bottom_nl:}
% 国家图书馆封面底部信息。
\@@_name:n { chairman } \@@_hskip:
\@@_ulined_center_box:nn { 9 em } { \@@_info:n { chairman } } \\
\@@_name:n { reviewer } \@@_hskip:
% \changes{v0.13}{2021/12/10}{使用 \hologo{LaTeX3} 语法重构本科生封面。}
% \changes{v0.13}{2021/12/11}{使用 \hologo{LaTeX3} 语法重构研究生封面。}
% \changes{v0.13}{2021/12/12}{使用 \hologo{LaTeX3} 语法重构国家图书馆封面。}
% 定义封面页面的具体配置参数。
%
% \begin{macro}{cover-ug-default}
% 默认本科生封面实例。
element = { emblem-img, name-img, title, info },
prefix = cover / ug /,
bottom-skip = 0.5 cm plus 1.5 fill
% \begin{macro}{cover-g-front-default}
% 默认研究生普通封面正面实例。
\@@_declare_page:nn { cover-g-front-default }
element = { emblem-img, name-img, type, degree, info, date },
prefix = cover / g /,
format = \zihao { 3 } \kaishu,
top-skip = 1.5 cm
}
% \end{macro}
%
% \begin{macro}{cover-g-back-default}
% 默认研究生普通封面背面实例。
\@@_declare_page:nn { cover-g-back-default }
{
element = { back },
prefix = cover / g /,
format = \zihao { 3 } \kaishu,
top-skip = 20 cm
}
% \end{macro}
%
% \begin{macro}{cover-g-en-default}
% 默认研究生英文封面实例。
element = { title, top, middle, emblem-img, bottom },
prefix = cover / g / en /,
top-skip = 0 pt plus 1.2 fil
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{cover-nl-default}
% 默认国家图书馆封面实例。
% \begin{macrocode}
element = { top, name, title, middle, bottom, date },
prefix = cover / nl /,
format = \kaishu
% \begin{macro}{\@@_make_cover:}
% 生成本科生或研究生的普通封面。
%<*(definition-ug|definition-g)>
\cs_new_protected:Npn \@@_make_cover:
%<definition-ug> \UseInstance { nju } { cover-ug-default }
%<definition-g> \clist_map_inline:nn { front, back, en }
%<definition-g> { \UseInstance { nju } { cover-g- ##1 -default } }
% \begin{macro}{\@@_make_cover_nl:}
% 生成研究生的国家图书馆封面。
%<definition-g>\cs_new_protected:Npn \@@_make_cover_nl:
%<definition-g> { \UseInstance { nju } { cover-nl-default } }
\thispagestyle { empty }
\c_@@_orig_decl_text_tl
\vfil
\begin{flushright}
%<definition-ug> \clist_map_inline:nn { orig_sign, id, orig_date }
%<definition-g> \clist_map_inline:nn { orig_sign, orig_date }
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
% \begin{macro}{\@@_new_img_cmd:nn,\@@_new_img_cmd:nV}
% 用于定义插入图片命令的辅助函数。
% \begin{macrocode}
%<*class>
\cs_new_protected:Npn \@@_new_img_cmd:nn #1#2
{
\exp_args:Nc \NewDocumentCommand { #1 } { o m m }
{ \includegraphics [ width = ##2, height = ##3 ] { #2 } }
}
\cs_generate_variant:Nn \@@_new_img_cmd:nn { nV }
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\keys_define:nn { nju / style }
{
% \end{macrocode}
% \begin{macro}{style/emblem-img,\njuemblem}
% \changes{v0.14}{2021/12/23}{提供选择外置校徽图片的接口。}
% 校徽图片路径。
% \begin{macrocode}
emblem-img .code:n =
{ \@@_new_img_cmd:nV { njuemblem } \l_keys_value_tl },
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{style/name-img,\njuname}
% \changes{v0.14}{2021/12/23}{提供选择外置校名图片的接口。}
% 校名图片路径。
% \begin{macrocode}
name-img .code:n =
{ \@@_new_img_cmd:nV { njuname } \l_keys_value_tl }
}
% \end{macrocode}
% \end{macro}
%
% \changes{v0.16}{2022/02/22}{不再默认载入 \pkg{njuvisual}。}
% 检查 \cs{njuemblem} 和 \cs{njuname} 命令是否有定义。
% \begin{macrocode}
\msg_new:nnn { njuthesis } { missing-image }
{
Local~ images~ not~ designated.\\
It~ seems~ that~ you~ haven't~ fill~ in~ both~
"style/emblem-img"~ and~ "style/name-img",~
therefore~ I~ am~ using~ package~ "njuvisual"~
instead,~ which~ may~ slow~ down~ the~ compilation.
}
\ctex_at_end_preamble:n
{
% \end{macrocode}
% 如果校名、校徽图片其中之一的路径未被定义,
% 则全盘使用 \pkg{njuvisual} 提供的绘制命令。
% \begin{macrocode}
\bool_lazy_and:nnF
{ \cs_if_exist_p:N \njuemblem }
{ \cs_if_exist_p:N \njuname }
{
\cs_undefine:N \njuemblem
\cs_undefine:N \njuname
\msg_warning:nn { njuthesis } { missing-image }
\RequirePackage { njuvisual }
}
}
% \end{macrocode}
%
\pagestyle { empty }
\pagenumbering { gobble }
% 如果在研究生模板中选择了 \opt{nlcover},就生成用于申请学位的国家图书馆封面,
% 反之生成普通封面。
% \begin{macrocode}
\bool_if:NT \g_@@_orig_decl_bool { \@@_make_orig_decl: }
% \begin{macrocode}
\keys_define:nn { nju / style }
{
% \end{macrocode}
% \begin{macro}{style/abstract-in-toc}
% \changes{v0.15}{2022/02/04}{可选择摘要是否出现在目录中。}
% 是否将摘要添加到目录。
% \begin{macrocode}
abstract-in-toc .bool_gset:N = \g_@@_abs_in_toc_bool,
abstract-in-toc .initial:n = true
}
% \end{macrocode}
% \end{macro}
%
% \changes{v0.14}{2021/12/21}{将摘要插入目录。}
% 生成摘要的目录条目。
% \begin{macrocode}
{
\phantomsection
\bool_if:NTF \g_@@_abs_in_toc_bool
{ \@@_add_tocline:n { #1 } }
{ \pdfbookmark [0] { #1 } { #2 } }
% \begin{arguments}
% \item 宽度,|dim| 型变量
% \end{arguments}
{ \bf \kaishu \zihao { -2 } \@@_uuline:n { #1 } }
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@@_abs_info_style:n,\@@_abs_info_style_en:n}
% \begin{arguments}
% \item 字号
% \end{arguments}
% \begin{macrocode}
\cs_new_protected:Npn \@@_abs_info_style_en: #1
{ \zihao{ #1 } }
% \begin{arguments}
% \item 语言,空置为中文,|_en| 为英文
% \item 分隔符
% \end{arguments}
\tl_if_blank:eTF { #1 }
{ \c_@@_name_title_tl }
{ \clist_item:Nn \c_@@_name_type_en_clist { \l_@@_info_type_int } }
#2 \tl_use:c { l_@@_info_title #1 _tl } \\
% \end{macrocode}
% 由于作者姓名使用的字样发生了变动,这里进行替换以便嵌入循环。
% \begin{macrocode}
\tl_set_eq:NN \c_@@_name_author_tl \c_@@_name_author_a_tl
% \end{macrocode}
% 使用循环输出院系、专业、作者、导师信息。
% \begin{macrocode}
\clist_map_inline:nn { dept, major, author, supv_full }
{ \@@_name:n { ##1 #1 } #2 \@@_info:n { ##1 #1 } \\ }
\@@_name:n { abstract #1 } #2
}
% \end{macrocode}
% \end{macro}
%
% \begin{arguments}
% \item 语言,空置为中文,|_en| 为英文
% \item 分隔符
% \end{macrocode}
% 中文摘要环境,使用 \cs{@@_full_uline:NV} 确定内容宽度后,调用 \cs{@@_uline:n} 或 \cs{@@_ulined_center_box:nn} 命令以绘制横穿页面的下划线。前两行为标题。
% \begin{macrocode}
\@@_full_uline:NV \l_@@_tmp_dim
{
\clist_item:Nn \c_@@_name_type_clist { \l_@@_info_type_int }
% \end{macrocode}
% 专业、年级、姓名。
% \begin{macrocode}
\@@_full_uline:NV \l_@@_tmp_dim
{
\@@_ulined_center_box:nn { 11 em } { \l_@@_info_major_tl }
\@@_ulined_center_box:nn { 4 em } { \l_@@_info_grade_tl }
}
\@@_ulined_center_box:nn { \l_@@_tmp_dim }
{ \l_@@_info_author_tl } \\
% \end{macrocode}
% 导师姓名、职称。
% \begin{macrocode}
\@@_ulined_center_box:nn { \l_@@_tmp_dim }
{ \l_@@_info_supv_full_tl }
}
% \end{macrocode}
% 英文摘要环境。前两行为标题。
% \begin{macrocode}
{ \clist_item:cn { c_@@_name_type #1 _clist }
{ \l_@@_info_type_int } # 2 }
\@@_ulined_center_box:nn { \l_@@_tmp_dim }
{ \tl_range:Nnn \l_@@_info_title_en_tl { 1 } { 40 } } \\
\@@_uline:n { \textwidth } \@@_qquad:
\tl_range:Nnn \l_@@_info_title_en_tl { 41 } { -1 }
% \end{macrocode}
% 使用循环输出专业、姓名、导师。注意这里将 |\\| 放置在前部,以避免末尾生成多余的换行符产生 |Underfull \vbox| 信息。
% \begin{macrocode}
\clist_map_inline:nn { major, author, supv_full }
\@@_uline_entry:Nnnn \l_@@_tmp_dim
{ ##1 _en } { ##1 _en } { #2 }
% 生成中英文关键词列表。
% \begin{arguments}
% \item 语言,空置为中文,|_en| 为英文
% \item 关键词分隔符
% \end{arguments}
\exp_args:NNc
\tl_set_eq:NN \l_@@_tmp_tl { c_@@_name_keywords #1 _tl }
\@@_get_text_width:Nn \l_@@_tmp_dim { \l_@@_tmp_tl }
\list { }
{
\labelwidth \l_@@_tmp_dim
\labelsep \c_zero_dim
\leftmargin \c_zero_dim
\rightmargin \c_zero_dim
\advance \leftmargin \l_@@_tmp_dim
% \end{macrocode}
% 使用粗体作为标签样式。
% \begin{macrocode}
\cs_set_eq:NN \makelabel \textbf
}
\item [ \l_@@_tmp_tl ]
\clist_use:cn { l_@@_info_keywords #1 _clist } { #2 }
\endlist
% \subsubsection{绘制摘要}
%
% \begin{macro}{\@@_make_abs_ug:nn}
% \changes{v0.13}{2021/12/12}{使用 \hologo{LaTeX3} 语法重构本科生摘要。}
% \begin{arguments}
% \item 语言,空置为中文,|_en| 为英文
% \item 关键词分隔符
% \end{arguments}
% 生成本科生摘要。
\cs_new_protected:Npn \@@_make_abs_ug:nn #1#2
{
\begin{center}
\end{center}
\group_begin:
\@@_abs_info_style:n { -4 }
\@@_abs_info_ug:nn { #1 } { #2 }
\group_end: \@@_vskip:
}
% \begin{macro}{\@@_make_abs_g:nn}
% \changes{v0.13}{2021/12/12}{使用 \hologo{LaTeX3} 语法重构研究生摘要。}
% \begin{arguments}
% \item 语言,空置为中文,|_en| 为英文
% \item 关键词分隔符
% \end{arguments}
% 生成研究生摘要。
\cs_new_protected:Npn \@@_make_abs_g:nn #1#2
{
\begin{center}
\end{center}
\group_begin:
\@@_abs_info_style:n { 4 }
\@@_abs_info_g:nn { #1 } { #2 }
% \begin{environment}{abstract}
% \changes{v0.13}{2021/12/12}{重新绘制摘要。}
\@@_abs_bookmark:Vn \c_@@_name_abstract_a_tl { abstract }
% 英文摘要环境。\pkg{xparse} 目前不支持合并带有星号的环境,因此需要单独定义。
% \begin{macrocode}
\@@_abs_bookmark:Vn \c_@@_name_abstract_a_en_tl { abstract-en }
% \begin{environment}{preface}
% \begin{environment}{acknowledgement}
% \begin{macro}{\njupaperlist}
% \changes{v0.10}{2021/09/29}{新增了成果列表页面。}
\NewDocumentCommand \njupaperlist
{ O { \c_@@_name_paperlist_tl } m }
\group_begin:
% \end{macrocode}
% 修改姓名的显示方式,使被注解的姓名可被加粗下划线表示。
% \begin{macrocode}
\RenewDocumentCommand \mkbibnamegiven { m }
{ \njuline { \bf ##1 } } { ##1 } }
\RenewDocumentCommand \mkbibnamefamily { m }
{ \njuline { \bf ##1 } } { ##1 } }
% \end{macrocode}
% 修改年份的显示方式,默认进行加粗。
% \begin{macrocode}
\RenewDocumentCommand \mkbibdateshort { m m m }
{ \textbf { \thefield { ##1 } } }
\nocite { #2 }
\printbibliography [ heading = subbibliography, title = #1 ]
%
% \subsection{符号表}
%
% \begin{macro}{\@@_notation_label:n}
% 左对齐的标签格式,用于符号表。
% \begin{macrocode}
\cs_new_protected:Npn \@@_notation_label:n #1 { #1 \hfil }
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@@_make_notation:nn}
% 生成符号表。由于符号表只有符号和说明两列,相比于 \env{longtable} 环境,
% \env{description} 环境的语法更为简洁直观,且说明文字可以换行,因而此处使用
% \hologo{LaTeX2e} 的列表环境进行封装,定义和语法参见 \file{source2e.pdf} 中的
% \begin{macrocode}
\cs_new_protected:Npn \@@_make_notation:nn #1#2
{
\dim_set:Nn \l_@@_tmp_dim { \textwidth - #1 - #2 }
\list { }
{
% \end{macrocode}
% \tn{list} 环境使用宽度固定的盒子制作标签,通过指定这个盒子的宽度
% \tn{labelwidth} 即可确定左侧标签区域的宽度。
% \begin{macrocode}
\labelsep \c_zero_dim
\itemsep \c_zero_dim
\parsep \c_zero_dim
% \end{macrocode}
% 右侧说明文字区域的宽度无法直接指定,而是靠计算左右边距 \tn{leftmargin} 和
% \tn{rightmargin} 得到的。
% \begin{macrocode}
}
}
% \end{macrocode}
% \end{macro}
%
% \begin{environment}{notation}
% 符号表环境。
% \begin{arguments}
% \item 说明区域宽度,初始值为 10 em。说明宽度的调整更为常见,所以放在前面。
% \item 符号区域宽度,初始值为 5 em
% \end{arguments}
% \begin{macrocode}
\NewDocumentEnvironment { notation } { O { 10 em } O { 5 em } }
\@@_make_notation:nn { #1 } { #2 }
}
{ \endlist }
% \end{macrocode}
% \end{environment}
%
% \begin{environment}{notation*}
% 带有星号的符号表不会插入目录。
% \begin{macrocode}
\NewDocumentEnvironment { notation* } { O { 10 em } O { 5 em } }
{
\@@_make_notation:nn { #1 } { #2 }
}
{ \endlist }
%</class>
% \end{macrocode}
% \end{environment}
%
% \changes{v0.16}{2022/02/23}{将名称常量分离到 \file{.def} 文件。}
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
%
% 由于同一名称在不同位置具有不同变体,本模板使用字母后缀名进行了区分,
% 并在易混淆处添加了注释。
%
% 通用默认名称。注意空格是忽略掉的。
% \begin{macrocode}
%<*(definition-ug|definition-g)>
\clist_map_inline:nn
{
{ acknowledgement } { 致\hspace{2em}谢 },
{ id } { 学号 },
{ notation } { 符号表 },
{ orig_date } { 日期 },
{ paperlist } { 发表文章目录 },
{ pdf_creator } { LaTeX~ with~ njuthesis~ class },
{ preface } { 前\hspace{2em}言 },
{ supv_ii } { 第二导师 },
{ supv_ttl } { 职称 }
}
{ \@@_define_name:nn #1 }
% \end{macrocode}
%
% 定义同时使用到中英文名称的常量。
% \begin{macrocode}
\clist_map_inline:nn
{
{ abstract } { 摘要 } { ABSTRACT },
% 用于书签的摘要名称字样
{ abstract_a } { 中文摘要 } { ABSTRACT },
{ appendix } { 附录 } { appendix },
{ dept } { 院系 } { DEPARTMENT },
{ figure } { 图 } { figure },
{ keywords } { 关键词: } { Keywords:~ },
{ lang } { 中文 } { 英文 },
{ nju } { 南京大学 } { Nanjing~ University },
{ table } { 表 } { table }