[Tex/LaTex] Distance between chapter title and text

chapterskoma-scriptparskipsectioningspacing

In my scrreprt I've changed distance between paragraphs with \setlength{\parskip}{9pt}. But \parskip changes also distance between chapter title and the paragraph.

How can I change distance between chapter title and the paragraph?

Best Answer

The titlesec package provides

\titlespacing{<command>}{<left>}{<before-sep>}{<after-sep>}[<right>]

that allows for the spacing around any sectional <command> (like \part, \chapter, \section, etc.). The former two sectional commands require the additional \titleformat to be used (see the package documentation). Consequently, altering <after-sep> should suit your needs.

The following minimal example, altered for <after-sep> equal to \parskip, 5\baselineskip and 150pt illustrates the changes (from left to right):

\documentclass{scrreprt}
\usepackage{titlesec}% http://ctan.org/pkg/titlesec
\usepackage{lipsum}% http://ctan.org/pkg/lipsum

\titleformat{\chapter}{\Huge\bfseries}{\chaptername\ \thechapter}{0pt}{\vskip 20pt\raggedright}%
% Alter <after-sep> in the macro below to vary the separation after the \chapter title.
\titlespacing{\chapter}{0pt}{50pt}{<after-sep>}% \titlespacing{<command>}{<left>}{<before-sep>}{<after-sep>}[<right>]
\begin{document}

\chapter{First chapter}
\lipsum[1-5]
\end{document}

Different spacings from chapter title using titlesec

The lipsum package merely provides some dummy text, Lorem Ipsum style.

Related Question