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

fix: 修复双导师问题

parent d59887cc
No related branches found
No related tags found
No related merge requests found
\chapter{绪论}
\section{简介}
南京大学学士学位论文\hologo{LaTeX}模板\cite{njuthesis}基于本科生院的论文撰写规范修改,用于生成符合南京大学学位论文排版要求和相应的国家规范、行业标准的学位论文。
南京大学学位论文\hologo{LaTeX}模板\cite{njuthesis}基于本科生院的论文撰写规范制作,同时参考研究生院提供的硕士、博士学位材料包,用于生成符合南京大学学位论文排版要求和相应的国家规范、行业标准的学位论文。
此模板通过LPPL协议开源,旨在为同学提供毕业论文书写的方便,如有模板问题或者版权问题,请于Github上提出issue。
......
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% NJU Thesis
% 南京大学毕业论文LaTeX模板
% Version 0.7.0 (2021-09-11)
% Version 0.7.1 (2021-09-11)
%
% 请关注项目地址以获取最新变化
% https://github.com/nju-lug/NJUThesis
......
......@@ -22,14 +22,7 @@
院系: \nju_department \\
专业: \nju_major \\
本科生姓名: \nju_student_name \\
指导教师(姓名、职称): \nju_mentor_a\ \nju_mentor_a_title
% 第二导师
\bool_if:NTF \nju_second_mentor
{
\hspace{1em} \nju_mentor_b\ \nju_mentor_b_title
}
{}
\\
指导教师(姓名、职称):\nju_mentor_full \\
摘要:
\egroup
}
......@@ -59,14 +52,7 @@
DEPARTMENT: ~~\nju_department_en \\
SPECIALIZATION: ~~\nju_major_en \\
UNDERGRADUATE:~~\nju_student_name_en \\
MENTOR:~~\nju_mentor_a_en \ \nju_mentor_a_title_en
% 第二导师
\bool_if:NTF \nju_second_mentor
{
\hspace{1em} \nju_mentor_b_en\ \nju_mentor_b_title_en
}
{}
\\
MENTOR:~~\nju_mentor_full_en \\
ABSTRACT:
\egroup
}
......@@ -104,12 +90,10 @@
\uline{\makebox[9em]{\nju_major}}专业\uline{\makebox[3em]{\nju_grade}}
\str_if_eq:eeTF {\nju_degree} { d } {}{}
士生姓名:\uline{\hfill\nju_student_name\hfill} \\
指导教师(姓名、职称):\uline{\hfill\nju_mentor_full\hfill}
\\
摘要:
指导教师(姓名、职称):\uline{\hfill\nju_mentor_full\hfill}\par
\egroup
\kaishu\zihao{-4}\par%
\kaishu\zihao{4}\par%
}{%
\newpage
}
......@@ -135,8 +119,7 @@
THESIS: ~~\nju_title_en \\
SPECIALIZATION: ~~\nju_major_en \\
POSTGRADUATE:~~\nju_student_name_en \\
MENTOR:~~\nju_mentor_full_en \\
ABSTRACT:
MENTOR:~~\nju_mentor_full_en\par
\egroup
}
\zihao{4}\par%
......
......@@ -3,6 +3,31 @@
% 拼合标题
\tl_const:Nn \nju_title {\nju_title_a \nju_title_b \nju_title_c}
% 拼合导师
\bool_if:NTF \nju_second_mentor
{
\tl_const:Nn \nju_mentor_full
{
\nju_mentor_a\ \nju_mentor_a_title
\ \ \nju_mentor_b\ \nju_mentor_b_title
}
\tl_const:Nn \nju_mentor_full_en
{
\nju_mentor_a_en\ \nju_mentor_a_title_en
\ \ \nju_mentor_b_en\ \nju_mentor_b_title_en
}
}
{
\tl_const:Nn \nju_mentor_full
{
\nju_mentor_a\ \nju_mentor_a_title
}
\tl_const:Nn \nju_mentor_full_en
{
\nju_mentor_a_en\ \nju_mentor_a_title_en
}
}
% 封面下划线
\cs_new:Npn \nju_cover_underline_ug:nn #1 #2 {
\uline{\makebox[#1]{\rm\songti#2}}
......@@ -25,39 +50,16 @@
{
% 本科以外都是研究生
\tl_const:Nn \nju_degree_name {\hfill\hfill\hfill }
% 拼合导师
\bool_if:NTF \nju_second_mentor
{
\tl_const:Nn \nju_mentor_full
{
\nju_mentor_a\ \nju_mentor_a_title
\ \ \nju_mentor_b\ \nju_mentor_b_title
}
\tl_const:Nn \nju_mentor_full_en
{
\nju_mentor_a_en\ \nju_mentor_a_title_en
\ \ \nju_mentor_b_en\ \nju_mentor_b_title_en
}
}
% 研究生类别
\str_case_e:nn { \nju_degree }
{
\tl_const:Nn \nju_mentor_full
{
\nju_mentor_a\ \nju_mentor_a_title
}
\tl_const:Nn \nju_mentor_full_en
{
\nju_mentor_a_en\ \nju_mentor_a_title_en
}
{ mg } { \tl_const:Nn \nju_degree_title {硕士} }
{ mf } { \tl_const:Nn \nju_degree_title {硕士专业} }
{ d } { \tl_const:Nn \nju_degree_title {博士} }
}
}
\str_case_e:nn { \nju_degree }
{
{ mg } { \tl_const:Nn \nju_degree_title {硕士} }
{ mf } { \tl_const:Nn \nju_degree_title {硕士专业} }
{ d } { \tl_const:Nn \nju_degree_title {博士} }
}
% 判断类型
\str_if_eq:eeTF {\nju_type} {thesis}
{\tl_const:Nn \nju_type_name {\nju_degree_name 毕\hfill\hfill\hfill}}
......
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