Apple's Word processor Pages has grown into an effective alternative to Word over the years. Tables of contents are not a problem either..
When the author of this article wrote his thesis on the Mac over 12 years ago, Apple Pages already existed in the form of the iWork suite. However, word processing could do little to nothing: tables of contents and footnotes were very difficult to implement, if at all. And with the 150-page document, Microsoft Word did what Word always does: destroy the layout. Much has gotten better today: Pages has matured over the years and is definitely an alternative for professional work. Tables of contents are essential for this.
To create a table of contents in Apple Pages, you must first format your document. The paragraph styles that are displayed on the right in every document are suitable for this purpose:
Tables of contents usually do not have their own page numbers or have their own numbering. If the directory is prepended, you still have to make sure that the document is divided into two sections: table of contents pages and "regular" pages. This is done with just a few clicks: