Go to Plug-Ins > Table of Contents > Create TOC From Bookmark. Then, you can open the "Table of Contents Settings" menu. There will be several options under the General tab. You can choose between the internal or external table of contents.