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
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
Danson Liao
NJUThesis
Commits
7468597e
Commit
7468597e
authored
3 years ago
by
Yu Xiong
Browse files
Options
Downloads
Patches
Plain Diff
feature: 对目录页的标题格式进行规范化
parent
3acf7cce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
njuthesis.tex
+2
-2
2 additions, 2 deletions
njuthesis.tex
profile/components.sty
+1
-1
1 addition, 1 deletion
profile/components.sty
profile/page.sty
+22
-1
22 additions, 1 deletion
profile/page.sty
profile/profile.cls
+4
-4
4 additions, 4 deletions
profile/profile.cls
with
29 additions
and
8 deletions
njuthesis.tex
+
2
−
2
View file @
7468597e
...
...
@@ -46,10 +46,10 @@
\end{table}
\section
{
图片
}
你可以使用figure命令插入图片,代码如下:
\begin{lstlisting}
[language=Te
x
]
\begin{lstlisting}
[language=Te
X
]
\begin{figure}
\centering
\includegraphics
[width=0.
4
\textwidth]
{
njulogo
}
\includegraphics
[width=0.
25
\textwidth]
{
njulogo
}
\caption
{
南京大学校徽
}
\end{figure}
\end{lstlisting}
...
...
This diff is collapsed.
Click to expand it.
profile/components.sty
+
1
−
1
View file @
7468597e
...
...
@@ -28,7 +28,7 @@
showspaces=false,
% hide markers for spaces
showstringspaces=false,
captionpos=t,
% place the caption at the top
frame=lrtb,
% show all four sides of the frame
%
frame=lrtb,% show all four sides of the frame
%linewidth=.8\textwidth,
breakatwhitespace=true,
breaklines=true,
...
...
This diff is collapsed.
Click to expand it.
profile/page.sty
+
22
−
1
View file @
7468597e
...
...
@@ -13,4 +13,25 @@
% laTex默认1.2行距,word默认行距是1.3,
% 所以1.5/1.2*1.3 = 1.625
% 该内容已作为参数传入ctexbook类
% \linespread{1.625}
\ No newline at end of file
% \linespread{1.625}
% ctex格式设置
\ctexset
{
contentsname =
\songti\bfseries\zihao
{
3
}
目录,
chapter/format =
\zihao
{
4
}
\bfseries\heiti\centering
,
section/format =
\zihao
{
4
}
\bfseries\heiti\raggedright
,
subsection/format =
\zihao
{
4
}
\bfseries\heiti\raggedright
,
subsubsection/format =
\zihao
{
4
}
\bfseries\heiti\raggedright
}
% 重定义目录中章节标题样式
\titlecontents
{
chapter
}
[5em]
{
\bfseries\heiti\zihao
{
4
}
\vspace
{
10pt
}}{
\contentslabel
{
4em
}}{}{
~
\titlerule*
[0.6pc]
{$
.
$}
~
\contentspage
}
\titlecontents
{
section
}
[5em]
{
\vspace
{
0pt
}}{
\contentslabel
{
2em
}}{}{
~
\titlerule*
[0.6pc]
{$
.
$}
~
\contentspage
}
\titlecontents
{
subsection
}
[6em]
{
\vspace
{
0pt
}}{
\contentslabel
{
2em
}}{}{
~
\titlerule*
[0.6pc]
{$
.
$}
~
\contentspage
}
\titlecontents
{
subsubsection
}
[6em]
{
\vspace
{
0pt
}}{
\contentslabel
{
2em
}}{}{
~
\titlerule*
[0.6pc]
{$
.
$}
~
\contentspage
}
% 1.{section}:标题级别
% 2.[5em]:标题位置 (左间距)
% 3.{\bfseries \zihao{5} \vspace{10pt}}:标题格式 (设置标题的整体格式,如字体尺寸、粗细、与上一个标题的垂直距离等,可空置)
% 4.{\contentslabel{4em}}:标题标志 (设置标题标志的格式,如序号格式、序号宽度、序号与标题内容之间的间距等,不可空置)
% 5.{\hspace*{0em}}:无序号标题 (设置无序号标题的格式,如字体、字体尺寸、位置等。该参数可以空置)
% 6.{~\titlerule*[0.6pc]{$.$}~\contentspage}:指引线与页码 (设置标题与页码之间的指引线样式以及页码的格式,该参数如果空置,标题将无指引线和页码)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
profile/profile.cls
+
4
−
4
View file @
7468597e
...
...
@@ -11,10 +11,10 @@
% ctex格式设置
\ctexset
{
contentsname =
\songti\bfseries\zihao
{
3
}
目录,
chapter/format =
\zihao
{
4
}
\bfseries\centering
,
section/format =
\zihao
{
4
}
\bfseries\raggedright
,
subsection/format =
\zihao
{
4
}
\bfseries\raggedright
,
subsubsection/format =
\zihao
{
4
}
\bfseries\raggedright
chapter/format =
\zihao
{
4
}
\bfseries\
heiti\
centering
,
section/format =
\zihao
{
4
}
\bfseries\
heiti\
raggedright
,
subsection/format =
\zihao
{
4
}
\bfseries\
heiti\
raggedright
,
subsubsection/format =
\zihao
{
4
}
\bfseries\
heiti\
raggedright
}
\ExplSyntaxOff
\ No newline at end of file
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