The part title in my case does not need a part number. I use already an \DeclareTOCStyleEntryand would like to remove the part number. using
\nullfont` does the trick, but the result is indented. To counteract with a negative indent seems not a good solution. What is better?
p.s. why does \gobble
not work?
\documentclass{scrbook}
\KOMAoptions{paper=
128.5mm:198.4mm, %(5,06" x 7,91") %ziel
DIV=9, %ziel kleines buch
fontsize=12pt,
}
%%%% Sprache
\usepackage[german]{babel} %scheint
%%%%% table of content
\setcounter{tocdepth}{0} % 1 gibt parts und chapter und sections
\DeclareTOCStyleEntry[
indent=-2em,
entryformat=\mdseries\Large,
entrynumberformat=\nullfont, % \gobble,
pagenumberformat=\normalfont\normalsize,
onstarthigherlevel=\vskip ]{tocline}{part}
\DeclareTOCStyleEntry[
indent=2em,
pagenumberformat=\normalfont,
beforeskip=1pt plus .2pt,
entryformat=\normalfont
]{tocline}{chapter}
\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\part{ Philosophie}
\chapter{ \textit{Vom Schreiben}}
\chapter{Zwei}
\end{document}