42

What various packages, example code, or examples of existing documents with available source code are available to assist one in:

  • Changing the style and formating of a table of contents?
  • Building a new design for the table of contents from scratch?
4
  • 2
    This post and this one combined with a study of the titletoc package might get you started :)
    – cmhughes
    Commented Dec 17, 2011 at 5:02
  • 2
    The document of tocloft package is a good start to learn. Then titletoc package.
    – Leo Liu
    Commented Dec 17, 2011 at 5:18
  • 1
    This is also interesting: wiki.contextgarden.net/Table_of_Contents
    – Ho1
    Commented Aug 4, 2015 at 6:28
  • @Ho1 Great tip for us beginners
    – LCarvalho
    Commented Oct 10, 2017 at 14:51

1 Answer 1

46

This post is community wiki, everybody is invited to edit.

Packages

  • tocloft: provides many features for customizing the ToC and the and the ability to create new "Lists of ..."
  • titletoc: a companion for titlesec
  • tocbasic: offers basic features for managing table of contents and similar lists, for package authors and class writers, is part of the KOMA-Script bundle
  • tocstyle: provides many ways of customizing the ToC and such lists, still in development, is part of the KOMA-Script bundle
  • minitoc: for adding mini-tables-of-contents (minitocs) at the beginning of every chapter, part or section
  • tocbibind: can be used to add the ToC and/or bibliography and/or the index etc. to the table of contents
  • tocvsec2: gives control over section numbering and/or the entries in the table of contents on a section by section basis
  • etoc: (released a year after OP) claims a different approach than other toc packages. Instead of customizing an initial layout, you define "line-styles" for each toc level toc and can inject code for transitions between levels.

The memoir class provides features which are very similar to the capabilities of tocloft and tocbibind.

Style gallery

Click on an image to go to the source code and the explanation.

Pretty Table of Contents

Adding a per-chapter image along with group of entries in ToC

List sections of chapter at beginning of that chapter

Changing color and bullets in Beamer's table of contents

Table of Contents with additional description of entries

All sections of a chapter in a single paragraph

TOC table with bullets between entries and page number

Table of contents with TikZ

Table of contents with TikZ

Table of contents with etoc

3
  • Here you have another question with som examples how-to-customize-the-table-of-contents-using-tikz
    – Ignasi
    Commented Dec 17, 2011 at 15:55
  • 1
    Nice answer. What about alternating dots like in the TeXbook toc?
    – Ho1
    Commented Aug 4, 2015 at 6:29
  • @Stevan Kottwitz Very useful answer. It's helping me a lot.
    – LCarvalho
    Commented Oct 10, 2017 at 14:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .