Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-24-2013, 11:57 AM   #1
IanSR
Junior Member
IanSR began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2013
Device: Amazon kindle 3
How to move toc go the beginning of epub file

Hello
I am having difficulty uploading an ePub file to Smashwords.
I use Coffeecup HTML editor and Calibre x64
Every time I upload the file to Smashwords that has been generated using Calibre, I get the message
"Please move the Table of Contents to the front of the book."

I have moved the HTML code to the front of the book just before the Title page and still I get the message.
When I view the ePub using Adobe Digital editions the clickable TOC is at the front of the book before the Title page.

Can anyone help.

Kind regards
IanSR is offline   Reply With Quote
Old 04-26-2013, 04:11 PM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,782
Karma: 5137308
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
This is certainly not the place for this question. This forum is about uploads and dowloads of eBooks to this site. I have moved the thread.
DaleDe is offline   Reply With Quote
Old 05-02-2013, 08:37 PM   #3
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Quote:
Originally Posted by IanSR View Post
Hello
I am having difficulty uploading an ePub file to Smashwords.
I use Coffeecup HTML editor and Calibre x64
Every time I upload the file to Smashwords that has been generated using Calibre, I get the message
"Please move the Table of Contents to the front of the book."

I have moved the HTML code to the front of the book just before the Title page and still I get the message.
When I view the ePub using Adobe Digital editions the clickable TOC is at the front of the book before the Title page.

Can anyone help.

Kind regards
When moving the epub element there are 2 places you need to change.

Firstly move the code which relates to the TOC in the TOC.NCX file to be in the correct order.

Then you also need to fix the playorder numbering so it's concurrent

Then in your content.opf file to need to change the order in the "Spine" section.

I'd also add this code in the content.opf file
Between the spine section and the close package </package>

PHP Code:
  </spine>
<
guide>
<
reference type="toc" title="Table of Contents" href="whateveryoucalledyourTOCfile.xhtml"/>
</
guide>
</
package
Adjust is offline   Reply With Quote
Old 05-02-2013, 09:04 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,533
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by Adjust View Post
When moving the epub element there are 2 places you need to change.

Firstly move the code which relates to the TOC in the TOC.NCX file to be in the correct order.

Then you also need to fix the playorder numbering so it's concurrent

Then in your content.opf file to need to change the order in the "Spine" section.

I'd also add this code in the content.opf file
Between the spine section and the close package </package>

PHP Code:
  </spine>
<
guide>
<
reference type="toc" title="Table of Contents" href="whateveryoucalledyourTOCfile.xhtml"/>
</
guide>
</
package
Please, in the NCX if there is an entry to an inline ToC, please remove it. It's not needed. You are already at the ePub's ToC.
JSWolf is offline   Reply With Quote
Old 05-02-2013, 09:12 PM   #5
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Unless you have a TOC inside the job, like a detailed TOC
Adjust is offline   Reply With Quote
Old 05-02-2013, 10:25 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,533
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by Adjust View Post
Unless you have a TOC inside the job, like a detailed TOC
I've never seen an internal ToC that was detailed enough to warrant a contents link in the ncx. Besides, once you are at the ncx, you have a ToC in front of you. Even if the internal ToC is detailed, you won't be jumping to it but using the ncx.
JSWolf is offline   Reply With Quote
Old 05-02-2013, 11:06 PM   #7
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Quote:
Originally Posted by JSWolf View Post
I've never seen an internal ToC that was detailed enough to warrant a contents link in the ncx. Besides, once you are at the ncx, you have a ToC in front of you. Even if the internal ToC is detailed, you won't be jumping to it but using the ncx.
Agreed... Although some might argue it's for muti purpose epub ready for mobi conversion
Adjust is offline   Reply With Quote
Old 05-02-2013, 11:10 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,533
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by Adjust View Post
Agreed... Although some might argue it's for muti purpose epub ready for mobi conversion
You still don't need the contents link in the ncx as Kindlegen totally ignores the contents link when making the Mobi.
JSWolf is offline   Reply With Quote
Old 05-03-2013, 02:43 AM   #9
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,183
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
If he wants an additional TOC, he wants an additional TOC. Don't force your ideas on others. You can suggest, but do not force please.

I would suggest not using Calibre for the ePUB conversion. It is a great library management tool, but a mediocre conversion tool. It generates ugly code that easily can go wrong. A lot of the good ePUB makers are using Sigil to create ePUB.
Toxaris is offline   Reply With Quote
Old 05-03-2013, 03:01 AM   #10
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
I use InDesign for mine... as it's the main production tool
Adjust is offline   Reply With Quote
Old 05-03-2013, 03:35 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,533
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by Toxaris View Post
If he wants an additional TOC, he wants an additional TOC. Don't force your ideas on others. You can suggest, but do not force please.
You totally misread. I wasn't suggesting dumping the internal ToC but suggesting dumping an entry in the NCX ToC that references the internal ToC. That way we don't have a contents entry in the ToC when we are already at the ToC.
JSWolf is offline   Reply With Quote
Old 05-03-2013, 04:21 PM   #12
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,316
Karma: 4963983
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
But what if the internal ToC has some additional information (chapter summaries, illustrations, original dates and authors, etc.), why deny the user the chance of going directly to this "extended" ToC from the simple NCX ToC?
Jellby is offline   Reply With Quote
Old 05-03-2013, 06:26 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,533
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by Jellby View Post
But what if the internal ToC has some additional information (chapter summaries, illustrations, original dates and authors, etc.), why deny the user the chance of going directly to this "extended" ToC from the simple NCX ToC?
I have yet to see such an extended ToC. Can you show me an ePub that has such? And if it has such, leave in the contents link. But in most cases, it won't so take out the contents link.
JSWolf is offline   Reply With Quote
Old 05-03-2013, 06:48 PM   #14
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,782
Karma: 5137308
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by Jellby View Post
But what if the internal ToC has some additional information (chapter summaries, illustrations, original dates and authors, etc.), why deny the user the chance of going directly to this "extended" ToC from the simple NCX ToC?
I do have some of this in my inline TOC's that were taken from some books where I tried to match the book content. However it is usually only a page away from the Cover and the cover is usually a choice in the ncx so it is really easy to find.

Dale
DaleDe is offline   Reply With Quote
Old 05-04-2013, 02:45 PM   #15
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,316
Karma: 4963983
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
I've never seen an internal ToC that was detailed enough to warrant a contents link in the ncx. Besides, once you are at the ncx, you have a ToC in front of you. Even if the internal ToC is detailed, you won't be jumping to it but using the ncx.
A ToC with chapter summaries: The American Claimant
A ToC with dates, and an alternate ToC with different ordering: Savage Stories of Conan

whether or not a reader might be interested in jumping to one of these from somewhere else in the book, that's not for me to decide
I guess that's more likely to happen in non-fiction (or rather non-narrative) works, though.
Jellby is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC at the beginning or end? sassanik Writers' Corner 15 08-16-2012 07:08 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
TOC question re Mobipocket file from ePub via Calibre MichaelGray Kindle Formats 0 02-26-2010 08:53 AM
Fb2 Input (Do not insert a ToC at the beginning) Garfunkel Calibre 0 10-08-2009 02:49 PM


All times are GMT -4. The time now is 10:32 PM.


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