Skip to content

Commit c1d1a96

Browse files
Merge pull request #678 from YDX-2147483647/toc
fix(GT): 改进目录样式
2 parents f505c9d + 0a61548 commit c1d1a96

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

bithesis.dtx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,16 +1578,18 @@
15781578
\addtocontents{toc}{\protect\hypersetup{hidelinks}}
15791579

15801580
\@@_if_graduate:TF {
1581-
% 对于研究生模板,定义各章标题为宋体四号。
1582-
\titlecontents{chapter}[0pt]{\songti \zihao{4}}
1581+
% 对于研究生模板,《撰写规范》要求各级标题字号不同,且缩进 2n 字符。
1582+
% 为尽可能视觉对齐,缩进的字宽统一按四号 14pt,页码统一按小四。
1583+
% chapter 不缩进,标题四号,页码小四。行距为保持与其它项相同,设定为:原本 baselinestretch 1.56 × 小四 12pt / 四号 14pt = 1.33714 倍。
1584+
\titlecontents{chapter}[0pt]{\songti \zihao{4} \linespread{1.33714}\selectfont}
15831585
{\thecontentslabel\unskip\hspace{\ccwd}}{}
1584-
{\hspace{.5em}\titlerule*{.}\contentspage}
1585-
% section 标题为宋体小四号。缩进为两个字符宽度
1586-
\titlecontents{section}[2\ccwd]{\songti \zihao{-4}}
1586+
{\hspace{.5em}\zihao{-4}\titlerule*{.}\contentspage}
1587+
% section 缩进两字,全部小四
1588+
\titlecontents{section}[14pt * 2]{\songti \zihao{-4}}
15871589
{\thecontentslabel\hspace{\ccwd}}{}
15881590
{\hspace{.5em}\titlerule*{.}\contentspage}
1589-
% subsection 标题为宋体小四号。缩进为四个字符宽度
1590-
\titlecontents{subsection}[4\ccwd]{\songti \zihao{-4}}
1591+
% subsection 缩进四字,全部小四
1592+
\titlecontents{subsection}[14pt * 4]{\songti \zihao{-4}}
15911593
{\thecontentslabel\hspace{\ccwd}}{}
15921594
{\hspace{.5em}\titlerule*{.}\contentspage}
15931595
} {

0 commit comments

Comments
 (0)