View Single Post
Old 10-30-2016, 03:56 AM   #4
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Maybe a simpler solution (at least for ODTImport users) would be:

1. On your odt: create a dedicated chapter title for the toc and place it where you wish in the structure of your text files.

2. After conversion, using Sigil, you see it's, say, chapter73.xhtml. It contains only a h2 title (T.o.C) and a link to your stylesheet. You see also that the brand new toc.xhtml has been dropped at the beginning of your text files.

3. Copy and insert this h2 title (with its id) and the link to your stylesheet and the namespace in the toc.xhtml file.

4. Delete the original chapter73.xhtml and rename toc.xhtml (modified) as chapter73.xhtml.
Move it to its new place.

This way, you do not have to take care of the properties="nav" attribute.

Last edited by roger64; 10-30-2016 at 06:47 PM. Reason: namespace
roger64 is offline   Reply With Quote