Skip to content

Commit

Permalink
Change sectioning label separator to space
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Apr 9, 2022
1 parent a31ea93 commit 64c8792
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 24 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
### Changed

- 目录中的长标题由悬挂缩进改为左对齐([#759](https://github.com/tuna/thuthesis/discussions/759))。
- 英文版目录中的标签分隔符由 `\quad` 改为空格([#759](https://github.com/tuna/thuthesis/discussions/759))。
- 研究生英文版目录中的标签分隔符由 `\quad` 改为空格([#759](https://github.com/tuna/thuthesis/discussions/759))。
- 研究生英文版章节标题的标签分隔符由 `\quad` 改为空格([#759](https://github.com/tuna/thuthesis/discussions/759))。

## [v7.2.4] - 2022-03-19

Expand Down
54 changes: 31 additions & 23 deletions thuthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -3593,21 +3593,17 @@
numberformat = {},
titleformat = {},
fixskip = true,
aftername = \quad,
afterindent = true,
lofskip = 0pt,
lotskip = 0pt,
},
section = {
aftername = \quad,
afterindent = true,
},
subsection = {
aftername = \quad,
afterindent = true,
},
subsubsection = {
aftername = \quad,
afterindent = true,
},
paragraph/afterindent = true,
Expand Down Expand Up @@ -3636,21 +3632,25 @@
\ctexset{%
chapter = {
format = \centering\sffamily\fontsize{15bp}{20bp}\selectfont,
aftername = \quad,
beforeskip = 30bp,
afterskip = 20bp,
},
section = {
format = \sffamily\fontsize{14bp}{18bp}\selectfont,
aftername = \quad,
beforeskip = 25bp,
afterskip = 12bp,
},
subsection = {
format = \sffamily\fontsize{13bp}{15bp}\selectfont,
aftername = \quad,
beforeskip = 12bp,
afterskip = 6bp,
},
subsubsection = {
format = \sffamily\fontsize{12bp}{14bp}\selectfont,
aftername = \quad,
beforeskip = 12bp,
afterskip = 6bp,
},
Expand Down Expand Up @@ -3700,22 +3700,45 @@
% 由于 Word 的行距算法不同,这里进行了一些调整使得视觉上更接近。
% \begin{macrocode}
\else
\ctexset{%
chapter = {
beforeskip = 27bp,
afterskip = 27bp,
number = \thechapter,
},
section = {
beforeskip = 24bp,
afterskip = 6bp,
},
subsection = {
beforeskip = 12bp,
afterskip = 6bp,
},
subsubsection = {
beforeskip = 12bp,
afterskip = 6bp,
},
}%
\ifthu@main@language@chinese
\ctexset{%
chapter = {
format = \centering\sffamily\sanhao,
nameformat = {},
titleformat = {},
name = {第,章},
aftername = \quad,
},
section = {
format = \sffamily\fontsize{14bp}{20bp}\selectfont,
aftername = \quad,
},
subsection = {
format = \sffamily\fontsize{13bp}{20bp}\selectfont,
aftername = \quad,
},
subsubsection = {
format = \sffamily\fontsize{12bp}{20bp}\selectfont,
aftername = \quad,
},
}%
\else
Expand All @@ -3725,37 +3748,22 @@
nameformat = \MakeUppercase,
titleformat = \MakeUppercase,
name = \chaptername\space,
aftername = \space,
},
section = {
format = \sffamily\bfseries\fontsize{14bp}{20bp}\selectfont,
aftername = \space,
},
subsection = {
format = \sffamily\bfseries\fontsize{13bp}{20bp}\selectfont,
aftername = \space,
},
subsubsection = {
format = \sffamily\bfseries\fontsize{12bp}{20bp}\selectfont,
aftername = \space,
},
}%
\fi
\ctexset{%
chapter = {
beforeskip = 27bp,
afterskip = 27bp,
number = \thechapter,
},
section = {
beforeskip = 24bp,
afterskip = 6bp,
},
subsection = {
beforeskip = 12bp,
afterskip = 6bp,
},
subsubsection = {
beforeskip = 12bp,
afterskip = 6bp,
},
}%
\fi
}
\thu@set@section@format
Expand Down

0 comments on commit 64c8792

Please sign in to comment.