Great. Just one last thing: If sometimes despite the above LiveTOC does not seem to be able to find an entry, you can help it. Select just a few words from a TOC entry (not the whole paragraph). Select words that you know appear in the target chapter title. Now when you run LiveTOC with these words selected, it will ignore all other settings (except the list of paragraph styles you have chosen at the top), and search only for those selected words.
This is quite a useful tip, as it can often be that an entry doesn’t exactly match the chapter title, for whatever reason. (The disadvantage is that it only works on one entry at a time, of course. So I usually start by selecting the whole TOC, running liveTOC, and then fixing the remaining few entries that didn’t work one by one using this method.)