# minitoc: parttoc on the same page as the part title

Easy example:

\documentclass{scrreprt}

\usepackage{minitoc}

\begin{document}

\doparttoc[n]
\noptcrule
\tableofcontents

\part{foo}
\parttoc

\chapter{bar1}
\chapter{bar2}
\chapter{bar3}
\chapter{bar4}

\end{document}


This creates a nice document, but the toc for the part is on a new page, but it would fit perfectly on the same pag as the part title. Is there a way to have the parttoc on the same page as the part title? So that it behaves like minitoc for chapters.

-

You can redefine \partheadendvskip to suppress the default \vfil\newpage; you might also want to redefine \partheadstartvskip to move up vertically the part heading. Finally you need to redefine \beforeparttoc:

\documentclass{scrreprt}

\usepackage{minitoc}

\null\vskip20pt
}
\vskip2pt
}

\renewcommand\beforeparttoc{}

\begin{document}

\doparttoc[n]
\noptcrule
\tableofcontents

\part{foo}
\parttoc

\chapter{bar1}
\chapter{bar2}
\chapter{bar3}
\chapter{bar4}

\end{document}


-
Thanks, works perfectly. :) –  Foo Bar Sep 28 '12 at 17:51