summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/njuthesis/njuthesis-graduate.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/njuthesis/njuthesis-graduate.def')
-rw-r--r--Master/texmf-dist/tex/latex/njuthesis/njuthesis-graduate.def80
1 files changed, 35 insertions, 45 deletions
diff --git a/Master/texmf-dist/tex/latex/njuthesis/njuthesis-graduate.def b/Master/texmf-dist/tex/latex/njuthesis/njuthesis-graduate.def
index 6aa670fb152..1292bef9a24 100644
--- a/Master/texmf-dist/tex/latex/njuthesis/njuthesis-graduate.def
+++ b/Master/texmf-dist/tex/latex/njuthesis/njuthesis-graduate.def
@@ -23,36 +23,20 @@
%% To produce the documentation run the original source files ending with
%% `.dtx' through XeTeX.
%%
-\GetIdInfo $Id: njuthesis.dtx 1.2.1 2023-05-03 13:30:00
+\GetIdInfo $Id: njuthesis.dtx 1.3.0 2023-06-06 11:30:00
+0800 NJU LUG <git+nju-lug-email-3104-issue-@yaoge123.cn>$
{Graduate definition file for njuthesis}
\ProvidesExplFile{njuthesis-graduate.def}
{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
- % \begin{syntax}
- % \OPT{degree} = \Arg{中文学位名}
- % \OPT{degree*} = \Arg{英文学位名}
- % \end{syntax}
- % 研究生国家图书馆封面英文封面上的学位名称。默认会由模板通过 \opt{degree}
- % 和 \opt{type} 文档类选项生成,也可以由本选项自定义名称。
- % \end{function}
\bool_if:NT \g__nju_opt_decl_bool { \RequirePackage { tabularray } }
-\ctex_at_end_preamble:n
+\cs_set:Npn \__nju_date:nn #1#2
+ { \__nju_date:nnn { } {#1} {#2} \__nju_date:nnn { _en } {#1} {#2} }
+\tl_new:N \g__nju_info_confer_tl
+\tl_set:Nn \g__nju_info_confer_tl
{
- \__nju_date:n { submit }
- \__nju_date_en:n { submit }
- \__nju_date:n { defend }
- \bool_if:NT \g__nju_opt_nlcover_bool
- {
- \__nju_date:n { bottom }
- \__nju_date:n { confer }
- \tl_new:N \g__nju_info_confer_tl
- \tl_set:Nn \g__nju_info_confer_tl
- {
- \textbf { \c__nju_name_nju_tl } \hfil
- \g__nju_info_conferdate_tl
- }
- }
+ \textbf { \c__nju_name_nju_tl } \hfil
+ \g__nju_info_conferdate_tl
}
\tl_new:N \g__nju_info_type_tl
\tl_set:Nx \g__nju_info_type_tl
@@ -117,16 +101,19 @@
\l__nju_tmpb_dim \tex_relax:D { ##1 }
}
}
-\cs_new_protected:Npn \__nju_g_cover_info:NNNN #1#2#3#4
+\cs_new_protected:Npn \__nju_g_cover_info:NNNNN #1#2#3#4#5
{
- \__nju_cover_entry_title:NNNN #1 #2 #3 #4
- \clist_map_inline:nn { author, major, field, supvfull }
- { \__nju_cover_entry:NNNNn #1 #2 #3 #4 { ##1 } }
+ \bool_if:NTF \g__nju_opt_academic_bool
+ { \clist_set:Nn #1 { author, major, field, supvfull } }
+ { \clist_set:Nn #1 { author, majorc, field, supvfull } }
+ \__nju_cover_entry_title:NNNN #2 #3 #4 #5
+ \clist_map_inline:Nn #1
+ { \__nju_cover_entry:NNNNn #2 #3 #4 #5 { ##1 } }
}
\cs_new:Npn \__nju_g_cover_info:
{
\tl_set:Nn \l__nju_tmpa_tl { \skip_horizontal:n { .7 cm } }
- \__nju_g_cover_info:NNNN \l__nju_tmpa_tl
+ \__nju_g_cover_info:NNNNN \l__nju_tmpa_clist \l__nju_tmpa_tl
\c__nju_clabelwd_dim \c__nju_crulewd_dim \c__nju_fmt_coverlabel_tl
}
\__nju_declare_element:nn { g / cover-back / info }
@@ -144,7 +131,7 @@
\__nju_cover_entry:NNNNn \c_empty_tl #1 #2 #3 { chairman }
\tex_par:D
\__nju_box_spread_name:NNn #1 #3 { reviewer }
- \parbox [ t ] { #2 }
+ \parbox [ t ] {#2}
{
\__nju_box_multiline:NNn \g__nju_info_reviewer_clist #2 { 5 }
\dim_gset_eq:NN \l__nju_tmpa_dim \tex_prevdepth:D
@@ -342,14 +329,14 @@
}
\__nju_declare_element:nn { g / decl / auth / date }
{
- content = \__nju_authdecl_secretlv_g:,
+ content = \__nju_g_decl_auth_secretlv:,
format = \zihao { 5 } ,
align = l
}
-\cs_new_protected:Npn \__nju_degree_checkbox:Nn #1#2
+\cs_new_protected:Npn \__nju_degree_checkbox:nn #1#2
{
\bool_lazy_and:nnTF
- { \g__nju_opt_academic_bool && #1 }
+ { #1 \g__nju_opt_academic_bool }
{ \int_compare_p:n { \g__nju_info_type_int = #2 } }
{
\makebox [ 0 pt ] [l] { \ensuremath { \mdwhtsquare } }
@@ -371,13 +358,13 @@
\c__nju_name_ida_tl & \g__nju_info_id_tl &
\c__nju_name_depta_tl & \g__nju_info_dept_tl &
\c__nju_name_year_tl &
- \tl_range:Nnn \g__nju_info_submitdate_raw_tl {1} {4} \\
+ \tl_range:Nnn \g__nju_info_submitdate_tl {1} {4} \\
\c__nju_name_degreea_tl &
{
- \__nju_degree_checkbox:Nn \c_true_bool { 2 } 学术学位硕士 \qquad
- \__nju_degree_checkbox:Nn \c_false_bool { 2 } 专业学位硕士 \\
- \__nju_degree_checkbox:Nn \c_true_bool { 3 } 学术学位博士 \qquad
- \__nju_degree_checkbox:Nn \c_false_bool { 3 } 专业学位博士
+ \__nju_degree_checkbox:nn { } { 2 } 学术学位硕士 \qquad
+ \__nju_degree_checkbox:nn { ! } { 2 } 专业学位硕士 \\
+ \__nju_degree_checkbox:nn { } { 3 } 学术学位博士 \qquad
+ \__nju_degree_checkbox:nn { ! } { 3 } 专业学位博士
} \\
\c__nju_name_email_tl & \g__nju_info_email_tl \\
\c__nju_name_supvb_tl &
@@ -391,7 +378,7 @@
\c__nju_name_authsign_tl \tex_par:D
\c__nju_name_blankdatea_tl
}
-\cs_new_protected:Npn \__nju_authdecl_secretlv_g:
+\cs_new_protected:Npn \__nju_g_decl_auth_secretlv:
{
\c__nju_name_secretstatus_tl \tex_par:D
\ensuremath { \mdwhtsquare } \c__nju_name_secretfree_tl \tex_par:D
@@ -415,6 +402,7 @@
{
element = { title, top, middle, emblem-img, bottom },
prefix = g / cover-en /,
+ format = \linespread { 1.3 },
top-skip = 0 pt plus 1.2 fil
}
\__nju_declare_page:nn { cover-nl }
@@ -444,11 +432,14 @@
}
\cs_new_protected:Npn \__nju_make_cover:
{
- \clist_map_inline:nn { front, back, en }
- { \UseInstance { nju } { cover-g- ##1 } }
- }
-\cs_new_protected:Npn \__nju_make_cover_nl:
+\bool_if:NTF \g__nju_opt_nlcover_bool
{ \UseInstance { nju } { cover-nl } }
+ {
+ \UseInstance { nju } { cover-g-front }
+ \UseInstance { nju } { cover-g-back }
+ \UseInstance { nju } { cover-g-en }
+ }
+ }
\cs_new_protected:Npn \__nju_make_decl_i:
{
\cleardoublepage
@@ -579,6 +570,7 @@
{ listoftables } { 表格目录 },
{ major a } { 专业 },
{ major b } { 专业名称 },
+ { major c } { 专业学位类别(领域) },
{ notation } { 符号表 },
{ orig decl } { 南京大学学位论文原创性声明 },
{ orig sign } { 研究生签名 },
@@ -639,8 +631,6 @@
{ type } { 学位论文 } { g }
}
{ \__nju_define_name:nnn #1 }
-\bool_if:NF \g__nju_opt_academic_bool
- { \tl_set:Nn \c__nju_name_major_tl { 专业学位类别(领域) } }
\tl_const:Nn \c__nju_text_origdecl_tl
{
本人郑重声明,所提交的学位论文是本人在导师指导下独立进行科学研究工作所
@@ -699,11 +689,11 @@
{ name color } { black },
{ section } { \bigger \normalfont \sffamily },
{ chapter } { \c__nju_fmt_section_tl \centering },
- { chapterintoc } { \c__nju_fmt_section_tl },
{ subsection } { \c__nju_fmt_section_tl },
{ subsubsection } { \c__nju_fmt_section_tl },
{ paragraph } { \c__nju_fmt_section_tl },
{ subparagraph } { \c__nju_fmt_section_tl },
+ { chapterintoc } { \c__nju_fmt_section_tl },
{ toc title } { \centering \zihao { 3 } \bfseries },
{ header } { \small \kaishu },
{ footer } { \small \rmfamily }