From e4371c7bf331a9105fb2864f6c0c7ae5210e6f59 Mon Sep 17 00:00:00 2001 From: EthanDeng Date: Sat, 11 May 2019 16:18:54 +0800 Subject: [PATCH] renew partname --- elegantbook.cls | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/elegantbook.cls b/elegantbook.cls index e36f438..ccd3b8d 100644 --- a/elegantbook.cls +++ b/elegantbook.cls @@ -237,7 +237,8 @@ \renewcommand{\contentsname}{目\hspace{2em}录} \renewcommand{\figurename}{图} \renewcommand{\tablename}{表} -\renewcommand{\partname}{第 \thepart\; 部分} +\renewcommand{\partname}{\color{structurecolor}} +\renewcommand{\thepart}{第\zhnumber{\arabic{part}}部分} \renewcommand{\listfigurename}{插图目录} \renewcommand{\listtablename}{表格目录} \renewcommand{\bibname}{参考文献} @@ -256,7 +257,11 @@ \bibliographystyle{aer} }{\relax} - +\RequirePackage{xpatch} +\xpatchcmd{\part}{\thispagestyle{plain}} + {\pagecolor{white}\thispagestyle{plain}}{}{} +\xpatchcmd{\@endpart}{\vfil\newpage}{\vfil\newpage + \pagecolor{white}}{}{} \graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}} \RequirePackage{tikz}