Skip to content

Commit

Permalink
Merge branch 'Feature/bachelor-y2021'
Browse files Browse the repository at this point in the history
  • Loading branch information
yzwduck committed May 17, 2021
2 parents 7d0e6ed + 546f35e commit 9bf6a75
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions demo_chs/global.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
major = {\LaTeX{} 科学与技术},
studentid = {131810299},
classid = {应用技术}, % 班级的名称
industrialadvisers = {Jack Ma}, % 企业导师,若无请删除或注释本行
% 硕/博士
majorsubject = {\LaTeX},
researchfield = {\LaTeX 排版},
Expand Down
1 change: 1 addition & 0 deletions demo_en/global.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
major = {\LaTeX{} 科学与技术},
studentid = {131810299},
classid = {1318001},
industrialadvisers = {Jack Ma}, % delete or comment out this line if not applicable
% master/doctor only
majorsubject = {编程与艺术},
researchfield = {轮子制造},
Expand Down
1 change: 1 addition & 0 deletions demo_ja/global.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
major = {\LaTeX{} 科学与技术},
studentid = {131810299},
classid = {1318001},
industrialadvisers = {Jack Ma}, % 企业导师,若无请删除或注释本行
% master/doctor only
majorsubject = {编程与艺术},
researchfield = {轮子制造},
Expand Down
13 changes: 11 additions & 2 deletions nuaathesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ and the derived files nuaathesis.ins,
\fi
%</internal>
%<*driver>
\ProvidesFile{nuaathesis.drv}[2020/05/24 v2.2 NUAA thesis template]
\ProvidesFile{nuaathesis.drv}[2021/05/16 v2.3 NUAA thesis template]
\documentclass{ltxdoc}
\usepackage{dtx-style}
\EnableCrossrefs
Expand Down Expand Up @@ -139,6 +139,7 @@ and the derived files nuaathesis.ins,
% \end{multicols}
% \clearpage
%
% \changes{v2.3}{2021/05/16}{根据 2021 年本科模板更新封面。}
% \changes{v2.2}{2020/05/24}{同步学校的新本科模板。}
% \changes{v2.1}{2018/11/01}{初步实现英文、日文论文格式,基本去除对 \CTeX{} 的依赖。}
% \changes{v2.0}{2017/9/17}{仿照 \cquthesis{},使用 \textsc{DocStrip},使用根据校 Word 模板直接计算出的行间距等距离,添加硕/博士模板,重写大部分代码。}
Expand Down Expand Up @@ -340,6 +341,8 @@ and the derived files nuaathesis.ins,
%
% \DescribeOption{classid=} 班号;
%
% \DescribeOption{industrialadvisers=} 企业导师;
%
% \textbf{硕/博士}还支持以下参数:
%
% \DescribeOption{libraryclassid=} 中图分类号,如果需要指定多个,请手动添加合适的分隔符,
Expand Down Expand Up @@ -618,7 +621,7 @@ and the derived files nuaathesis.ins,
%<cls>\NeedsTeXFormat{LaTeX2e}
%<cls>\ProvidesClass{nuaathesis}
%<cfg>\ProvidesFile{nuaathesis.cfg}
%<cls|cfg>[2020/05/24 v2.2 NUAA Thesis Template]
%<cls|cfg>[2021/05/16 v2.3 NUAA Thesis Template]
% \end{macrocode}
% \subsection{配置文件}
% \changes{v2.1}{2018/06/01}{修改了配置文件作用,不再存放常量,加载顺序改为开头,默认内容为空。}
Expand Down Expand Up @@ -653,6 +656,7 @@ and the derived files nuaathesis.ins,
\newcommand\nuaa@label@major{专\hfill 业}
\newcommand\nuaa@label@classid{班\hfill 级}
\newcommand\nuaa@label@adviser{指\hfill\hfill\hfill 师}
\newcommand\nuaa@label@industrialadviser{企\hfill\hfill\hfill 师}
\newcommand\nuaa@label@researchername{研究生姓名}
\newcommand\nuaa@label@majorsubject{学科、专业}
\newcommand\nuaa@label@researchfield{研\hfill\hfill\hfill 向}
Expand Down Expand Up @@ -866,15 +870,18 @@ and the derived files nuaathesis.ins,
%
% 文档的中文信息
% \changes{v2.1}{2018/06/01}{修正 typo: advisor->adviser}
% \changes{v2.3}{2021/05/16}{添加企业导师 industrialadvisers}
% \begin{macrocode}
\nuaa@define{value@title}
\nuaa@define{value@author}
\nuaa@define{value@college}
\nuaa@define{value@applydate}
\ifnuaa@bachelor
\nuaa@define@list{value@advisers}{、}
\nuaa@define@list{value@industrialadvisers}{、}
\else
\nuaa@define@list{value@advisers}{\linebreak}
\nuaa@define@list{value@industrialadvisers}{、}
\fi
\nuaa@define{value@major}
\nuaa@define{value@studentid}
Expand Down Expand Up @@ -2030,6 +2037,8 @@ and the derived files nuaathesis.ins,
\nuaa@label@major & \nuaa@value@major \\ \cline{2-2}
\nuaa@label@classid & \makebox[2.59in]{\nuaa@value@classid} \\ \cline{2-2}
\nuaa@label@adviser & \nuaa@value@advisers \\ \cline{2-2}
\ifdefempty{\nuaa@value@industrialadvisers}{}{%
\nuaa@label@industrialadviser & \nuaa@value@industrialadvisers \\ \cline{2-2}}
\end{tabular}
\vspace{31.748bp}

Expand Down

0 comments on commit 9bf6a75

Please sign in to comment.