Skip to content

Commit

Permalink
增加「延期公开」功能、修改「第二导师」行为;Close #102 Close 107
Browse files Browse the repository at this point in the history
  • Loading branch information
sikouhjw committed Sep 26, 2023
1 parent ce1d613 commit 68dc365
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 17 deletions.
67 changes: 50 additions & 17 deletions gdutthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,11 @@
},
secret-level .value_required:n = true,
}
\tl_new:c { l__gdut_info_ delay_time _name_tl }
\keys_define:nn { gdut / info }
{
delay-time .clist_set:N = \l__gdut_info_delay_time_name_tl,
}
%% 设置数学间距
\ctex_after_end_preamble:n
{
Expand Down Expand Up @@ -1827,6 +1832,7 @@
info / supervisor-two = none,
info / supervisor-three = none,
info / secret-level = none,
info / delay-time = none,
info / date = { 2021/5/1 },
theorem / header-font = bf,
theorem / body-font = rm,
Expand Down Expand Up @@ -1921,6 +1927,11 @@
\linespread{\ZhLS@bodylinespread}\selectfont
}
{ }
\str_if_eq:NNTF \l__gdut_info_delay_time_name_tl {none}
{ }
{
\mbox{}\hfill \begingroup \sffamily\zihao{3}延期公开 \uline{\l__gdut_info_delay_time_name_tl} 年 \par \endgroup
}
\vspace*{0.4\baselineskip-1.5pt}
\begingroup \centering
\begin{tabular}{>{\zihao{4}}r@{\hspace*{7\ccwd}}>{\zihao{4}\raggedright\arraybackslash}p{6\ccwd}@{\hspace*{5\ccwd}}>{\zihao{4}}p{12\ccwd}}
Expand All @@ -1936,30 +1947,52 @@
\vspace*{\baselineskip+5.75pt}
\begingroup \centering\zihao{3} \l__gdut_info_author_tl\par \endgroup
\vspace*{7.5\baselineskip}
\str_if_eq:NNTF \l__gdut_info_supervisor_three_tl {none}
{
\str_if_eq:NNTF \l__gdut_info_supervisor_two_tl {none}
{
\vspace*{1.1\baselineskip}
}
{ }
}
{ }
\begingroup \centering\zihao{4}
\begin{tabular}{c>{\centering\arraybackslash}p{16\ccwd}}
\str_if_eq:NNTF \l__gdut_info_supervisor_three_tl {none}
{
\multirow{6}*
{
\begin{CJKfilltwosides*}{0pt}
指导教师姓名、职称:\\
校外指导教师姓名、职称:\\
学科(专业)或领域名称:\\
学生所属学院:\\
答辩委员会主席:\\
论文答辩日期:
\end{CJKfilltwosides*}
}
\str_if_eq:NNTF \l__gdut_info_supervisor_two_tl {none}
{
\multirow{5}*
{
\begin{CJKfilltwosides*}{0pt}
指导教师姓名、职称:\\
学科(专业)或领域名称:\\
学生所属学院:\\
答辩委员会主席:\\
论文答辩日期:
\end{CJKfilltwosides*}
}
}
{
\multirow{6}*
{
\begin{CJKfilltwosides*}{0pt}
指导教师姓名、职称:\\
校外指导教师姓名、职称:\\
学科(专业)或领域名称:\\
学生所属学院:\\
答辩委员会主席:\\
论文答辩日期:
\end{CJKfilltwosides*}
}
}
& \l__gdut_info_supervisor_name_tl \gdut_name_jobname_spacer: \l__gdut_info_supervisor_jobname_tl \\
\cline{2-2}
\str_if_eq:NNTF \l__gdut_info_supervisor_two_tl {none}
{
& 无 \\ \cline{2-2}
}
{
& \l__gdut_info_supervisor_two_name_tl \gdut_name_jobname_spacer: \l__gdut_info_supervisor_two_jobname_tl \\ \cline{2-2}
}
{ }
{
& \l__gdut_info_supervisor_two_name_tl \gdut_name_jobname_spacer: \l__gdut_info_supervisor_two_jobname_tl \\ \cline{2-2}
}
}
{
\multirow{6}*{
Expand Down
1 change: 1 addition & 0 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
keywords = {关键词1, 关键词2, 关键词3, 关键词4},
keywords* = {keywords 1, keywords 2, keywords 3, keywords 4},
secret-level = {none},
delay-time = {none},
}
}

Expand Down
9 changes: 9 additions & 0 deletions user-manual/gdutthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,15 @@ Copyright (C) 2017&ndash;2021 by Xiangdong Zeng <xdzeng96@gmail.com>.
% 密级。\opt{i}、\opt{ii}、\opt{iii} 分别表示秘密、机密、绝密;
% \opt{none} 表示论文不涉密,即不显示密级。
% \end{function}
%
%
% \begin{function}{info/delay-time}
% \begin{fdusyntax}[emph={[1]delay-time}]
% delay-time = (*(none)|\marg{延期公开年限}*)
% \end{fdusyntax}
% 延期公开年限。若为“延期公开”情况,请输入延期公开年限;
% 若无延期情况,请输入 |none|。
% \end{function}
%^^A! Secret level. \opt{i}, \opt{ii} and \opt{iii} means
%^^A! ``秘密'' (secret), ``机密'' (confidential) and ``绝密''
%^^A! (top secret) respectively. \opt{none} means your thesis is
Expand Down

0 comments on commit 68dc365

Please sign in to comment.