1

I am trying to modify my ToC to add a dot after the number in the part section (and only in ToC, I don't want to modify \thechapter command.

I did that for the chapter using this code:

\titlecontents{chapter}% <section-type>
  [0pt]
  {\addvspace{0.7em}}
  {\chaptername\ \thecontentslabel. \ }
  {}
  {\titlerule*[1pc]{.}\contentspage}

But the \thecontentslabel doesn't work for the part:

{\titlecontents{part}
    [0pt]
    {\addvspace{0.7em}\centering\scshape\large}
    { }
    {\thecontentslabel . }
    {}
    [\addvspace{0.3em}]
}

I have my dot before the number... . I Name How to add if after?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.