I want to add some space before the chapters titles in classicthesis
to get an effect like this thesis so I have modified the classicthesis.sty
in this manner:
% chapters
\ifthenelse{\boolean{@linedheaders}}%
{% lines above and below, number right
\titleformat{\chapter}[display]%
{\relax}{\vspace*{0.125\textheight}{\raggedleft{\color{Maroon}\chapterNumber\thechapter} \\ }}{0pt}%
{\titlerule\vspace*{.9\baselineskip}\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
}{% something like Bringhurst
\titleformat{\chapter}[display]%
{\relax}{\vspace*{0.25\textheight}{\mbox{}\oldmarginpar{\vspace*{-3\baselineskip}\color{Maroon}\chapterNumber\thechapter}}}{0pt}%
{\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
}
I want to ask you if this is the right manner to put that space and if the space is put in the right quantity.
Best Answer
It's never a good idea to modify directly a
.sty
file; that said,classicthesis
uses thetitlesec
package to format the sectional unit headings and, in particular, it usesto control the space before and after chapter titles, so you can simply change the third (space after) and fourth (space after) arguments according to your needs; you can do this in the preamble of your document without changing
classicthesis.sty
. A simple example:Of course, instead of the values I used (refer to the documentation for
titlesec
) you can use any valid length.If the changes in spacing must apply only to numbered chapters, instead of using
\titlespacing
, a solution using\titleformat
to discriminate between numbered and unnumbered chapters (with the help of thenumberless
key) can be used; in the following code I illustrate this approach in the case of thelineheaders
option; for numbered chapters a space of8\baselineskip
was added before the title and2\baselineskip
was added after the tile; unnumbered chapters maintain their original settings: