I'd like to have \part title as in figure 1, centered in 2 lines, but I'm not able to create the right code, even if I didn't find in titletoc manual a specific treatment for \part.
The following code
\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{titletoc}
\titlecontents{part}
[0em]
{\addvspace{1.5pc}\filcenter}
{\thecontentslabel* \huge}
{\huge}
{} % without page number
[\addvspace{.5pc}]
\begin{document}
\tableofcontents
\part{Something as a title}
\end{document}
doesn't produce the result I want. But I'm not sure that titletoc handle at all \part... thnx!



titletoccannot detect the\thecontentslabelof the\part. Try commenting out the patch to see what happens. But as far as I know this is the only problem. – Phelype Oleinik Oct 16 '18 at 14:08