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:
.
The bibliography section looks like this:
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:
The only problem here is that the bibliography is now numbered in the TOC like this:
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:
Result:
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.