Skip to content

Commit

Permalink
fix: 修复了英文封面没有第二导师的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
atxy-blip committed Sep 28, 2021
1 parent 77967a7 commit ec3b69b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 16 deletions.
10 changes: 5 additions & 5 deletions njuthesis-sample.tex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[
% degree=phd,% 默认本科(ug), mg: 学硕, mf: 专硕, phd: 博士
degree=phd,% 默认本科(ug), mg: 学硕, mf: 专硕, phd: 博士
% type=design,% 默认毕业论文(thesis),design: 毕业设计
nlcover,% 需要国家图书馆封面,对本科无效
% 若以下两项不设置则自动调用系统预装字体
Expand Down Expand Up @@ -55,10 +55,10 @@
SupervisorATitle = 教授,
SupervisorATitle* = Professor,
% 第二导师,如无则留空
% SupervisorB = 孙赫弥,
% SupervisorB* = Sun~Hemi,
% SupervisorBTitle = 副教授,
% SupervisorBTitle* = Associate~professor,
SupervisorB = 孙赫弥,
SupervisorB* = Sun~Hemi,
SupervisorBTitle = 副教授,
SupervisorBTitle* = Associate~professor,
% 提交日期
SubmitDate = 2021年8月10日,
SubmitDate* = {Aug 10, 2021}, % 研究生项
Expand Down
36 changes: 26 additions & 10 deletions njuthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ through XeTeX.
\ProvidesFile{njuthesis.dtx}
\documentclass{ctxdoc}
\usepackage{listings,xcolor,tabularray}
\setlist[1]{labelindent=0.5em}
\UseTblrLibrary{booktabs,siunitx,diagbox}
\DefTblrTemplate{caption-tag}{default}{表\hspace{0.25em}\thetable}
\SetTblrStyle{caption-tag}{font=\bfseries}
Expand Down Expand Up @@ -900,12 +901,13 @@ through XeTeX.
%
% \end{function}
%
% \begin{function}{\href}
% \begin{function}{\href,\url}
% \begin{syntax}
% \tn{href}\Arg{链接}\Arg{名称}
% \tn{url}\Arg{链接}
% \end{syntax}
%
% 超链接。
% 超链接。\tn{href}会将特定字符显示为可点击的超链接,\tn{url}会输出可点击的链接原文。
%
% \end{function}
%
Expand All @@ -918,7 +920,7 @@ through XeTeX.
%
% \begin{function}{\maketitle}
%
% 用于生成封面
% 用于生成封面
% 本科生仅会生成中文封面;研究生会生成中英文封面。
% 如果选择了\opt{nlcover},也会生成研究生的国家图书馆封面。
%
Expand Down Expand Up @@ -1042,6 +1044,17 @@ through XeTeX.
%
% \subsection{视觉识别系统}
%
% \begin{function}[added=2021-09-24]{njuviolet,njumagenta,njublue,njuyellow}
% \begin{syntax}
% \tn{color}\Arg{颜色}
% \end{syntax}
% 定义并使用南京大学视觉形象规范化标准中给定的四种标准色:
%
% {\color{njuviolet}紫色}\hspace{1em}{\color{njumagenta}洋红}\hspace{1em}
% {\color{njublue}蓝色}\hspace{1em}{\color{njuyellow}黄色}
%
% \end{function}
%
% \begin{function}[added=2021-09-24]{\njuemblem}
% \begin{syntax}
% \tn{njuemblem}\oarg{颜色}\Arg{宽度}\Arg{高度}
Expand Down Expand Up @@ -2149,10 +2162,10 @@ through XeTeX.
}
\tl_set:Nn \l_@@_info_supv_full_en_tl
{
\l_@@_info_supv_a_en_tl\
\l_@@_info_supv_a_title_en_tl\ \
\l_@@_info_supv_b_en_tl\
\l_@@_info_supv_b_title_en_tl
\l_@@_info_supv_a_title_en_tl\
\l_@@_info_supv_a_en_tl\ \
\l_@@_info_supv_b_title_en_tl\
\l_@@_info_supv_b_en_tl
}
% \end{macrocode}
%
Expand Down Expand Up @@ -2554,7 +2567,7 @@ through XeTeX.
\thispagestyle{empty}
\pdfbookmark{英文封面}{cover-en} % 将封面插入pdf书签
\begin{center}
\vspace*{20pt}
\noindent\vspace*{20pt}
\bf\sffamily\zihao{2}\l_@@_info_title_en_tl
\vskip \stretch{1}
\normalfont\rmfamily\zihao{4}{by}
Expand All @@ -2563,8 +2576,11 @@ through XeTeX.
\vskip\stretch{1}
\normalfont\rmfamily\zihao{4}{Supervised~by}
\vskip 3pt
\normalfont\sffamily\zihao{4}\l_@@_info_supv_a_title_en_tl
\hspace{.5em}\l_@@_info_supv_a_en_tl
\normalfont\sffamily\zihao{4}
\l_@@_info_supv_a_title_en_tl
\hspace{.5em}\l_@@_info_supv_a_en_tl\\
\l_@@_info_supv_b_title_en_tl
\hspace{.5em}\l_@@_info_supv_b_en_tl
\vskip\stretch{1}
\normalsize\rmfamily{%
A~dissertation~submitted~to\\
Expand Down
2 changes: 1 addition & 1 deletion njuvisual.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
%
% \begin{implementation}
%
% \subsection{视觉识别系统\pkg{njuvisual}}
% \subsection{视觉识别系统 \pkg{njuvisual}}
% \changes{v0.10}{2021/09/24}{添加南京大学视觉识别系统。}
%
% 南京大学视觉形象规范化标准(\pkg{njuvisual})宏包是 \pkg{njuthesis} 文档类的子宏包,负责实现
Expand Down

0 comments on commit ec3b69b

Please sign in to comment.