derric/cleanthesis

Add cosmetic color rule in numberless chapters

Opened this issue · 0 comments

With this lines I added cosmetic color rule in numberless chapters.

--- cleanthesis.sty.orig        2015-08-26 18:35:10.000000000 -0300
+++ cleanthesis.sty     2017-09-26 10:32:21.073778306 -0300
@@ -560,6 +560,18 @@
        {-2.1em}%
        {\ctformatchapter}%
        [\phantomsection]
+
+\titleformat{name=\chapter,numberless}[display]%
+       {\usekomafont{chapter}}%
+       {\vspace{-8em}\raggedleft{%
+               {\color{ctcolorchapterline}%
+                       \rule[-5pt]{2pt}{5cm}}\quad%
+               }%
+       }%
+       {-2.1em}%
+       {\ctformatchapter}%
+       [\phantomsection]
+
 %
 % > formats: \section
 \titlespacing{\section}{0em}{.75em}{.2em}%[0pt]