Quote:
Originally Posted by Hadrien
In this case it's different. He needs a multi-level TOC for a single flow, not multiple flow.
|
Exactly
Quote:
Originally Posted by kovidgoyal
I guess I can add a --toc-from option that if specified will be used to populat the TOC, in which case the chapters will no longer be added to the TOC. Does that satisfy your use case? If so open a ticket for it.
|
Hadrien solution below is the best solution, if that is too complicated for the design here is what would work. It's what he does for the FeedBooks books and those TOC flow very nice.
If that is too complicated this is really all I need
There are 2 solutions:
1) Evertying works as is today except you add a --page-break=(Reg Exp | XPath)
This way on creation of an ePUB the user defines when the page break occurs not the chapter detection.
2) Add a flag --include-in-TOC have it use the same syntax as --chapter (ie regular expressions and XPath)
The --chapter switch works as is, but the --include-in-TOC just inserts the link into the TOC w/o a page break.