TOC in Current Section

Creates a new page with table of contents of the current section

Download

Author(s) : Onetastic ★
Category : TOC
Last Updated : January 21, 2023
Requirements : OneNote 2010 or above
Watch this short video to learn more about this macro
Screenshot :

TOC in Current Section

Select link generation mode. In "Resilient" mode links to pages and sections will still work even if they are renamed, however this mode is slow. In "Fast" mode links will no longer work if pages or sections are renamed, but it goes much faster
Link Generation Mode
TOC Page Mode
List Type
Changelog :

January 21, 2023 (5A260C) - Onetastic ★
Added bulleted and numbered list options

April 24, 2018 (64EC8F) - Onetastic ★
Now remembers the Link Generation Mode and TOC Page Mode settings each time it runs

July 21, 2017 (84A010) - Onetastic ★
Fixed an issue where TOC links in Fast Mode would not work.

December 27, 2016 (F62144) - Onetastic ★
Added options for Fast vs Resilient link mode and ability to update existing TOC page.

July 30, 2016 (7C654E) - Onetastic ★
TOC now uses indents for subpages so that it can be collapsed

June 20, 2016 (77F7AE) - Onetastic ★
Re-written with the new Macro Language to take advantage of cleaner syntax and performance improvements

These versions are no longer supported:

March 10, 2013 - Onetastic ★
Initial version

Comments

Name
Comment
Omer Atay - 2021-12-15
tads: Have you tried the Link Generation Mode: Resilient? Does the issue happen with that mode?
tads - 2021-12-15
For some reason a few of the links are not working when I create or update the TOC.
I can see a common issue with the ones that are failing.  They have longer names.  The ones with small names work without a problem.

I have also GEM for OneNote and the TOC  option for them works.  The link is created a little different.

madmatt - 2019-04-23
Any way to have the Main Page bold in the TOC?
Also, some of the links in the TOC are underlined like you would expect a hyperlink to look, but most have a dashed underline. Not sure if that is just something with my system.