scrbook - 部分和章节在同一页

scrbook - 部分和章节在同一页

我必须遵守严格的出版商要求。“部分”和“章节”都必须从同一页开始,章节必须紧跟在部分后面:

A. Part name

1. Chapter name

不应有空白页,并且部分可以在偶数页或奇数页上开始。

我非常感谢您的支持 - 我无法通过 Google 找到任何解决方案。

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

答案1

也许以下内容有帮助:

\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}

在此处输入图片描述

相关内容