Skip to content
Snippets Groups Projects
Commit 563f9c2a authored by Yu Xiong's avatar Yu Xiong :confounded:
Browse files

fix: 修复出版授权书没有空页的问题

- 增加4、5级标题的样式设置
parent ea5c5820
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,11 @@ ...@@ -6,6 +6,11 @@
## [未发布] ## [未发布]
## 修复
- 正确生成出版授权书后的空白页
- 设置4、5级标题的样式
## [0.17.0] - 2022-04-09 ## [0.17.0] - 2022-04-09
### 新增 ### 新增
......
...@@ -111,7 +111,7 @@ To produce the documentation run the original source files ending with ...@@ -111,7 +111,7 @@ To produce the documentation run the original source files ending with
% %
%<class>\NeedsTeXFormat{LaTeX2e} %<class>\NeedsTeXFormat{LaTeX2e}
%<*!(driver|install)> %<*!(driver|install)>
%<+!driver>\GetIdInfo $Id: njuthesis.dtx 0.17.0 2022-04-09 16:30:00 +0800 NJU LUG <git+nju-lug-email-3104-issue-@yaoge123.cn>$ %<+!driver>\GetIdInfo $Id: njuthesis.dtx 0.17.1 2022-04-10 00:00:00 +0800 NJU LUG <git+nju-lug-email-3104-issue-@yaoge123.cn>$
%<class> {Thesis template for Nanjing University} %<class> {Thesis template for Nanjing University}
%<class>\ProvidesExplClass{njuthesis} %<class>\ProvidesExplClass{njuthesis}
%<definition-ug> {Undergraduate definition file for njuthesis} %<definition-ug> {Undergraduate definition file for njuthesis}
...@@ -200,7 +200,7 @@ To produce the documentation run the original source files ending with ...@@ -200,7 +200,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} % \thanks{E-mail: \href{mailto:git+nju-lug-email-3104-issue-@yaoge123.cn}
% {git+nju-lug-email-3104-issue-@yaoge123.cn}}} % {git+nju-lug-email-3104-issue-@yaoge123.cn}}}
% %
% \date{v0.17.0 \quad 2022-04-09} % \date{v0.17.1 \quad 2022-04-10}
% %
% \changes{v0.1}{2021/09/04}{开始开发。} % \changes{v0.1}{2021/09/04}{开始开发。}
% \changes{v0.2}{2021/09/07}{初步搭建了可用的模板。} % \changes{v0.2}{2021/09/07}{初步搭建了可用的模板。}
...@@ -3062,7 +3062,8 @@ To produce the documentation run the original source files ending with ...@@ -3062,7 +3062,8 @@ To produce the documentation run the original source files ending with
} }
{ {
\AssignTemplateKeys \AssignTemplateKeys
\newpage \clearpage
\thispagestyle { empty }
\__nju_vskip:N \l_@@_top_skip \__nju_vskip:N \l_@@_top_skip
\group_begin: \group_begin:
\l_@@_format_tl \l_@@_format_tl
...@@ -4238,6 +4239,8 @@ To produce the documentation run the original source files ending with ...@@ -4238,6 +4239,8 @@ To produce the documentation run the original source files ending with
section / format = \g_@@_fmt_section_tl, section / format = \g_@@_fmt_section_tl,
subsection / format = \g_@@_fmt_subsection_tl, subsection / format = \g_@@_fmt_subsection_tl,
subsubsection / format = \g_@@_fmt_subsubsection_tl, subsubsection / format = \g_@@_fmt_subsubsection_tl,
paragraph / format = \g_@@_fmt_paragraph_tl,
subparagraph / format = \g_@@_fmt_subparagraph_tl,
% \end{macrocode} % \end{macrocode}
% %
% %
...@@ -5286,12 +5289,8 @@ To produce the documentation run the original source files ending with ...@@ -5286,12 +5289,8 @@ To produce the documentation run the original source files ending with
% \begin{macrocode} % \begin{macrocode}
\cs_new_protected:Npn \@@_make_authdecl: \cs_new_protected:Npn \@@_make_authdecl:
{ {
%<definition-ug> \prg_do_nothing: %<definition-ug> \prg_do_nothing:
%<*definition-g> %<definition-g> \UseInstance { nju } { authdecl-g-default }
\thispagestyle{empty}
\UseInstance { nju } { authdecl-g-default }
\cleardoublepage
%</definition-g>
} }
%</(definition-ug|definition-g)> %</(definition-ug|definition-g)>
% \end{macrocode} % \end{macrocode}
...@@ -5393,15 +5392,18 @@ To produce the documentation run the original source files ending with ...@@ -5393,15 +5392,18 @@ To produce the documentation run the original source files ending with
% 如果在选择了 \opt{decl-page},就生成本科生的诚信承诺书, % 如果在选择了 \opt{decl-page},就生成本科生的诚信承诺书,
% 或研究生的原创性声明和出版授权书。 % 或研究生的原创性声明和出版授权书。
% \begin{macrocode} % \begin{macrocode}
\bool_if:NF \g_@@_draft_bool \bool_if:NF \g_@@_draft_bool
{
\bool_if:NT \g_@@_decl_bool
{ {
\@@_make_origdecl: \bool_if:NT \g_@@_decl_bool
\AtEndEnvironment { document } {
{ \@@_make_authdecl: } \@@_make_origdecl:
\AtEndEnvironment { document }
{
\cleardoublepage
\@@_make_authdecl:
}
}
} }
}
% \end{macrocode} % \end{macrocode}
% 在标题页后使用大写罗马字母页码,恢复正常字体设置。 % 在标题页后使用大写罗马字母页码,恢复正常字体设置。
% \begin{macrocode} % \begin{macrocode}
...@@ -6134,12 +6136,14 @@ To produce the documentation run the original source files ending with ...@@ -6134,12 +6136,14 @@ To produce the documentation run the original source files ending with
% \begin{macrocode} % \begin{macrocode}
\clist_map_inline:nn \clist_map_inline:nn
{ {
{ chapterintoc } { \large \normalfont \sffamily }, { section } { \large \normalfont \sffamily },
{ chapter } { \large \normalfont \sffamily \centering }, { chapter } { \g_@@_fmt_section_tl \centering },
{ section } { \large \normalfont \sffamily }, { chapterintoc } { \g_@@_fmt_section_tl },
{ subsection } { \large \normalfont \sffamily }, { subsection } { \g_@@_fmt_section_tl },
{ subsubsection } { \large \normalfont \sffamily }, { subsubsection } { \g_@@_fmt_section_tl },
{ toctitle } { \centering \zihao { 3 } \bfseries } { paragraph } { \g_@@_fmt_section_tl },
{ subparagraph } { \g_@@_fmt_section_tl },
{ toctitle } { \centering \zihao { 3 } \bfseries }
} }
{ \@@_define_fmt:nn #1 } { \@@_define_fmt:nn #1 }
%</(definition-ug|definition-g)> %</(definition-ug|definition-g)>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment