From ad2d231509459f446726601f4815d425f74248de Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Wed, 8 Jan 2025 21:42:07 +0800 Subject: [PATCH] Fix the bold of English abstract title --- CHANGELOG.md | 4 ++++ test/testfiles-crossref/main-english.tlg | 6 +++--- test/testfiles-crossref/main.tlg | 6 +++--- ustcthesis.cls | 3 +++ 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ddf2c5..553f93a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- 修正英文摘要标题“ABSTRACT”的粗体([#411](https://github.com/ustctug/ustcthesis/issues/411#issuecomment-2577181494))。 + ## [4.0.0-beta.4] - 2025-01-05 ### Added diff --git a/test/testfiles-crossref/main-english.tlg b/test/testfiles-crossref/main-english.tlg index 69d07f1..8fd2c3e 100644 --- a/test/testfiles-crossref/main-english.tlg +++ b/test/testfiles-crossref/main-english.tlg @@ -250,7 +250,7 @@ Completed box being shipped out [2] ....\special{color pop} ..\glue 8.2511 ..\glue(\lineskip) 0.0 -..\vbox(700.50723+0.0)x417.11752, glue set 598.82768fil +..\vbox(700.50723+0.0)x417.11752, glue set 598.49045fil ...\write-{} ...\marks1{\__mark_id:n {3}ABSTRACT} ...\marks2{\__mark_id:n {4}} @@ -263,9 +263,9 @@ Completed box being shipped out [2] ...\glue 0.0 ...\glue(\parskip) 0.0 ...\glue(\parskip) 0.0 -...\hbox(10.85655+0.22482)x417.11752, glue set 167.22034fil +...\hbox(11.11353+0.30513)x417.11752, glue set 165.55812fil ....\glue(\leftskip) 0.0 plus 1.0fil -....\TU/texgyretermes(0)/m/n/16.06 ABSTRACT +....\TU/texgyretermes(0)/b/n/16.06 ABSTRACT ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 diff --git a/test/testfiles-crossref/main.tlg b/test/testfiles-crossref/main.tlg index d1ec891..6e71c13 100644 --- a/test/testfiles-crossref/main.tlg +++ b/test/testfiles-crossref/main.tlg @@ -250,7 +250,7 @@ Completed box being shipped out [2] ....\special{color pop} ..\glue 8.2511 ..\glue(\lineskip) 0.0 -..\vbox(700.50723+0.0)x417.11752, glue set 598.82768fil +..\vbox(700.50723+0.0)x417.11752, glue set 598.49045fil ...\write-{} ...\marks1{\__mark_id:n {3}ABSTRACT} ...\marks2{\__mark_id:n {4}} @@ -263,9 +263,9 @@ Completed box being shipped out [2] ...\glue 0.0 ...\glue(\parskip) 0.0 ...\glue(\parskip) 0.0 -...\hbox(10.85655+0.22482)x417.11752, glue set 167.22034fil +...\hbox(11.11353+0.30513)x417.11752, glue set 165.55812fil ....\glue(\leftskip) 0.0 plus 1.0fil -....\TU/texgyretermes(0)/m/n/16.06 ABSTRACT +....\TU/texgyretermes(0)/b/n/16.06 ABSTRACT ....\kern -0.0002 ....\kern 0.0002 ....\penalty 10000 diff --git a/ustcthesis.cls b/ustcthesis.cls index 6e2383e..f2985e4 100644 --- a/ustcthesis.cls +++ b/ustcthesis.cls @@ -2419,6 +2419,9 @@ \newenvironment{abstract*}{% \ustcsetup{language=english}% \ifustc@degree@graduate + \ctexset{ + chapter/format = \centering\bfseries\fontsize{16bp}{26.67bp}\selectfont, + }% \ustc@chapter{ABSTRACT}% \else \begingroup