Wrapping multiples lines in a table of contents

Last-Updated: 2021-12-12

Sources

Introduction

Constructing a table of contents with properly formatted items spanning multiple lines is no small task. The following macro by Tadziu Hoffmann is a great help at solving this.

Excerpt from Tadziu Hoffmann's macro package

In this macro (tocfmt.ro) the lines are arbitrarily wrapped at four inches by using diversions and delaying the interpretation of tabs and leaders until the text has already been formatted (2021-11/msg00091).

The result can be seen in the attachments to Tadziu's email on the mailing list (tocfmt.pdf).

← Go back