<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\ProvidesExplPackage{profile/cover}{2021-09-04}{0.1}{NJU Thesis Undergraduate cover design} 

% 封面下划线
\cs_new:Npn \cover_underline:nn #1 #2 {
  \uline{\makebox[#1]{#2}}
}

% 封面表格边框
\cs_new:Npn \coverbox:n #1 {
  \makebox[4.2em][s]{#1}
}

% 封面信息栏
\tl_new:N \cover_personalinfo
\tl_set:Nn \cover_personalinfo {
  \begin{tabular}{p{4.2em}c}
    \coverbox:n {院\hfill 系}
    &amp; \cover_underline:nn {250pt}{\songti\Department}\\
    \coverbox:n {专\hfill 业}
    &amp; \cover_underline:nn {250pt}{\songti\Major}\\

    \int_case:nn {\TitleLength}
      {
        { 1 } { 
          \coverbox:n {题\hfill 目}
          &amp; \cover_underline:nn {250pt}{\textbf{\songti\TitleA}} \\ }
        { 2 } {
          \coverbox:n {题\hfill 目}
          &amp; \cover_underline:nn {250pt}{\textbf{\songti\TitleA}} \\
          &amp; \cover_underline:nn {250pt}{\textbf{\songti\TitleB}} \\ }
        { 3 } { 
          \coverbox:n {题\hfill 目}
          &amp; \cover_underline:nn {250pt}{\textbf{\songti\TitleA}} \\
          &amp; \cover_underline:nn {250pt}{\textbf{\songti\TitleB}} \\
          &amp; \cover_underline:nn {250pt}{\textbf{\songti\TitleC}} \\}
      }
  \end{tabular}\\

  \begin{tabular}{p{4.2em}cp{4.2em}c}
    \coverbox:n {年\hfill 级}
    &amp; \cover_underline:nn {90pt}{\Grade}
    &amp; \coverbox:n {学\hfill 号}
    &amp; \cover_underline:nn {90pt}{\songti\StudentID}\\
  \end{tabular}\\
  
  \begin{tabular}{p{4.2em}c}
    \coverbox:n {学\hfill 生\hfill 姓\hfill 名}
    &amp; \cover_underline:nn {250pt}{\StudentName}
  \end{tabular}\\
  \begin{tabular}{p{4.2em}cp{4.2em}c}
    \coverbox:n {导\hfill 师}
    &amp; \cover_underline:nn {90pt}{\Mentor}
    &amp; \coverbox:n {职\hfill 称}
    &amp; \cover_underline:nn {90pt}{\MentorTitle}\\
  \end{tabular}\\
%   % 第二导师
%   \ifnjut@title@twosupervisors
%     \begin{tabular}{p{4.2em}cp{4.2em}c}
%       \coverbox:n {\njut@cap@cover@secondsupervisor}
%       &amp; \njutunderline[90pt]{\songti\njut@value@secondsupervisor}
%       &amp; \coverbox:n {\njut@cap@cover@secondsupervisortitle}
%       &amp; \njutunderline[90pt]{\songti\njut@value@secondsupervisortitle}\\
%     \end{tabular}
%   \fi
  \begin{tabular}{p{4.2em}c}
    \coverbox:n {提\hfill 交\hfill 日\hfill 期}
    &amp; \cover_underline:nn {250pt}{\SubmitDate}\\
  \end{tabular}
}

% 判断类型
\str_if_eq:eeTF {\Degree} {UG}
{\tl_const:Nn \Degreename {本\hfill 科\hfill }}{}

\str_if_eq:eeTF {\Type} {thesis} 
{\tl_const:Nn \typename {\Degreename 毕\hfill 业\hfill 论\hfill 文}}
{\tl_const:Nn \typename {\Degreename 毕\hfill 业\hfill 设\hfill 计}}

% 重定义maketitle生成封面
\RenewDocumentCommand \maketitle {} {%
  \thispagestyle{empty}
  \pagenumbering{Roman}
  % Start 
  \begin{spacing}{1.25}
  \vskip 0mm
  \hspace{-10mm}
  \includegraphics[height=3cm]{njulogo}\smallskip 
  \begin{center}
    \includegraphics[height=3.35cm]{njuname}
    \vskip 10mm 
    {\zihao{1}\makebox[9em][s]{\textbf{\songti\typename}}}
    \vfill
    \vskip\stretch{0}
    {\bgroup
    \kaishu\zihao{3}
    \def\tabcolsep{1pt}
    \def\arraystretch{1.5}
    \cover_personalinfo % 绘制信息框
    \egroup}
    \vfill
  \end{center}
  \end{spacing}
  \cleardoublepage
  \vfill
  % \newpage
}
</pre></body></html>