Skip to content
Snippets Groups Projects
njuthesis.dtx 106 KiB
Newer Older
  \egroup\par
Yu Xiong's avatar
Yu Xiong committed
%    \end{macrocode}
Yu Xiong's avatar
Yu Xiong committed
% \end{macro}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \begin{macro}{\@@_print_abstract_g:,\@@_print_abstract_en_g:}
% 输出研究生摘要格式。
Yu Xiong's avatar
Yu Xiong committed
%    \begin{macrocode}
\cs_new_protected:Npn \@@_print_abstract_g:
  \begin{center}
    \kaishu\zihao{-2}{\textbf{\uuline{
      南京大学研究生毕业论文中文摘要首页用纸}}}
  \end{center}
  \bgroup
    \noindent\kaishu\zihao{4}
    毕业论文题目:\hspace{0.5em}\njuline{\l_@@_info_title_tl\hfill}\\
    \njuline{\makebox[11em]{\l_@@_major_tl}}专业
    \njuline{\makebox[4em]{\l_@@_info_grade_tl}}级
    \int_compare:nTF { \g_@@_info_degree_int == 4} { 博 } { 硕 }
    士生姓名:\njuline{\hfill\l_@@_info_author_tl\hfill}\\
    指导教师(姓名、职称):\njuline{\hfill\l_@@_info_supv_full_tl\hfill}
  \egroup\par
}
\cs_new_protected:Npn \@@_print_abstract_en_g:
{
  \begin{center}
Yu Xiong's avatar
Yu Xiong committed
      \kaishu\zihao{-2}{\textbf{\uuline{
        南京大学研究生毕业论文英文摘要首页用纸}}}
  \end{center}
    \zihao{4}
    THESIS: ~~\l_@@_info_title_en_tl \\
    SPECIALIZATION: ~~\l_@@_major_en_tl \\
    POSTGRADUATE:~~\l_@@_info_author_en_tl \\
    MENTOR:~~\l_@@_info_supv_full_en_tl
  \egroup\par
}
%    \end{macrocode}
Yu Xiong's avatar
Yu Xiong committed
% \end{macro}
Yu Xiong's avatar
Yu Xiong committed
% \begin{macro}{abstract}
% 中文摘要环境。
%    \begin{macrocode}
Yu Xiong's avatar
Yu Xiong committed
\NewDocumentEnvironment{abstract} { +b }
  { \newpage \use:c { @@_print_abstract_ \g_@@_info_diploma_tl : } 
    \group_begin: \kaishu \zihao{-4} #1 }
  { \@@_print_keywords: \group_end: }
Yu Xiong's avatar
Yu Xiong committed
%    \end{macrocode}
% \end{macro}
% 
% \begin{macro}{abstract*}
% 英文摘要环境。\pkg{xparse} 目前不支持合并带有星号的环境,因此需要单独定义。
%    \begin{macrocode}
\NewDocumentEnvironment{abstract*} { +b }
  { \newpage \use:c { @@_print_abstract_en_ \g_@@_info_diploma_tl : } 
    \group_begin: \zihao{-4} #1 }
  { \@@_print_keywords_en: \group_end: }
Yu Xiong's avatar
Yu Xiong committed
%</class>
%    \end{macrocode}
Yu Xiong's avatar
Yu Xiong committed
% \end{macro}