From 2d7e1048fce19883464920965de31268ad3d676e Mon Sep 17 00:00:00 2001 From: Wenzheng Chang <1378468839@qq.com> Date: Sun, 27 Apr 2025 17:28:43 +0800 Subject: [PATCH] fix: resolve possible page number issue on blank page between undergraduate thesis abstract and table of contents --- ustcthesis.cls | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ustcthesis.cls b/ustcthesis.cls index e638d357..e1da54fc 100644 --- a/ustcthesis.cls +++ b/ustcthesis.cls @@ -1613,7 +1613,14 @@ \fancypagestyle{blank}{% \fancyhf{}% \renewcommand\headrulewidth{0pt}% - \fancyfoot[C]{\ustc@hf@font\thepage}% + \ifustc@degree@bachelor + % 本科生frontmatter时空白页不显示页码 + \if@mainmatter + \fancyfoot[C]{\ustc@hf@font\thepage}% + \fi + \else + \fancyfoot[C]{\ustc@hf@font\thepage}% + \fi } \newif\ifustc@title@page