Login  Register

Re: Generate TOC using included files

Posted by abelsromero on Apr 08, 2020; 4:51pm
URL: https://discuss.asciidoctor.org/Generate-TOC-using-included-files-tp7851p7852.html

Yes, it will process all included files to generate the TOC based on the titles found. Note the titles depth must be consistent.

But seeing your example I am not sure that is what you are asking, the level 2 title "Table of Contents" with :toc: below is not correct. Maybe you want to generate a toc in a specific part of the document with only certain titles?