3

My problem is that I need to start new chapters on the same page if there is still space available. I use the scrbook class.
As far as I see I have two solutions.
1. Change the class, i.e. to scrarticle and lose out on having chapters
2. adding selectively:

\begingroup
\let\clearpage\relax
\chapter{My Chapter}
\endgroup

or I can do the same for the whole document with:

\renewcommand{\clearpage}{}

But if I do this Latex is all fact up and kind of ignores its nice visual pleasing features, see the picture. I need to mention that I use for each chapter and their sections a new latex file, while adding them with \input into a main document.

What am I doing wrong. If I need to resort to manually adding spaces at the end of the last chapter, how much vertical space should I add?

I problem

1
  • 1
    Related: tex.stackexchange.com/a/457713 There are two suggestions: style=section for the \chapter command and alternatively the declaration of a new sectioning command.
    – esdd
    Commented Aug 12, 2019 at 16:06

1 Answer 1

5

Technically no problem:

\documentclass{scrbook}
\usepackage{blindtext}

\usepackage[T1]{fontenc}

\RedeclareSectionCommand[
style=section]
{chapter}

\begin{document}

\chapter{First chapter}
\label{CLA:first-chapter}

\blindtext{}

\chapter{Second chapter}
\label{CLA:second-chapter}

\blindtext{}

\end{document}

But why? A chapter is more or less by definition a section of a text that starts on a new page.

If you only need to add more levels under section, subsection, subsub... you may add as much levels as you need, see \DeclareNewSectionCommandin the KOMA-script manual.

1
  • 1
    I have been looking for a solution for hours. Only thing that worked for me...
    – Erdem Tuna
    Commented Mar 21, 2021 at 20:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .