This plugin automatically generates and inserts a table of contents (ToC) to your pages and posts, based on tags h1-h6. It can deal with nextpage-tag.
The normal plugin install process applies, that is search for
Extended Table of Contents (with nextpage support) from your plugin screen or via the manual method:
extended-tocfolder into your
You can change the default settings and more under Plugins > Extended-ToC