Originally Posted by kovidgoyal
yes for pdf no for any other format.
I don't see why you can't do it in other formats. Take HTML, for instance. A TOC is just a set of links to locations in a file. A nested TOC is one TOC with links to other TOCs, each of which have links to locations in the file.