TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to center PART and wrap the subsubsection in one line in TOC, with proper indentation (matching with section or subsection or chapter). Please see the image. Attached is the sample code too. Thank you very much.

Sample Current Output



% to center part

%wrap TOC contents
\titlecontents*{subsubsection}% <section>
  [1.5em]% <left>
  {\scriptsize}% <above-code>
  {}% <numbered-entry-format>
  {}% <numberless-entry-format>
  {,\ \thecontentspage}% <filler-page-format>
  [\ - \ ]% <separator>
  [\\]% <end>



\part{Part 1}
\section{Section 1}
\subsubsection{Subsubsection 1}
\subsubsection{Subsubsection 2}

\part{Part 2}
\section{Section 1}
\subsection{Subection 1}
\subsubsection{Subsubsection 1}
\subsubsection{Subsubsection 2}

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.