Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NJUThesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NJU LUG
NJU LaTeX Templates
NJUThesis
Commits
563f9c2a
Commit
563f9c2a
authored
2 years ago
by
Yu Xiong
Browse files
Options
Downloads
Patches
Plain Diff
fix: 修复出版授权书没有空页的问题
- 增加4、5级标题的样式设置
parent
ea5c5820
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
source/njuthesis.dtx
+26
-22
26 additions, 22 deletions
source/njuthesis.dtx
with
31 additions
and
22 deletions
CHANGELOG.md
+
5
−
0
View file @
563f9c2a
...
@@ -6,6 +6,11 @@
...
@@ -6,6 +6,11 @@
## [未发布]
## [未发布]
## 修复
-
正确生成出版授权书后的空白页
-
设置4、5级标题的样式
## [0.17.0] - 2022-04-09
## [0.17.0] - 2022-04-09
### 新增
### 新增
...
...
This diff is collapsed.
Click to expand it.
source/njuthesis.dtx
+
26
−
22
View file @
563f9c2a
...
@@ -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:3
0:00 +0800 NJU LUG <git+nju-lug-email-3104-issue-@yaoge123.cn>$
%<+!driver>\GetIdInfo $Id: njuthesis.dtx 0.17.
1
2022-04-
10 00:0
0: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-0
9
}
% \date{v0.17.
1
\quad 2022-04-
1
0}
%
%
% \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)>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment