Hello,

I would like to create a table of contents, but only within a specific subsection. I'll explain with an actual example

--------------------------------------
TOC
- Option 1 - Header 2
- Option 2 - Header 2
--------------------------------------

*** Introduction - Header 1 ***
Welcome to the introduction.

*** Options - Header 1 ***
There are many possible options. Here is the list of options you have
----THIS TOC IS WHAT I AM TRYING TO HAVE AUTOMATICALLY-----
- Option 1 - Header 2
- Option 2 - Header 2
----THIS TOC IS WHAT I AM TRYING TO HAVE AUTOMATICALLY-----

** Option 1 - Header 2 **
This is the option 1.

** Option 2 - Header 2 **
This is the option 2.


Is it possible to obtain this "subtoc" for all the Header 2 entries contained in the Options - Header 1 ?

Thank you

edit retag reopen merge delete

### Closed for the following reason question is not relevant or outdated by Alex Kemp close date 2015-11-07 03:47:45.827976

Sort by » oldest newest most voted

The short answer is yes. There have been a couple of threads on this forum about the same topic:

I also discuss why using the term "section" in this context is not a good idea here. Your question is really about heading levels and including different levels of heading in separate tables of content. To achieve what you require it may be best to create custom heading styles to more clearly identify which headings are to be included in which ToC.

more