### Adding unnumbered part to the ToC

Sometimes, it is desirable to add section headings to a modular ToC. There are packages that help in customizing the ToC and even in creating multiple ToCs, but I have always found it useful to simply insert an unnumbered part into the ToC using,

`\addtocontents{toc}{\protect\contentsline{part}{\protect\numberline{}Part Title}{}}`

### Reducing space between entries

`\renewcommand\cftbeforechapterskip{0pt plus 1pt}`

replace chapter with section, subsection etc. as necessary.

`\renewcommand\contentsname{\hfill\LARGE Contents}`

### Change the font of chapter entries

`\renewcommand\cftchapterfont{\normalsize}`

Section entries can be changed with `\cftsectionfont` etc.

To change the font for the page numbers,

`\renewcommand\cftchapterpagefont{\normalsize}`

### Remove dotted fill from ToC entries

`\renewcommand*{\cftsectiondotsep}{\cftnodots}`

### Prevent hyphenation for longer ToC entries

Sometimes longer entries in the table of contents are hyphenated. I don’t see this as a major issue, but some prefer to prevent it. Use the following to prevent it,

```\begingroup\raggedright\pretolerance=10000 \tableofcontents* \endgroup ```

### Remove bold font from ToC entries using memoir class

Memoir has useful features to change the appearance of the text in the ToC:


### Remove leading numbers from ToC entries using memoir class

To remove the leftmost chapter number digits from ToC entries:

`\renewcommand{\chapternumberline}[1]{}`