Skip to content
Snippets Groups Projects
njuthesis.dtx 64 KiB
Newer Older
  \newpage
  }

  % 英文关键词
  \NewDocumentCommand \englishkeywords {m} {%
    \par\vspace{2ex}\noindent%
    {KEYWORDS{:}}~~{#1}%
  }
}
Yu Xiong's avatar
Yu Xiong committed
%    \end{macrocode}
%
% Put text here.
%    \begin{macrocode}
{ 
  % 研究生摘要环境
  \NewDocumentEnvironment{abstract} {}
  {%
    \pagestyle{plain}
    \pagenumbering{Roman}
    % \phantomsection\addcontentsline{toc}{chapter}{中文摘要} % 将摘要插入目录和pdf书签
    \pdfbookmark[0]{中文摘要}{中文摘要} % 将摘要插入pdf书签,与上一行不可共存
    \begin{center}
Yu Xiong's avatar
Yu Xiong committed
      \kaishu\zihao{-2}{\textbf{\uuline{
        南京大学研究生毕业论文中文摘要首页用纸}}}
    \end{center}
    
    \bgroup
    \kaishu\zihao{4}
    \tl_set:Nn \tabcolsep {0pt}
    \tl_set:Nn \arraystretch {0.8}
    \noindent
    毕业论文题目:\hspace{0.5em}\nju_underline:n {\l_@@_info_title_tl\hfill}\\    
    \uline{\makebox[9em]{\l_@@_major_tl}}专业\uline{\makebox[4em]{\l_@@_info_grade_tl}}级
    \str_if_eq:NNTF {\nju_degree} { phd } {博}{硕}
    士生姓名:\uline{\hfill\l_@@_info_author_tl\hfill} \\
    指导教师(姓名、职称):\uline{\hfill\nju_supervisor_full\hfill}\par
    \egroup
  
    \kaishu\zihao{4}\par%
  }{%
  \newpage
  }
  
  % 中文关键词
  \NewDocumentCommand \keywords {m} {%
    \par\vspace{2ex}\noindent%
    {\kaishu\zihao{4}\makebox[4em][s]{关键词{:}}}~{#1}%
  }
  
  % 英文摘要
  \NewDocumentEnvironment{englishabstract} {}
  {%
    \pagestyle{plain}
    % \phantomsection\addcontentsline{toc}{chapter}{英文摘要} % 将摘要插入目录和pdf书签
    \pdfbookmark[0]{英文摘要}{英文摘要} % 将摘要插入pdf书签,与上一行不可共存
    \begin{center}
Yu Xiong's avatar
Yu Xiong committed
        \kaishu\zihao{-2}{\textbf{\uuline{
          南京大学研究生毕业论文英文摘要首页用纸}}}
    \end{center}
    {
      \bgroup
      \zihao{4}
      THESIS: ~~\l_@@_info_title_en_tl, \\
      SPECIALIZATION: ~~\l_@@_major_en_tl \\
      POSTGRADUATE:~~\l_@@_info_author_en_tl \\
      MENTOR:~~\nju_supervisor_full_en\par
      \egroup
    }
    \zihao{4}\par%
  }{%
  \cleardoublepage
  \newpage
  }
  
  % 英文关键词
  \NewDocumentCommand \englishkeywords {m} {%
    \par\vspace{2ex}\noindent%
    {KEYWORDS{:}}~~{#1}%
  }
}
Yu Xiong's avatar
Yu Xiong committed
%</class>
%    \end{macrocode}
%