# Remove space before chapter title - with KOMA script (scrbook)

I am using the KOMA script document class scrbook. Is there any way to make the chapter headings appear exactly at the top of the page body just by using KOMA (without using titlesec, fancyhdr, fncychap, ... for they would mess up other things in my documents)? Is there any way to change the space between section heading and the following text?

-
I'm not quite sure what you mean. Are we talking about the chapter titles in the document and that KOMA, like the standard class, adds a vertical space before the chapter or do you refer to the header where KOMa can print the current section/chapter one reads in. In case you mean the position of chapters, search for \chapterheadstartvskip – Martin H Feb 1 '12 at 16:38

The following is probably what you're after:

\documentclass{scrreprt}
\usepackage{blindtext,showframe}
\begin{document}
\chapter{foo} \blindtext \blindtext
\end{document}​


Setting \chapterheadstartvskip to a no-op removes any vertical skip to set the chapter title on the first line.

showframe was loaded just to highlight the text block, while blindtext provided dummy text.

-
There was a change in KOMA-Script version 3.15: now you have to use \renewcommand{\chapterheadstartvskip}{}. – esdd Mar 8 at 0:30
@esdd: Thanks for the update mention. – Werner Mar 8 at 1:23

With KOMA-Script Version 3.15 or newer you can use \RedeclareSectionCommand or \RedeclareSectionCommands to change the space above or below the chapter title.

\RedeclareSectionCommand[beforeskip=0pt]{chapter}


Code:

\documentclass{scrbook}
\usepackage{blindtext}% dummy text
\usepackage{showframe}% to show the page layout
\RedeclareSectionCommand[beforeskip=0pt]{chapter}
\begin{document}
\chapter{foo}
\blindtext
\end{document}​

-
This was the easiest way ever. – Joseph Sep 29 at 20:37