Quote:
Originally Posted by kovidgoyal
How about a --level1-toc and --level2-toc options? Each taking an XPath expression. This will allow you to easily create a 2 level hierarchical toc. The idea being that every level2 item will be added to the most recent previous level1 item. For more complex TOC there will be a --use-ncx option.
|
That would be Awesome! That is exactly what I was hoping for.
Okay level2 is straight forward. But I see level1 having a special case.
1) If no substile is found work as it does today and jump to the book location
2) If subtitle is found create a sub menu and insert itself in the ordinal location 0 and all following subtitles at ordinal 1+
=X=