3

I have to comply with inflexible publisher requirements. Both "Parts" and "Chapters" need to start on the same page, with the Chapter directly following the Part:

A. Part name

1. Chapter name

There should be no empty pages and Parts may start on both even and uneven pages.

I highly appreciate your support - I could not find any solution thru Google.

\documentclass{scrbook}
\begin{document}
\part{Foo}
\chapter{Bar}
text starts here
\end{document} 

1 Answer 1

4

Maybe the following helps:

\documentclass[
  open=any% start parts and chapters on both even and odd pages
  ]{scrbook}

\RedeclareSectionCommand[
  beforeskip=\dimexpr-3.3\baselineskip-\parskip\relax,
  afterskip=\dimexpr3.3\baselineskip+\parskip\relax,
  style=chapter% no part page
]{part}
\renewcommand\partformat{\partname\ \thepart\autodot\enskip}

\DeclareNewSectionCommand[
  beforeskip=-1sp,
  afterskip=1.725\baselineskip plus .115\baselineskip minus .192\baselineskip,
  style=section,% no page break before \firstchapterinpart
  level=\chapternumdepth,
  indent=0pt,
  tocindent=0pt,
  tocnumwidth=1.5em,
  font=\usekomafont{chapter},
  tocstyle=chapter
]{firstchapterinpart}

\makeatletter
\let\c@firstchapterinpart\c@chapter% use the same counter for both chapter and firstchapterinpart
\def\cl@firstchapterinpart{\cl@chapter}% use the same reset list as chapter
\makeatother

\begin{document}
\tableofcontents
\part{Foo}
\firstchapterinpart{Bar}
text starts here
\chapter{Next}
\end{document}

enter image description here

2
  • Very useful! I need to recycle an existing document as first part and add a second part. But the whole new document isn't longer than 50 pages, so adding a page for just »part 1« or 2 would look somewhat pompous.
    – Keks Dose
    Sep 21, 2021 at 15:19
  • Babel: From the KOMA-Script documentation: "You should initialise all variables or other textual features after \begin{document}, particularly when you use the babel package" -- your answer works for me when using Babel (french) if you move the changes to after \begin{document}. Nov 7, 2022 at 14:38

You must log in to answer this question.

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