Prevent pagebreaks before and after part

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

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


Updated November 10, 2018 17:23 PM

Updated July 24, 2016 08:09 AM

Updated July 09, 2015 13:10 PM

Updated March 26, 2017 09:23 AM

Updated February 22, 2016 06:10 AM