[Tex/LaTex] CleanThesis \addchap with \chapter style

bibliographiescleanthesistable of contents

I am using the cleanthesis template which uses the KOMA–Script Package. I want the bibliography section to have the same chapter title format as the other chapters (with some minor differences which I won't discuss here). This is easily done using:

\chapter{Bibliography} 
\label{Bibliography}
\printbibliography[heading=none]

I am also trying to add the bibliography to the TOC without a number. I have tried using \addchap{Bibliography} but this does not use the chapter title format.

In the Clean thesis style file the chapter title format is defined using:

\titleformat{\chapter}[display]%
    {\usekomafont{chapter}}%
    {\vspace{-8em}\raggedleft{%
        {\color{ctcolorchapterline}%
            \rule[-5pt]{2pt}{5cm}}\quad%
        {\color{ctcolorchapternum}
            \fontsize{60}{60}\selectfont\thechapter}%
        }%
    }%
    {-2.1em}%
    {\ctformatchapter}%
[\phantomsection]

I tried add the following just before calling \addchap{Bibliography}.

\titleformat{\addchap}[display]%
    {\usekomafont{chapter}}%
    {\vspace{-8em}\raggedleft{%
        {\color{ctcolorchapterline}%
            \rule[-5pt]{2pt}{5cm}}\quad%
        {\color{ctcolorchapternum}
            \fontsize{60}{60}\selectfont\thechapter}%
        }%
    }%
    {-2.1em}%
    {\ctformatchapter}%
[\phantomsection]

But this doesn't work and the title had no formatting.

EDIT 1

Is the problem here that the \titleformat command from here doesn't work with the koma script \addchap?

EDIT 2

The following is based on the Master branch from the clean thesis github page.
Using the clean thesis style a conventional chapter heading looks like this:
enter image description here.

The bibliography section looks like this: enter image description here

I would like the bibliography section to have the same style as a conventional chapter. This can be achieved by placing the following right after the last \input{content/...:

\chapter{Bibliography}
\label{Bibliography}
\printbibliography[heading=none]

Which results in:

enter image description here

The only problem here is that the bibliography is now numbered in the TOC like this:
enter image description here

Is it possible to have the bibliography with a chapter style but not numbered in the TOC?

Best Answer

I am not sure if I understand what you are looking for, but maybe the following does what you want:

\begin{filecontents*}{bib-refs.bib}
@online{WEB:GNU:GPL:2010,
  Author = {{Free Software Foundation, Inc.}},
  Title = {GNU General Public License},
  Url = {http://www.gnu.org/licenses/gpl.html},
  Urldate = {2011-05-27},
  Year = {2010}}
\end{filecontents*}

\documentclass[%
  bibliography=totoc,% include bib in toc
]{scrreprt}%
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[
  bibsys=biber,%
  bibfile=bib-refs,%
  bibstyle=alphabetic,%
]{cleanthesis}
\hypersetup{hidelinks}

\titleformat{name=\chapter,numberless}[display]%
  {\usekomafont{chapter}}%
  {\vspace{-8em}\raggedleft{%
    {\color{ctcolorchapterline}%
      \rule[-5pt]{2pt}{5cm}}\quad%
    {\color{ctcolorchapternum}
      \fontsize{60}{60}\selectfont}%
    }%
  }%
  {-2.1em}%
  {\ctformatchapter}%
  [\phantomsection]

\usepackage{blindtext}% only for dummy text
\begin{document}
\tableofcontents
\blinddocument
\nocite{*}
\printbibliography
\end{document}

Result:

enter image description here

enter image description here

But note that cleanthesis breaks a lot of KOMA-Script features. It would be possible to use KOMA-Script commands to get similar results. See e.g. here.