From b8c165a6b71847e7280a719b80d028d221975cf0 Mon Sep 17 00:00:00 2001 From: EthanDeng Date: Mon, 26 Aug 2019 08:15:07 +0800 Subject: [PATCH] remove the negative space before section/subsection --- elegantbook.cls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elegantbook.cls b/elegantbook.cls index 8481603..2309087 100644 --- a/elegantbook.cls +++ b/elegantbook.cls @@ -367,13 +367,13 @@ {\filcenter\LARGE\enspace\bfseries{\color{structurecolor}\IfAppendix{\appendixname}{\chaptername}\enspace}}{1pt}{\bfseries\color{structurecolor}\LARGE\filcenter}[\ifdefstring{\ELEGANT@base}{hide}{}{\filcenter\base{structurecolor}{88}}] \titleformat{\section}[hang]{\bfseries} -{\hspace{-2.45em}\Large\bfseries{\color{structurecolor}\thesection}\enspace}{1pt}{\color{structurecolor}\Large\bfseries\filright} +{\Large\bfseries{\color{structurecolor}\thesection}\enspace}{1pt}{\color{structurecolor}\Large\bfseries\filright} \titleformat{\subsection}[hang]{\bfseries} -{\hspace{-2.45em}\large\bfseries\color{structurecolor}\thesubsection\enspace}{1pt}{\color{structurecolor}\large\bfseries\filright} +{\large\bfseries\color{structurecolor}\thesubsection\enspace}{1pt}{\color{structurecolor}\large\bfseries\filright} \titleformat{\subsubsection}[hang]{\bfseries} -{\hspace{-2.45em}\large\bfseries\color{structurecolor}\thesubsubsection\enspace}{1pt}{\color{structurecolor}\large\bfseries\filright} +{\large\bfseries\color{structurecolor}\thesubsubsection\enspace}{1pt}{\color{structurecolor}\large\bfseries\filright} \titlespacing{\chapter}{0pt}{-20pt}{1.3\baselineskip}