From a03ddeb1834ca24e43d6a3d18945ffcb5a8062b3 Mon Sep 17 00:00:00 2001 From: Mingyu Hsia Date: Fri, 6 Mar 2026 11:09:34 +0800 Subject: [PATCH 1/2] Fixed the "microgap" between the image and the color line on the cover page --- elegantbook.cls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elegantbook.cls b/elegantbook.cls index dbece0c..1643369 100644 --- a/elegantbook.cls +++ b/elegantbook.cls @@ -1296,8 +1296,8 @@ \includegraphics[trim=0 26bp 0 26bp,clip=true, width=\linewidth]{example-image} \fi }{\relax} - \setlength{\fboxsep}{0pt} - \colorbox{coverlinecolor}{\makebox[\linewidth][c]{\shortstack[c]{\vspace{0.5in}}}} + \vskip-\baselineskip + {\color{coverlinecolor}\hrule width \linewidth height .5in} \vfill \vskip-2ex \hspace{2em} From 6ea9151a168e46ed462e66ddee02fc4c6a280efa Mon Sep 17 00:00:00 2001 From: Mingyu Hsia Date: Fri, 6 Mar 2026 11:37:58 +0800 Subject: [PATCH 2/2] Update elegantbook.cls --- elegantbook.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elegantbook.cls b/elegantbook.cls index 1643369..0f77e7d 100644 --- a/elegantbook.cls +++ b/elegantbook.cls @@ -1297,7 +1297,7 @@ \fi }{\relax} \vskip-\baselineskip - {\color{coverlinecolor}\hrule width \linewidth height .5in} + {\color{coverlinecolor}\hrule \@width \linewidth \@height .5in} \vfill \vskip-2ex \hspace{2em}