Prevent pagebreaks before and after part

by StckXchnge-nub12   Last Updated May 15, 2019 15:23 PM - source

I'm trying to create a titlepage that's linked in the table of contents. To achieve this correctly, I've decided to use the part sectioning command. An example for how it should look like is as follows:

\documentclass{scrbook}

\begin{document}
\begin{titlepage}
    There's some text up here!

    \vfill
    \vfill

    \begin{center}
        \Huge\bfseries My Part % (*)
    \end{center}

    \vfill
    \vfill
    \vfill

    And there's more text down here!
\end{titlepage}
\end{document}

Now let's replace the line I marked with (*) with \addpart{My Part}. Unfortunately, you'll notice that the page breaks apart.

What can I do to prevent this from happening? I'm aware that you can change fonts in KOMA-Script classes by redefining \partformat or using \addtokomafont{part}{...}. Are there similar commands to control the pagebreaks?



Related Questions


Optimize space usage of paragraphs

Updated November 10, 2018 17:23 PM


Sections and new pages

Updated July 09, 2015 13:10 PM


Replace vspace at the end of the page

Updated February 22, 2016 06:10 AM