Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 01:42 PM   #1
Shohreh
Addict
Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.
 
Posts: 269
Karma: 356710
Join Date: Jan 2016
Location: France
Device: none
Question [SOLVED] Why no ToC?

Hello,

After using Pandoc to turn a web page into an EPUB…

Code:
pandoc -f html -t epub3 --toc --epub-title-page=false --metadata=title="My Title" --metadata=author="My Author" -o output.epub https://www.acme.com
… I tried Sigil to add a ToC since Pandoc was unable to.

While the ToC is displayed in Sigil after using Tools > Table Of Contents > Generate Table Of Contents, it doesn't in either SumatraPDF or my Kobo.

What am I doing wrong?

Thank you.
Attached Thumbnails
Click image for larger version

Name:	Sigil_ToC.png
Views:	9
Size:	121.6 KB
ID:	227176  

Last edited by Shohreh; Today at 01:55 PM.
Shohreh is offline   Reply With Quote
Old Today, 01:46 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 10,182
Karma: 7640000
Join Date: Nov 2009
Device: many
You have created an Epub2 whose TOC is stored in the ncx xml file. The reader normally has a toc tool or menu that reads it.

If you want, you can use Sigil to create an HTML Toc as well.

Or create an epub 3 whose TOC is stored in a nav xhtml document which is user viewable by default.
KevinH is offline   Reply With Quote
Advert
Old Today, 01:55 PM   #3
Shohreh
Addict
Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.
 
Posts: 269
Karma: 356710
Join Date: Jan 2016
Location: France
Device: none
Thanks for the info.

It worked by telling Pandoc to save it as epub2, and then adding the ToC in Sigil. I don't know if the problem lies in the Kobo Clara or my wrongly using Sigil.

Code:
pandoc -f html -t epub2 --toc --epub-title-page=false --metadata=title="My Title" --metadata=author="My Author" -o output.epub https://www.acme.com
Shohreh is offline   Reply With Quote
Old Today, 01:58 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,902
Karma: 212736631
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
If you're testing on devices/apps that don't officially support epub3, you may need to use Sigil to manually create an ncx from the nav document for backward compatibility with epub2 readers. For conversion/creation purposes, the "Toc" in an epub3 is the NAV document. In epub2, it's the NCX.
DiapDealer is offline   Reply With Quote
Old Today, 02:00 PM   #5
Shohreh
Addict
Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.Shohreh ought to be getting tired of karma fortunes by now.
 
Posts: 269
Karma: 356710
Join Date: Jan 2016
Location: France
Device: none
Thank you
Shohreh is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple HTML files w/ TOC to MOBI, not added in order listed in TOC dysfunction Conversion 3 01-03-2014 01:40 AM
Ho do I create a TOC for ePub which does convert to an active TOC in Kindle Previewer K-Thom Calibre 1 09-24-2013 07:32 PM
Kindler previewer not recognizing toc.ncx file, my html toc, or the start point... petercrowell Kindle Formats 2 05-01-2012 09:14 AM
Use Regex to Code an Inline TOC, from an External TOC's .ncx File mostlynovels ePub 2 03-16-2011 01:15 PM
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working Magitek LRF 0 05-06-2009 02:25 PM


All times are GMT -4. The time now is 05:08 PM.


MobileRead.com is a privately owned, operated and funded community.