How can I put horizontal lines before and after my Table of Contents entries?
To illustrate the look and feel I am after, please take a look at this image:
I would like to understand how to do the same on a full ToC rather than, as it is the case in the linked image, on a "mini-ToC".
Best Answer
For the standard classes, you can use the
tocloft
package; using\cftaftertoctitle
you can place some material (a rule and some vertical space, in this case) after the ToC title and before the entries; after the ToC is typeset a rule is inserted using\hrulefill
:Without additional packages, you can redefine the
\tableofcontents
command as implemented in the document class used. For example, usingbook
, such a redefinition might look like this (the changes were marked with%NEW
):The
memoir
document class offers you the built-in command\aftertoctitle
to add material after the ToC title: