tocbot
tocbot copied to clipboard
How can I let the Headings of tocbot indent to its corresponding position?
Question
How can I let the Headings of tocbot indent to its corresponding position?
Problem eg
normal situation:
(There is nothing wrong with this example, tocbot is behaving normally)
heading1
heading2
heading3
heading2
heading3 // <- this will be removed
heading4
heading3
problematic situation
Say, now the heading4 no longer follows a heading3 in the html file.
Then here is the problem, the heading4 here is indented to same alignment as the below heading3. (Though this is common in some of the Toc design. )
How can I make the heading4 indent back to 1 more indentation righter than heading3?
current behavior:
heading1
heading2
heading3
heading2
heading4 // <- problem
heading3
expecting behavior:
heading1
heading2
heading3
heading2
heading4 // <- expect such indentation
heading3