From 675d8bc2c95b045ff9ebc861115254ce92a27bda Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Tue, 2 Jul 2024 18:30:29 +0800 Subject: [PATCH] Fix line breaks in toc (#963) --- CHANGELOG.md | 4 ++++ thuthesis.dtx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b038a8a7..426afcaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ ## [Unreleased] +### Fixed + +- 修正目录中标题的断行问题([#963](https://github.com/tuna/thuthesis/issues/963))。 + ## [v7.5.2] - 2024-07-01 ### Added diff --git a/thuthesis.dtx b/thuthesis.dtx index e6f3e46a..b26ce92a 100644 --- a/thuthesis.dtx +++ b/thuthesis.dtx @@ -4067,7 +4067,7 @@ default = arial, }, } -\newcommand\thu@leaders{\titlerule*[4bp]{.}} +\newcommand\thu@leaders{\nobreak\titlerule*[4bp]{.}\nobreak} \newcommand\thu@set@toc@format{% \contentsmargin{\z@}% % \end{macrocode}