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

feat: 修改研究生封面、摘要

parent f1a8f91f
No related branches found
No related tags found
No related merge requests found
......@@ -31,9 +31,9 @@
info = {
% 题目
TitleA = 一种使用南京大学\hologo{LaTeX}模版,
TitleB = 编写本科生毕业论文的经验性方法,
TitleB = 编写毕业论文的经验性方法,
% TitleC = 没有第三行就不用填这个哦,
TitleEN = An~Empirical~Way~of~Composing~Undergraduate~Thesis~with~NJU~\hologo{LaTeX}~Template, %注意英文名中空格必须替换为波浪线
TitleEN = An~Empirical~Way~of~Composing~Thesis~with~NJU~\hologo{LaTeX}~Template, %注意英文名中空格必须替换为波浪线
% 姓名学号
Grade = 2018,
StudentID = 181114514,
......
......@@ -94,21 +94,18 @@
\kaishu\zihao{-2}{\textbf{\uuline{南京大学研究生毕业论文中文摘要首页用纸}}}
\end{center}
{\bgroup
\kaishu\zihao{-4}
\kaishu\zihao{4}
\tl_set:Nn \tabcolsep {0pt}
\tl_set:Nn \arraystretch {0.8}
\noindent
题目: \nju_title \\
\nju_major 专业\nju_grade
毕业论文题目:\uline{\nju_title} \\
\uline{\nju_major}专业\uline{\nju_grade}
\str_if_eq:eeTF {\nju_degree} { d } {}{}
士生姓名: \nju_student_name \\
指导教师(姓名、职称): \nju_mentor_a\ \nju_mentor_a_title
士生姓名:\uline{\nju_student_name} \\
指导教师(姓名、职称):\uline{\nju_mentor_a\ \nju_mentor_a_title
% 第二导师
\bool_if:NTF \nju_second_mentor
{
\ \nju_mentor_b\ \nju_mentor_b_title
}
{}
{ \ \nju_mentor_b\ \nju_mentor_b_title }{}}
\\
摘要:
\egroup
......@@ -121,7 +118,7 @@
% 中文关键词
\NewDocumentCommand \keywords {m} {%
\par\vspace{2ex}\noindent%
{\kaishu\zihao{-4}\makebox[4em][s]{关键词{}}}~{#1}%
{\kaishu\zihao{4}\makebox[4em][s]{关键词{}}}~{#1}%
}
% 英文摘要
......@@ -135,6 +132,7 @@
\end{center}
{
\bgroup
\zihao{4}
THESIS: ~~\nju_title_en \\
SPECIALIZATION: ~~\nju_major_en \\
POSTGRADUATE:~~\nju_student_name_en \\
......@@ -149,7 +147,7 @@
ABSTRACT:
\egroup
}
\zihao{-4}\par%
\zihao{4}\par%
}{%
\cleardoublepage
\newpage
......
......@@ -4,14 +4,20 @@
\tl_const:Nn \nju_title {\nju_title_a \nju_title_b \nju_title_c}
% 封面下划线
\cs_new:Npn \nju_cover_underline:nn #1 #2 {
\uline{\makebox[#1]{#2}}
\cs_new:Npn \nju_cover_underline_ug:nn #1 #2 {
\uline{\makebox[#1]{\rm\songti#2}}
}
\cs_new:Npn \nju_cover_underline_g:n #1 {
\uline{\makebox[215pt]{\rm\kaishu#1}}
}
% 封面表格边框
\cs_new:Npn \nju_coverbox_ug:n #1 {
\makebox[4.2em][s]{#1}
}
\cs_new:Npn \nju_coverbox_g:n #1 {
\makebox[6em][s]{#1\hspace{1em}}
}
% 判断学位
\str_if_eq:eeTF {\nju_degree} { ug }
......@@ -35,92 +41,92 @@
\tl_set:Nn \nju_printcoverinfo_ug {
\begin{tabular}{p{4.2em}c}
\nju_coverbox_ug:n {\hfill}
& \nju_cover_underline:nn {250pt}{\songti\nju_department}\\
& \nju_cover_underline_ug:nn {250pt}{\nju_department}\\
\nju_coverbox_ug:n {\hfill}
& \nju_cover_underline:nn {250pt}{\songti\nju_major}\\
& \nju_cover_underline_ug:nn {250pt}{\nju_major}\\
% 标题换行
\int_case:nn {\nju_titlelength}
{
{ 1 } {
\nju_coverbox_ug:n {\hfill}
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_a}} \\ }
& \nju_cover_underline_ug:nn {250pt}{\bf{\nju_title_a}} \\ }
{ 2 } {
\nju_coverbox_ug:n {\hfill}
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_a}} \\
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_b}} \\ }
& \nju_cover_underline_ug:nn {250pt}{\bf{\nju_title_a}} \\
& \nju_cover_underline_ug:nn {250pt}{\bf{\nju_title_b}} \\ }
{ 3 } {
\nju_coverbox_ug:n {\hfill}
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_a}} \\
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_b}} \\
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_c}} \\}
& \nju_cover_underline_ug:nn {250pt}{\bf{\nju_title_a}} \\
& \nju_cover_underline_ug:nn {250pt}{\bf{\nju_title_b}} \\
& \nju_cover_underline_ug:nn {250pt}{\bf{\nju_title_c}} \\}
}
\end{tabular}\\
\begin{tabular}{p{4.2em}cp{4.2em}c}
\nju_coverbox_ug:n {\hfill}
& \nju_cover_underline:nn {90pt}{\nju_grade}
& \nju_cover_underline_ug:nn {90pt}{\nju_grade}
& \nju_coverbox_ug:n {\hfill}
& \nju_cover_underline:nn {90pt}{\songti\nju_student_id}\\
& \nju_cover_underline_ug:nn {90pt}{\nju_student_id}\\
\end{tabular}\\
\begin{tabular}{p{4.2em}c}
\nju_coverbox_ug:n {\hfill\hfill\hfill}
& \nju_cover_underline:nn {250pt}{\nju_student_name}
& \nju_cover_underline_ug:nn {250pt}{\nju_student_name}
\end{tabular}\\
\begin{tabular}{p{4.2em}cp{4.2em}c}
\nju_coverbox_ug:n {\hfill}
& \nju_cover_underline:nn {90pt}{\nju_mentor_a}
& \nju_cover_underline_ug:nn {90pt}{\nju_mentor_a}
& \nju_coverbox_ug:n {\hfill}
& \nju_cover_underline:nn {90pt}{\nju_mentor_a_title}\\
& \nju_cover_underline_ug:nn {90pt}{\nju_mentor_a_title}\\
% 第二导师
\bool_if:NTF \nju_second_mentor
{
\nju_coverbox_ug:n {\hfill\hfill\hfill}
& \nju_cover_underline:nn {90pt}{\nju_mentor_b}
& \nju_cover_underline_ug:nn {90pt}{\nju_mentor_b}
& \nju_coverbox_ug:n {\hfill}
& \nju_cover_underline:nn {90pt}{\nju_mentor_b_title}\\
& \nju_cover_underline_ug:nn {90pt}{\nju_mentor_b_title}\\
}
{}
\end{tabular}\\
\begin{tabular}{p{4.2em}c}
\nju_coverbox_ug:n {\hfill\hfill\hfill}
& \nju_cover_underline:nn {250pt}{\nju_submit_date}\\
& \nju_cover_underline_ug:nn {250pt}{\nju_submit_date}\\
\end{tabular}
}
% 封面信息栏 研究生
\tl_new:N \nju_printcoverinfo_m
\tl_set:Nn \nju_printcoverinfo_m {
\begin{tabular}{p{4.2em}c}
\tl_new:N \nju_printcoverinfo_g
\tl_set:Nn \nju_printcoverinfo_g {
\begin{tabular}{p{6em}c}
% 标题换行
\int_case:nn {\nju_titlelength}
{
{ 1 } {
\nju_coverbox_ug:n {\hfill\hfill\hfill}
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_a}} \\ }
\nju_coverbox_g:n {\hfill\hfill\hfill}
& \nju_cover_underline_g:n {\bf{\nju_title_a}} \\ }
{ 2 } {
\nju_coverbox_ug:n {\hfill\hfill\hfill}
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_a}} \\
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_b}} \\ }
\nju_coverbox_g:n {\hfill\hfill\hfill}
& \nju_cover_underline_g:n {\bf{\nju_title_a}} \\
& \nju_cover_underline_g:n {\bf{\nju_title_b}} \\ }
{ 3 } {
\nju_coverbox_ug:n {\hfill\hfill\hfill}
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_a}} \\
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_b}} \\
& \nju_cover_underline:nn {250pt}{\textbf{\songti\nju_title_c}} \\}
\nju_coverbox_g:n {\hfill\hfill\hfill}
& \nju_cover_underline_g:n {\bf{\nju_title_a}} \\
& \nju_cover_underline_g:n {\bf{\nju_title_b}} \\
& \nju_cover_underline_g:n {\bf{\nju_title_c}} \\}
}
\nju_coverbox_ug:n {\hfill\hfill\hfill}
& \nju_cover_underline:nn {250pt}{\nju_student_name}\\
\nju_coverbox_g:n {\hfill\hfill\hfill}
& \nju_cover_underline_g:n {\nju_student_name}\\
\nju_coverbox_ug:n {\hfill\hfill\hfill}
& \nju_cover_underline:nn {250pt}{\nju_major}\\
\nju_coverbox_ug:n {\hfill\hfill\hfill}
& \nju_cover_underline:nn {250pt}{\nju_field}\\
\nju_coverbox_ug:n {\hfill\hfill\hfill}
& \nju_cover_underline:nn {250pt}{\nju_mentor_a}\\
\nju_coverbox_g:n {\hfill\hfill\hfill}
& \nju_cover_underline_g:n {\nju_major}\\
\nju_coverbox_g:n {\hfill\hfill\hfill}
& \nju_cover_underline_g:n {\nju_field}\\
\nju_coverbox_g:n {\hfill\hfill\hfill}
& \nju_cover_underline_g:n {\nju_mentor_a\ \nju_mentor_a_title}\\
\end{tabular}
}
......@@ -141,7 +147,7 @@
\begin{center}
\includegraphics[height=3.35cm]{njuname}
\vskip 10mm
{\zihao{1}\makebox[9em][s]{\textbf{\songti\nju_type_name}}}
{\zihao{1}\makebox[9em][s]{\bf{\songti\nju_type_name}}}
\vfill
\vskip\stretch{0}
{\bgroup
......@@ -166,40 +172,45 @@
\pdfbookmark{封面}{封面} % 将封面插入pdf书签
\begin{spacing}{1.25}
\begin{center}
\vskip 10mm
\hspace{0pt} \vskip 5mm
\includegraphics[height=1.9cm]{njulogo}
\vskip 10mm
\includegraphics[height=1.9cm]{njuname-large}
\vskip 15mm
{\zihao{1}\makebox[10em][s]{\textbf{\kaishu\nju_type_name}}}
{\zihao{1}\makebox[10em][s]{\bf{\kaishu\nju_type_name}}}
\vskip 5mm
{\zihao{1}\textbf{\kaishu{(申请\nju_degree_title 学位)}}}
{\zihao{1}\bf{\kaishu{(申请\nju_degree_title 学位)}}}
\par\vfill
\vskip\stretch{0}
{\bgroup
\kaishu\zihao{3}
\bf\kaishu\zihao{3}
\def\tabcolsep{1pt}
\def\arraystretch{1.5}
\vskip 10mm
\nju_printcoverinfo_m % 绘制信息框
\nju_printcoverinfo_g % 绘制信息框
\egroup}
\vfill
\vskip 10mm
\nju_submit_date
\vfill
\bf\kaishu\zihao{4}\nju_submit_date
\vskip 5mm
\end{center}
\end{spacing}
\newpage % 封面背面
\thispagestyle{empty}
\begin{spacing}{1.25}
\begin{spacing}{1.625}
% TODO: 等待调整格式
\vskip 200mm
\textbf\kaishu 学号:\nju_student_id
\hspace{0pt} \vfill
{\bgroup
\bf\kaishu\zihao{3}
\makebox[6em][s]{\hfill}\nju_student_id
\par
论文答辩日期:\nju_defense_date
\makebox[6em][s]{论文答辩日期}\nju_defense_date
\par
指 导 教 师: \hspace{40mm}(签字)
\makebox[6em][s]{\hfill\hfill\hfill}\hspace{50mm}(签字)
\par
\egroup}
\vskip 15mm
\end{spacing}
\cleardoublepage
}
......
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