Quote:
Originally Posted by erion
...if I specify the xpaths for the multi-level contents, how come they are not used... seems a mystery to me...
|
I think the --chapter and --leveln-toc options are to be used in tandem, but the --chapter option seems to be the most important, telling calibre how to split the chapters.
For instance, (at least in the GUI) if you run your conversion with just the --chapter option set as specified and leave the --level-tocs blank then you still get all the <h1>s and <h2>s in the epub TOC, but they have a flat hierarchy instead of the <h2>s being children of the <h1>s. So it appears that the --level-tocs fine-tune the --chapter.
If I've got this completely wrong maybe someone more technical can chip in and enlighten us.