I'm not sure can explain definitively why that is the case.
The origins of this particular file goes back several years and has been edited via several versions of MS Word, both on Mac and PC. The basic chapter framework and automatic TOC has remained the same at four numbered levels. The file is now over 150 pages.
I recall that the original chapter heading and TOC styles were "standard" Word styles. However, it is possible that the styles got modified/corrupted over time.
That said, the Heading and TOC elements do get displayed correctly in Word on-screen, printed, and via Word's HTML generation capability.
I prefer the HTML output from Calibre (as opposed to Word) as it is much cleaner and easier to fold into my HTML5 and CSS3 page templates. It's a trivial hack of the Calibre css to get the headings to align properly, but the lack of the Heading4 numbering is a formidable editing task.
Any ideas on how to modify the source Word document and/or styles for a 4 level chapter and TOC would be appreciated.
|