Skip to content

Commit

Permalink
fix: 修复研究生出版授权书的打勾机制 (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
atxy-blip committed Jun 6, 2023
1 parent b3d4c24 commit c78e5ee
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 15 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

## [未发布]

## [1.3.0] - 2023-06-06

### 新增

- 新增定理类环境共享计数器选项 `theorem/share-counter` - [#207]
Expand All @@ -18,6 +20,7 @@
- 修复禁用 `unicode-math` 时仍会配置数学字体的问题 - [#216]
- 修复非研究生类型时调用 `nl-cover` 选项的错误
- 将本科生封面信息恢复至 v1.1 的宋体格式
- 修复研究生出版授权书的打勾机制 - [#223]

### 杂项

Expand Down Expand Up @@ -494,11 +497,11 @@
- 模板上传至 CTAN


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

[1.3.0]: https://github.com/nju-lug/NJUThesis/compare/v1.2.1...v1.3.0
[1.2.1]: https://github.com/nju-lug/NJUThesis/compare/v1.2.0...v1.2.1
[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
[1.1.0]: https://github.com/nju-lug/NJUThesis/compare/v1.0.0...v1.1.0
Expand Down Expand Up @@ -573,6 +576,7 @@
[#208]: https://github.com/nju-lug/NJUThesis/issues/208
[#213]: https://github.com/nju-lug/NJUThesis/issues/213
[#216]: https://github.com/nju-lug/NJUThesis/issues/216
[#223]: https://github.com/nju-lug/NJUThesis/issues/223

[更新日志]: 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.2.1 2023-05-03
% njuthesis 示例模板 v1.3.0 2023-06-06
% https://github.com/nju-lug/NJUThesis
%
% 贡献者
Expand Down
5 changes: 4 additions & 1 deletion docs/njuthesis-setup.def
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% njuthesis 参数设置文件 v1.3.0 2023-05-07
% njuthesis 参数设置文件 v1.3.0 2023-06-06

% 一些提醒:
% 1. \njusetup 内部千万不要有空行
Expand Down Expand Up @@ -50,6 +50,9 @@
major* = {Chemistry},
% 专业
%
% major = {软件工程,软件工程},
% 专业型学位可以用第二个值覆盖封面上的默认补全版本
%
supervisor = {导师姓名,教授},
supervisor*= {Professor My Supervisor},
% 导师全称
Expand Down
35 changes: 24 additions & 11 deletions source/njuthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ To produce the documentation run the original source files ending with
%
%<class>\NeedsTeXFormat{LaTeX2e}
%<*!(driver|install)>
%<+!driver>\GetIdInfo $Id: njuthesis.dtx 1.3.0 2023-05-07 19:00:00
%<+!driver>\GetIdInfo $Id: njuthesis.dtx 1.3.0 2023-06-06 11:30:00
%<+!driver> +0800 NJU LUG <[email protected]>$
%<class> {Thesis template for Nanjing University}
%<class>\ProvidesExplClass{njuthesis}
Expand All @@ -131,7 +131,7 @@ To produce the documentation run the original source files ending with
%
%<*driver>
\ProvidesFile{njuthesis.dtx}
\PassOptionsToClass{codehigh}{njuthesis-doc}
\PassOptionsToClass{codehigh}{njuthesis-doc}
\documentclass{njuthesis-doc}
\begin{document}
\DocInput{njuthesis.dtx}
Expand All @@ -148,7 +148,7 @@ To produce the documentation run the original source files ending with
% \thanks{E-mail: \href{mailto:[email protected]}
% {[email protected]}}}
%
% \date{v1.3.0 \quad 2023-05-07}
% \date{v1.3.0 \quad 2023-06-06}
%
% \changes{v0.1}{2021/09/04}{开始开发。}
% \changes{v0.2}{2021/09/07}{初步搭建了可用的模板。}
Expand Down Expand Up @@ -7031,13 +7031,14 @@ To produce the documentation run the original source files ending with
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@@_degree_checkbox:Nn}
% \begin{macro}{\@@_degree_checkbox:nn}
% \changes{v1.3}{2023/06/04}{修复研究生出版授权书的打勾机制。}
% 信息栏的学位复选框。打勾符号对应 |U+2713|。
% \begin{macrocode}
\cs_new_protected:Npn \@@_degree_checkbox:Nn #1#2
\cs_new_protected:Npn \@@_degree_checkbox:nn #1#2
{
\bool_lazy_and:nnTF
{ \g_@@_opt_academic_bool && #1 }
{ #1 \g_@@_opt_academic_bool }
{ \int_compare_p:n { \g_@@_info_type_int = #2 } }
{
\makebox [ 0 pt ] [l] { \ensuremath { \mdwhtsquare } }
Expand Down Expand Up @@ -7068,10 +7069,10 @@ To produce the documentation run the original source files ending with
\tl_range:Nnn \g_@@_info_submitdate_tl {1} {4} \\
\c_@@_name_degreea_tl &
{
\@@_degree_checkbox:Nn \c_true_bool { 2 } 学术学位硕士 \qquad
\@@_degree_checkbox:Nn \c_false_bool { 2 } 专业学位硕士 \\
\@@_degree_checkbox:Nn \c_true_bool { 3 } 学术学位博士 \qquad
\@@_degree_checkbox:Nn \c_false_bool { 3 } 专业学位博士
\@@_degree_checkbox:nn { } { 2 } 学术学位硕士 \qquad
\@@_degree_checkbox:nn { ! } { 2 } 专业学位硕士 \\
\@@_degree_checkbox:nn { } { 3 } 学术学位博士 \qquad
\@@_degree_checkbox:nn { ! } { 3 } 专业学位博士
} \\
\c_@@_name_email_tl & \g_@@_info_email_tl \\
\c_@@_name_supvb_tl &
Expand Down Expand Up @@ -8453,15 +8454,27 @@ To produce the documentation run the original source files ending with
%<def-u> { cover label } { \kaishu },
%<def-g> { cover label } { \bfseries },
%<def-p> { cover label } { },
% \end{macrocode}
% 调用 \pkg{njuvisual} 时的校徽颜色。
% \begin{macrocode}
{ emblem color } { black },
{ name color } { black },
% \end{macrocode}
% 各级标题样式。
% \begin{macrocode}
{ section } { \bigger \normalfont \sffamily },
{ chapter } { \c_@@_fmt_section_tl \centering },
{ chapterintoc } { \c_@@_fmt_section_tl },
{ subsection } { \c_@@_fmt_section_tl },
{ subsubsection } { \c_@@_fmt_section_tl },
{ paragraph } { \c_@@_fmt_section_tl },
{ subparagraph } { \c_@@_fmt_section_tl },
% \end{macrocode}
% 目录中的章标题样式。
% \begin{macrocode}
{ chapterintoc } { \c_@@_fmt_section_tl },
% \end{macrocode}
% “目录”二字的样式。
% \begin{macrocode}
{ toc title } { \centering \zihao { 3 } \bfseries },
{ header } { \small \kaishu },
{ footer } { \small \rmfamily }
Expand Down

0 comments on commit c78e5ee

Please sign in to comment.