Quote:
Originally Posted by hymie
If I take five HTML files and generate an EPUB, the EPUB will have a Table of Contents and a toc.ncx. If I take the same five HTML files and re-generate the EPUB, why wouldn't I expect the TOC be the same?
|
The conversion generates the ToC from the book being converted. That is based on the files in the book and the contents of the files. This can build the ToC from the heading tags or class attributes or other things. The searches for each level can be specified in the conversion.
I rarely do conversions. But, when I edit a book, I make sure I can regenerate the ToC at any time and will get the desired result. I usually just use h1, h2 and h3 to do this. But, occasionally will use other tags if that is the best way to do it.
The only I can think of to use a prebuilt ToC is if the files are basically identical. And the simplest way I can think to use it would be to replace the ToC file after the conversion. But, I think that what I would really do is to make sure the input files and conversion parameters used would produce the result I desired.