I have defined (using koma-script), that chapters only start on the right side. The same applies to part pages. So far this is ok.
But now I want to insert a contents list (using titletoc) on the back side (left) of the part page. It shall list only the chapters, thus it will never span more than one page.
However by default the next opened page after \part is on the right side.
There are some hacks to solve this problem (found here)
\makeatletter\@openrightfalse\makeatother
\part{Part Name}
This is the text I put on the back side of the part page
\makeatletter\@openrighttrue\makeatother
But I would like to have this configured in the preamble and have a clean code in the document. Is this possible somehow?
EDIT:
From the previous comments I could find out that \renewcommand{\partheademptypage}{} works until I reformat the part page using titlesec.
\documentclass{scrbook}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage{titletoc}
\titleformat{\part}[frame]
{\usekomafont{part}\Large\color{black}\centering} % format
% label: PART I
{\enspace \LARGE\MakeUppercase{\partname}%
\centering \Huge~\thepart \enspace }%
% sep (from partnumber)
{1.5\baselineskip}
% (before chaptertitle and after)
{\color{black}\filcenter}
\begin{document}
\mainmatter
\newcommand{\PartialToc}{%
\startcontents[part]
\section*{Contents}
\printcontents[part]{}{0}{\setcounter{tocdepth}{0}}
}
\renewcommand{\partheademptypage}{}%
\part{Part Heading}
\PartialToc
\chapter{first}
\chapter{second}
\end{document}


KOMAoptionsinstead ofmakeatlettermakeatother. Please add a complete MWE. – Marco Daniel Mar 10 at 12:07scrbookandscrreprtclasses use the macro\partheademptypagefor producing the blank page after the part page; so just redefining it to do nothing will do. – egreg Mar 10 at 12:21