2

I have the following example code:

\documentclass[parskip]{scrbook}
\setcounter{secnumdepth}{5}

\begin{document}

\chapter{Chapter}
Test

\section{Section}
Test

\subsection{SubSection}
Test

\subsubsection{SubSubSection}
Test

\paragraph{Paragraph}
Test

\subparagraph{SubParagraph}
Test

\end{document}

I a looking for a clean KOMA solution to have the same look/linebreak of Paragraph and SubParagraph as the SubSubSection.

AFAIK titlesec is not recommended together with KOMA script. Maybe scrlayer-scrpage is the way to go?

enter image description here

3

Change afterskip for paragraph and subparagraph to a positive value using:

\RedeclareSectionCommands[
  afterskip=1sp
]{paragraph,subparagraph}

Note that 1sp is the smallest possible positive value.

enter image description here

Code:

\documentclass[parskip]{scrbook}
\setcounter{secnumdepth}{5}

\RedeclareSectionCommands[
  afterskip=1sp
]{paragraph,subparagraph}

\begin{document}
\chapter{Chapter}
Test
\section{Section}
Test
\subsection{SubSection}
Test
\subsubsection{SubSubSection}
Test
\paragraph{Paragraph}
Test
\subparagraph{SubParagraph}
Test
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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