View Single Post
Old 08-20-2023, 08:56 PM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,857
Karma: 174304428
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by WillyA View Post
My cover picture is a png file in images. I noticed that a lot of books have 'cover in the index. Mine doesn't It starts on what would be chapter 1The html Table of contents I generated, but it doesn't show.

I think I'm doing something fundamentally wrong.

So much for all the 'guides' on the web that says the cover should be an image file and MUST be called cover and it MUST be in images and ALL I need to do is tell Sigil 'Add cover' and voila. Well it doesn't work at all.
Adding the cover image to a html file does not automagically add the file to the table of contents in the toc.ncx/nav.xhtml file. That requires you to do some work.

The cover image must be an image file (Doh!). It does not need to be called cover.<image format>, it does not need to be anywhere other than not it MUST NOT be in the META-INF directory. A right click on the image file and clicking on Cover image will give the correct semantics.

If you are using Kobo kepub format, you are pretty much required to have every text file in the nav.xhtml (ePub3) or toc.ncx (ePub2) but otherwise, you could just have a single entry (Start is rather popular).
DNSB is offline   Reply With Quote