<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-9-4}{0.1}{Some things I wrote} 

% 封面下划线
\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_oneline_title
\tl_set:Nn \cover_oneline_title {
  \begin{tabular}{p{4.2em}c}
    \coverbox:n {院系}
    &amp; \cover_underline:nn {250pt}{\songti\Department}\\
    \coverbox:n {专业}
    &amp; \cover_underline:nn {250pt}{\songti\Major}\\

    \coverbox:n {题目}
    &amp; \cover_underline:nn {250pt}{\textbf{\songti\TitleOne}} \\

    \int_compare:nNnTF { \TitleLength } = { 2 }  { 
      \coverbox:n {}
      &amp; \cover_underline:nn {250pt}{\textbf{\songti\TitleTwo}} \\
    }{}
    
    \int_compare:nNnTF { \TitleLength } = { 3 }  { 
      \coverbox:n {}
      &amp; \cover_underline:nn {250pt}{\textbf{\songti\TitleTwo}} \\
      \coverbox:n {}
      &amp; \cover_underline:nn {250pt}{\textbf{\songti\TitleThree}} \\
    }{}
  \end{tabular} \\

  \begin{tabular}{p{4.2em}cp{4.2em}c}
    \coverbox:n {年级}
    &amp; \cover_underline:nn {90pt}{\Grade}
    &amp; \coverbox:n {学号}
    &amp; \cover_underline:nn {90pt}{\songti\StudentID}\\
  \end{tabular}\\
  \begin{tabular}{p{4.2em}c}
    \coverbox:n {学生姓名}
    &amp; \cover_underline:nn {250pt}{\StudentName}
  \end{tabular}\\
  \begin{tabular}{p{4.2em}cp{4.2em}c}
    \coverbox:n {导师}
    &amp; \cover_underline:nn {90pt}{\Mentor}
    &amp; \coverbox:n {职称}
    &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 {提交日期}
    &amp; \cover_underline:nn {250pt}{\SubmitDate}\\
  \end{tabular}
}

% 重定义maketitle生成封面
\RenewDocumentCommand \maketitle {} {%
  \thispagestyle{empty}
  \pagenumbering{Roman}
  % Start 
  \begin{spacing}{1.25}
  \vskip 0mm  
  \hskip -10mm \includegraphics[width=2.55cm]{njulogo}\\
  \begin{center}
    \includegraphics[height=3.35cm]{njuname}\\
    \vskip 10mm
    {\zihao{1}\makebox[9em][s]{\textbf{\songti\typename}}}\\
    % 三行标题 + 第二导师可能会导致溢出
    % 数字可以再调
    % \ifnjut@title@threelinetitle
    %   \ifnjut@title@twosupervisors
    %     \vskip 18mm
    %   \else
    %     \vskip 22mm
    %   \fi
    % \else
      \vskip 26mm
    % \fi
    \vskip\stretch{0}
    {\bgroup
    \kaishu\zihao{3}
    \def\tabcolsep{1pt}
    \def\arraystretch{1.5}
    % \ifnjut@title@twolinetitle
    %   \njut@covertable@twolinetitle
    % \else
    %   \ifnjut@title@threelinetitle
        % \njut@covertable@threelinetitle
    %   \else
          \cover_oneline_title
    %   \fi
    % \fi
    \egroup}\\
    \vskip 8mm
  \end{center}
  \end{spacing}
  \cleardoublepage
  % \newpage
}</pre></body></html>