Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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

2 Answers 2

The following is probably what you're after:

enter image description here

\documentclass{scrreprt}
\usepackage{blindtext,showframe}
\renewcommand{\chapterheadstartvskip}{}
\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.

share|improve this answer
    
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}

enter image description here

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}​
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.