A dynamic table of contents macro that also works on mobile.
This macro creates a Table of Contents from the headings on the current page and displays them as links in a list. Works across any screen or device.
If using: