i would like to center the part title in the table of contents (TOC) of my thesis. Based on an answer of egreg, i was able to at least modify the space between part number and part title in the TOC.
However, I cannot set this length individually for each \part (i try it in the MWE below, but as can be seen in the result, it does not work).
\documentclass[dottedtoc]{scrreprt}
\usepackage[parts]{classicthesis}
%custom space between number and text in toc: https://tex.stackexchange.com/a/140053/38853
\makeatletter
\def\ttl@tocpart{% %magic code, don't ask
\def\ttl@a{\protect\numberline{\thepart}\@gobble{}}}
\setlength{\cftpartnumwidth}{100px}
\makeatother
\begin{document}
\tableofcontents
\part{P1}
\chapter{Ch1}
\setlength{\cftpartnumwidth}{150px}
\part{P2}
\chapter{Ch2}
\end{document}
Result:

Other solutions are welcome as well!
(I am aware of https://tex.stackexchange.com/a/210676/38853, however, I don't see how to put the part number on the left and the page number on the right, as in the picture)

titletocuser, so i don't know. Usingtitletocwith KOMA-script is discouraged by the way, as is usingtitlesec. Please, ask that as a new question to better sort our archive. If you make the question independent of usingclassicthesis, even better. More possible solutions for others to find. – Johannes_B Apr 16 '15 at 14:11