Skip to content
Snippets Groups Projects
Commit 135af12f authored by Yu Xiong's avatar Yu Xiong :confounded:
Browse files

refactor: 使用NNTF代替eeTF以提升编译速度

parent 7df4c330
No related branches found
No related tags found
No related merge requests found
\ProvidesExplPackage{profile/abstract}{2021-09-11}{0.7.0}{NJU Thesis abstract design}
% 判断学位
\str_if_eq:eeTF {\nju_degree} { ug }
\str_if_eq:NNTF {\nju_degree} { ug }
{
% 本科摘要环境
\NewDocumentEnvironment{abstract} {}
......@@ -87,7 +87,7 @@
\noindent
毕业论文题目:\hspace{0.5em}\nju_underline:n {\nju_title\hfill}\\
\uline{\makebox[9em]{\nju_major}}专业\uline{\makebox[4em]{\nju_grade}}
\str_if_eq:eeTF {\nju_degree} { d } {}{}
\str_if_eq:NNTF {\nju_degree} { d } {}{}
士生姓名:\uline{\hfill\nju_student_name\hfill} \\
指导教师(姓名、职称):\uline{\hfill\nju_mentor_full\hfill}\par
\egroup
......
......@@ -29,7 +29,7 @@
}
% 判断学位进行命令定义
\str_if_eq:eeTF {\nju_degree} { ug }
\str_if_eq:NNTF {\nju_degree} { ug }
{
% 本科
\tl_const:Nn \nju_degree_name {\hfill\hfill }
......@@ -81,7 +81,7 @@
}
% 判断类型
\str_if_eq:eeTF {\nju_type} {thesis}
\str_if_eq:NNTF {\nju_type} {thesis}
{
\tl_const:Nn \nju_type_name
{ \nju_degree_name 毕\hfill\hfill\hfill}
......@@ -350,7 +350,7 @@
% 重定义maketitle生成封面
\RenewDocumentCommand \maketitle {} {%
\str_if_eq:eeTF {\nju_degree} { ug }
\str_if_eq:NNTF { \nju_degree } { ug }
{ \nju_printcover_ug } % 本科封面
{ \nju_printcover_g } % 研究生封面
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment