Add “Parts” to the Table of Contents

Issue #89 wontfix
Former user created an issue
I was wondering if it is possible to add the string part before the part number in the
TOC.

I am guessing somewhere in this code but I am not sure how to do it. 

   \ifthenelse{\boolean{@parts}}%
    {%
      \renewcommand{\thepart}{\roman{part}}%
      \renewcommand{\cftpartpresnum}{\scshape}%  \MakeTextLowercase
%      \renewcommand{\cftpartaftersnum}{\cftchapaftersnum}%
%      \renewcommand{\cftpartaftersnumb}{\quad}%
%      \setlength{\cftpartnumwidth}{\cftpartnumwidth}
      \renewcommand{\cftpartfont}{\color{Maroon}\normalfont}%
      \renewcommand{\cftpartpagefont}{\normalfont}%
      \ifthenelse{\boolean{@dottedtoc}}{\relax}%
      {%
        \renewcommand{\cftpartleader}{\hspace{1.5em}}% 
        \renewcommand{\cftpartafterpnum}{\cftparfillskip}%
      }%        
      \setlength{\cftbeforepartskip}{1em}%
      \setlength{\cftbeforechapskip}{.1em}%
      \setlength{\beforebibskip}{\cftbeforepartskip}%
     }{\relax}

Or did you have a way built in for this. 

Thanks for the great style and the help!

Original issue reported on code.google.com by dorien.herremans on 2014-07-02 13:46:12

Comments (3)

  1. Former user Account Deleted
    Somebody suggested this to me, but it did not work: 
    
    \renewcommand{\cftpartpresnum}{Part~}
    
    \newlength{\mylen} % a "scratch" length
    \settowidth{\mylen}{\cftpartpresnum} % extra space
    \addtolength{\cftpartnumwidth}{\mylen} % add the extra space
    

    Original issue reported on code.google.com by dorien.herremans on 2014-08-01 14:23:12

  2. André Miede repo owner
    Will be further investigated for next release.
    

    Original issue reported on code.google.com by amiede on 2014-11-06 16:52:04 - Labels added: Type-Enhancement, Priority-Low - Labels removed: Type-Defect, Priority-Medium

  3. Log in to comment