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
f1e6cf77
Commit
f1e6cf77
authored
3 years ago
by
Yu Xiong
Browse files
Options
Downloads
Patches
Plain Diff
style: 目录格式更新
parent
7bee49e0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
njuthesis.tex
+1
-1
1 addition, 1 deletion
njuthesis.tex
profile/abstract.sty
+2
-2
2 additions, 2 deletions
profile/abstract.sty
profile/cover.sty
+1
-1
1 addition, 1 deletion
profile/cover.sty
profile/font.sty
+11
-1
11 additions, 1 deletion
profile/font.sty
profile/page.sty
+30
-94
30 additions, 94 deletions
profile/page.sty
with
45 additions
and
99 deletions
njuthesis.tex
+
1
−
1
View file @
f1e6cf77
...
...
@@ -91,7 +91,7 @@
\input
{
chapters/Abstract.tex
}
\input
{
chapters/Preface.tex
}
\tableofcontents
\tableofcontents
% 生成目录
\listoffigures
% 生成图片清单
\listoftables
% 生成表格清单
...
...
This diff is collapsed.
Click to expand it.
profile/abstract.sty
+
2
−
2
View file @
f1e6cf77
...
...
@@ -6,8 +6,8 @@
% 本科摘要环境
\NewDocumentEnvironment
{
abstract
}
{}
{
%
\pagestyle
{
plain
}
\pagenumbering
{
Roman
}
%
\pagestyle{plain}
%
\pagenumbering{Roman}
% \phantomsection\addcontentsline{toc}{chapter}{中文摘要} % 将摘要插入目录和pdf书签
\pdfbookmark
[0]
{
中文摘要
}{
中文摘要
}
% 将摘要插入pdf书签,与上一行不可共存
\begin{center}
...
...
This diff is collapsed.
Click to expand it.
profile/cover.sty
+
1
−
1
View file @
f1e6cf77
...
...
@@ -293,7 +293,7 @@
\end{center}
\end{spacing}
\cleardoublepage
\vfill
%
\vfill
% \newpage
}
...
...
This diff is collapsed.
Click to expand it.
profile/font.sty
+
11
−
1
View file @
f1e6cf77
...
...
@@ -64,7 +64,17 @@
\setCJKfamilyfont
{
zhsong
}{
Songti~SC~Light
}
[BoldFont=Songti~SC~Bold]
\setCJKfamilyfont
{
zhhei
}{
Heiti~SC~Light
}
[BoldFont=Heiti~SC~Medium]
\setCJKfamilyfont
{
zhfs
}{
STFangsong
}
\setCJKfamilyfont
{
zhkai
}{
Kaiti~SC
}
[BoldFont=Kaiti~SC~Bold]
\setCJKfamilyfont
{
zhkai
}{
Kaiti~SC
}
[
BoldFont=Kaiti~SC~Bold,
% 参考CTeX手册第9节 LuaLATEX 下的中文支持方式
% AlternateFont =
% {
% {⟨character range1⟩} {⟨alternate font name1⟩}
% {⟨alternate font features2⟩} ,
% ......
% }
]
\setCJKfamilyfont
{
zhnewhei
}{
PingFang~SC
}
}
...
...
This diff is collapsed.
Click to expand it.
profile/page.sty
+
30
−
94
View file @
f1e6cf77
...
...
@@ -36,6 +36,8 @@
% 各部分标题 四号黑体
\ctexset
{
contentsname = 目录,
listfigurename = 插图清单,
listtablename = 表格清单,
chapter/format =
\zihao
{
4
}
\heiti\centering
,
chapter/beforeskip = 10pt,
chapter/afterskip = 60pt,
...
...
@@ -54,7 +56,7 @@
{
\hspace*
{
-4em
}}
% 无序号标题
{
~
\titlerule*
[0.6pc]
{$
.
$}
~
\contentspage
}
% 指引线与页码
\titlecontents
{
section
}
\titlecontents
{
section
}
[5em]
{
\zihao
{
-4
}
\vspace
{
0pt
}}
{
\contentslabel
{
2.5em
}}
...
...
@@ -68,105 +70,39 @@
{
\hspace*
{
-4em
}}
{
~
\titlerule*
[0.6pc]
{$
.
$}
~
\contentspage
}
% TODO: 简化目录格式修改
\tl
_
set:Nn
\tableofcontents
{
%
\if
@twocolumn
\@
restonecoltrue
\onecolumn
\else
\@
restonecolfalse
\fi
\cs
_
set:Npn
\CTEX
@addtocline #1#2
{
\addcontentsline
{
toc
}
{
#1
}
{
\use
:c
{
CTEX@#1@tocline
}
{
#1
}
{
#2
}
}
}
% 修改目录标题字体
\ctexset
{
chapter =
{
format =
\songti\bf\zihao
{
3
}
\centering
,
beforeskip = 10pt,
afterskip = 40pt,
}
}
% 目录页面格式修改
\cs
_
new:Npn
\nju
_
tocpagestyle:nnn #1 #2 #3
{
\newpage
\hspace
{
0pt
}
\vskip
10pt
\begin{center}
\mbox
{
\songti\bf\zihao
{
3
}{
#1
}}
% 目录页面标题
\phantomsection
\addcontentsline
{
toc
}{
chapter
}{
#2
}
% 插入目录
\end{center}
\vskip
40pt
\@
starttoc
{
#3
}
%
\cleardoublepage
}
\chapter*
{
目
\hspace
{
2em
}
录
}
%
% \pdfbookmark[0]{目录}{目录} % 将目录页插入pdf书签
\addcontentsline
{
toc
}{
chapter
}{
\contentsname
}
% \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
\@
starttoc
{
toc
}
%
\if
@restonecol
\twocolumn\fi
% 恢复正常章节标题字体
\ctexset
{
chapter =
{
format =
\zihao
{
4
}
\heiti\centering
,
beforeskip = 10pt,
afterskip = 60pt,
}
}
\tl
_
set:Nn
\tableofcontents
{
\nju
_
tocpagestyle:nnn
{
目
\hspace
{
2em
}
录
}{
\contentsname
}{
toc
}
}
\tl
_
set:Nn
\listoffigures
{
%
\if
@twocolumn
\@
restonecoltrue
\onecolumn
\else
\@
restonecolfalse
\fi
% 修改目录标题字体
\ctexset
{
chapter =
{
format =
\songti\bf\zihao
{
3
}
\centering
,
beforeskip = 10pt,
afterskip = 40pt,
}
}
\chapter*
{
插图清单
}
%
% \pdfbookmark[0]{目录}{目录} % 将目录页插入pdf书签
\addcontentsline
{
toc
}{
chapter
}{
\listfigurename
}
% \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
\@
starttoc
{
lot
}
%
\if
@restonecol
\twocolumn\fi
% 恢复正常章节标题字体
\ctexset
{
chapter =
{
format =
\zihao
{
4
}
\heiti\centering
,
beforeskip = 10pt,
afterskip = 60pt,
}
}
{
\nju
_
tocpagestyle:nnn
{
\listfigurename
}{
\listfigurename
}{
lof
}
}
\tl
_
set:Nn
\listoftables
{
%
\if
@twocolumn
\@
restonecoltrue
\onecolumn
\else
\@
restonecolfalse
\fi
% 修改目录标题字体
\ctexset
{
chapter =
{
format =
\songti\bf\zihao
{
3
}
\centering
,
beforeskip = 10pt,
afterskip = 40pt,
}
}
\chapter*
{
表格清单
}
%
% \pdfbookmark[0]{目录}{目录} % 将目录页插入pdf书签
\addcontentsline
{
toc
}{
chapter
}{
\listtablename
}
% \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
\@
starttoc
{
lot
}
%
\if
@restonecol
\twocolumn\fi
% 恢复正常章节标题字体
\ctexset
{
chapter =
{
format =
\zihao
{
4
}
\heiti\centering
,
beforeskip = 10pt,
afterskip = 60pt,
}
}
{
\nju
_
tocpagestyle:nnn
{
\listtablename
}{
\listtablename
}{
lot
}
}
% 定制前言、致谢环境
...
...
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