Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
atxy-blip committed May 1, 2023
1 parent ffc826f commit 884c27c
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 51 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@

## [未发布]

## [1.2.0] - 2023-05-01

### 新增

- 新增研究生中英文学位名称选项 `info/degree``info/degree*` - [#200]
- 跟进 2023 年研究生学位论文模板新设计 - [#204]
- 新增研究生中英文学位名称选项 `info/degree*` - [#200]
- 新增研究生英文摘要条目内容下划线选项 `abstract/underline` - [#202]

### 修复
Expand Down Expand Up @@ -457,7 +460,9 @@
- 模板上传至 CTAN


[未发布]: https://github.com/nju-lug/NJUThesis/compare/v1.1.2...HEAD
[未发布]: https://github.com/nju-lug/NJUThesis/compare/v1.2.0...HEAD

[1.2.0]: https://github.com/nju-lug/NJUThesis/compare/v1.1.2...v1.2.0

[1.1.2]: https://github.com/nju-lug/NJUThesis/compare/v1.1.1...v1.1.2
[1.1.1]: https://github.com/nju-lug/NJUThesis/compare/v1.1.0...v1.1.1
Expand Down Expand Up @@ -527,6 +532,7 @@
[#191]: https://github.com/nju-lug/NJUThesis/issues/191
[#200]: https://github.com/nju-lug/NJUThesis/discussions/200
[#202]: https://github.com/nju-lug/NJUThesis/discussions/202
[#204]: https://github.com/nju-lug/NJUThesis/issues/204

[更新日志]: https://keepachangelog.com/zh-CN/1.0.0/
[语义化版本]: https://semver.org/lang/zh-CN/
Expand Down
2 changes: 1 addition & 1 deletion docs/njuthesis-sample.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% njuthesis 示例模板 v1.1.2 2023-01-15
% njuthesis 示例模板 v1.2.0 2023-05-01
% https://github.com/nju-lug/NJUThesis
%
% 贡献者
Expand Down
51 changes: 26 additions & 25 deletions docs/njuthesis-setup.def
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% njuthesis 参数设置文件 v1.1.0 2022-10-23
% njuthesis 参数设置文件 v1.2.0 2023-05-01

% 一些提醒:
% 1. \njusetup 内部千万不要有空行
Expand Down Expand Up @@ -37,7 +37,7 @@
grade = {2018},
% 年级
%
student-id = {189114514},
student-id = {181850195},
% 学号或工号
% 研究生请斟酌大小写字母格式
% 本模板并不会自动更正大小写
Expand Down Expand Up @@ -67,14 +67,35 @@
%
%
% 以下均为研究生项
% degree = {摸鱼},
% degree* = {Master of Cyberloafing},
% 手动覆盖默认的中英文学位名称
%
% degree* = {Master of Engineering}
% 覆盖英文封面的默认学位名称
%
field = {物理化学},
field* = {Physical Chemistry},
% 研究领域
%
chairman = {某某某~教授},
% 答辩委员会主席
% 推荐使用波浪号(~)分隔姓名和职称
%
reviewer = {
某某某~教授,
某某某~教授
},
%
% 答辩委员会成员
% 一般为四名,使用英文半角逗号(,)分隔
%
clc = {O643.12},
% 中国图书分类号
%
udc = {544.4},
% 国际图书分类号
%
secret-level = {不涉密},
% 密级
%
defend-date = {2021-09-19},
% 答辩日期
% 格式为 yyyy-mm-dd
Expand All @@ -92,26 +113,6 @@
bottom-date = {2022-05-21},
% 封面底部日期
%
chairman = {某某某~教授},
% 答辩委员会主席
% 推荐使用波浪号(~)分隔姓名和职称
%
reviewer = {
某某某~教授,
某某某~教授
},
% 答辩委员会成员
% 一般为四名,使用英文半角逗号(,)分隔
%
clc = {0175.2},
% 中图分类号
%
secret-level = {限制},
% 密级
%
udc = {004.72},
% UDC分类号
%
supervisor-contact = {
南京大学~
江苏省南京市栖霞区仙林大道163号
Expand Down
53 changes: 30 additions & 23 deletions source/njuthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ To produce the documentation run the original source files ending with
%
%<class>\NeedsTeXFormat{LaTeX2e}
%<*!(driver|install)>
%<+!driver>\GetIdInfo $Id: njuthesis.dtx 1.2.0 2023-04-27 00:00:00
%<+!driver>\GetIdInfo $Id: njuthesis.dtx 1.2.0 2023-05-01 14:00:00
%<+!driver> +0800 NJU LUG <git+nju-lug-email-3104-issue-@yaoge123.cn>$
%<class> {Thesis template for Nanjing University}
%<class>\ProvidesExplClass{njuthesis}
Expand Down Expand Up @@ -380,7 +380,7 @@ To produce the documentation run the original source files ending with
% \thanks{E-mail: \href{mailto:git+nju-lug-email-3104-issue-@yaoge123.cn}
% {git+nju-lug-email-3104-issue-@yaoge123.cn}}}
%
% \date{v1.2.0 \quad 2023-04-27}
% \date{v1.2.0 \quad 2023-05-01}
%
% \maketitle
%
Expand Down Expand Up @@ -431,7 +431,7 @@ To produce the documentation run the original source files ending with
%
% 本模板使用的本科生毕业论文模板格式依据
% 《关于启动南京大学2023届本科毕业论文(设计)工作的通知》\cite{nju-bachelor-2023},
% 研究生学位论文格式依据研究生院提供的材料包\cite{nju-master-2022,nju-doctor-2022}。
% 研究生学位论文格式依据研究生院提供的材料包\cite{nju-graduate-2023}。
% 博士后出站报告格式要求与博士学位论文一致\cite{nju-postdoc-2022},
% 封面、摘要的设计参考了部分既有报告。
%
Expand Down Expand Up @@ -1462,8 +1462,6 @@ To produce the documentation run the original source files ending with
% \begin{syntax}
% \OPT{clc} = \Arg{中国图书分类号}
% \OPT{udc} = \Arg{国际图书分类号}
% \OPT{secret-level} = <不涉密|秘密|机密|绝密>
% \OPT{supervisor-contact} = \Arg{导师联系方式}
% \end{syntax}
% 研究生学位论文封面上的\href{http://www.ztflh.com/}{中国图书分类号}和\ignorespaces
% \href{http://www.udcsummary.info/php/index.php?lang=chi&pr=Y}{国际图书分类号}。
Expand Down Expand Up @@ -2576,17 +2574,11 @@ To produce the documentation run the original source files ending with
% \newblock (2022-12-19)
% \urlprefix\url{https://jw.nju.edu.cn/29/d8/c26263a600536/page.htm}
%
% \bibitem{nju-master-2022}
% \bibitem{nju-graduate-2023}
% 南京大学研究生院.
% \newblock \textit{硕士研究生申请学位材料下载} [EB/OL].
% \newblock (2022-04-26)
% \urlprefix\url{https://grawww.nju.edu.cn/1077/list.htm}
%
% \bibitem{nju-doctor-2022}
% 南京大学研究生院.
% \newblock \textit{博士研究生申请学位材料下载} [EB/OL].
% \newblock (2022-04-26)
% \urlprefix\url{https://grawww.nju.edu.cn/1076/list.htm}
% \newblock \textit{关于开展六月份学位申请、审核工作的通知} [EB/OL].
% \newblock (2023-04-26)
% \urlprefix\url{https://grawww.nju.edu.cn/63/a9/c905a615337/page.htm}
%
% \bibitem{nju-postdoc-2022}
% 南京大学人力资源处.
Expand Down Expand Up @@ -4666,12 +4658,24 @@ To produce the documentation run the original source files ending with
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{info/clc,info/secret-level,info/udc,info/supervisor-contact}
% 国家图书馆封面相关信息
% \begin{macro}{info/clc,info/udc}
% 分类号
% \begin{macrocode}
clc .tl_set:N = \g_@@_info_clc_tl ,
secret-level .tl_set:N = \g_@@_info_secretlv_tl ,
udc .tl_set:N = \g_@@_info_udc_tl ,
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{info/secret-level}
% 密级。
% \begin{macrocode}
secret-level .tl_set:N = \g_@@_info_secretlv_tl ,
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{info/supervisor-contact}
% 导师联系方式。
% \begin{macrocode}
supervisor-contact .tl_set:N = \g_@@_info_supvcont_tl ,
% \end{macrocode}
% \end{macro}
Expand All @@ -4685,8 +4689,8 @@ To produce the documentation run the original source files ending with
% \end{macro}
%
% \begin{macro}{info/school-code}
% \changes{v1.2}{2022/04/29}{新增学校代码设置项。}
% 答辩日期
% \changes{v1.2}{2023/04/27}{新增学校代码设置项。}
% 学校代码
% \begin{macrocode}
school-code .tl_set:N = \g_@@_info_code_tl ,
school-code .initial:n = { 10284 } ,
Expand Down Expand Up @@ -5094,7 +5098,10 @@ To produce the documentation run the original source files ending with
\cs_new_protected:Npn \@@_loadfont_stzhongs:
{
\fontspec_font_if_exist:nTF { 华文中宋 }
{ \newCJKfontfamily \@@_stzhongs: { 华文中宋 } }
{
\newCJKfontfamily \@@_stzhongs: { 华文中宋 }
[ \c_@@_name_fakebold_tl ]
}
{
\cs_set_eq:NN \@@_stzhongs: \rmfamily
\msg_warning:nn { njuthesis } { missing-stzhongs }
Expand Down Expand Up @@ -6617,7 +6624,7 @@ To produce the documentation run the original source files ending with
%
% \paragraph{研究生}
% \changes{v1.0}{2022/06/30}{调整研究生封面布局。}
% \changes{v1.2}{2023/05/01}{调整研究生封面布局。}
% \changes{v1.2}{2023/05/01}{更新2023年新版研究生学位论文封面布局。}
%
% \subparagraph{正面} 包括校名、校徽、标题、信息栏。
%
Expand Down Expand Up @@ -8117,7 +8124,7 @@ To produce the documentation run the original source files ending with
% \begin{macro}{\njupaperlist}
% \changes{v0.10}{2021/09/29}{新增了成果列表页面。}
% \changes{v0.14}{2021/12/20}{成果列表中可突出指定作者姓名及年份。}
% \changes{v0.19}{2022/05/22}{修复成果列表与章末参考文献表的冲突。}
% \changes{v1.2}{2023/04/07}{修复成果列表与章末参考文献表的冲突。}
% 成果列表。
% \begin{macrocode}
\NewDocumentCommand \njupaperlist
Expand Down

0 comments on commit 884c27c

Please sign in to comment.