Skip to content

Commit 3764705

Browse files
committed
feat(docs): Beautify document layout
1 parent 9c4257b commit 3764705

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

source/conf.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,19 @@
8888
\usepackage{eso-pic}
8989
9090
% ===== ===== 设置目录标题 ===== =====
91+
\makeatletter
92+
\renewcommand{\tableofcontents}{%
93+
\cleardoublepage
94+
\chapter*{%
95+
\vspace*{1.2cm}
96+
\makebox[\textwidth][c]{\Huge\bfseries 目录}
97+
}
98+
\thispagestyle{empty}
99+
\@mkboth{目录}{目录}
100+
\@starttoc{toc}
101+
}
102+
\makeatother
103+
91104
\makeatletter
92105
\renewcommand{\cftchappresnum}{第}
93106
\renewcommand{\cftchapaftersnum}{章}
@@ -105,11 +118,6 @@
105118
}
106119
}
107120
\makeatother
108-
109-
% \cftsetpnumwidth {1.25cm}\cftsetrmarg{1.5cm}
110-
% \setlength{\cftchapnumwidth}{0.75cm}
111-
% \setlength{\cftsecindent}{\cftchapnumwidth}
112-
% \setlength{\cftsecnumwidth}{1.25cm}
113121
''',
114122
'maketitle': r'''
115123
\input{CoverPage.tex.txt}

0 commit comments

Comments
 (0)