Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-24-2013, 08:09 PM   #1
reddog1983
Junior Member
reddog1983 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2013
Device: Amazon Kindle Paperwhite
Table Of Contents Shows Only One Chapter

When going to the Go To section on a Kindle (Paperwhite or Fire), all the chapters have merged to one chapter. The HTML file has every chapter separated, but it is not showing up correctly when converting under Calibre. I have tried correcting this manually and using the Edit TOC feature, but nothing works. I do not know if the issue is with the codes I'm using, or if there is a glitch in Calibre. This problem does not occur with every book; some books convert correctly. Please help.

Here is the code:

Code:
<h2 title=style="page-break-before:always" align="center"> <i>Table Of Contents </i> </h2>
<a href="#one"> <i>One</i></a>
<a href="#two"> <i>Two</i>
<a href="#three"> <i>Three</i>
reddog1983 is offline   Reply With Quote
Old 11-24-2013, 08:34 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,957
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by reddog1983 View Post
When going to the Go To section on a Kindle (Paperwhite or Fire), all the chapters have merged to one chapter. The HTML file has every chapter separated, but it is not showing up correctly when converting under Calibre. I have tried correcting this manually and using the Edit TOC feature, but nothing works. I do not know if the issue is with the codes I'm using, or if there is a glitch in Calibre. This problem does not occur with every book; some books convert correctly. Please help.

Here is the code:

Code:
<h2 title=style="page-break-before:always" align="center"> <i>Table Of Contents </i> </h2>
<a href="#one"> <i>One</i></a>
<a href="#two"> <i>Two</i>
<a href="#three"> <i>Three</i>
Those are back ref anchors ONLY. There is no forward (href=) at all

This is junk (and not a normal calibre provided HTML TOC)
theducks is offline   Reply With Quote
Advert
Old 11-24-2013, 08:56 PM   #3
reddog1983
Junior Member
reddog1983 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2013
Device: Amazon Kindle Paperwhite
If what I wrote is junk, could you please tell me what is the proper way to create an HTML TOC? I've looked all over the internet for an alternative solution, and I couldn't find any.
reddog1983 is offline   Reply With Quote
Old 11-24-2013, 10:24 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,957
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by reddog1983 View Post
If what I wrote is junk, could you please tell me what is the proper way to create an HTML TOC? I've looked all over the internet for an alternative solution, and I couldn't find any.
Below is one way to do a HTML TOC (this one has been edited with Sigil)
In this one, the fragments are redundant as I already split by chapters so a TOF landing is default

Calibre conversion can create one if certain keyword are present.

Spoiler:

Code:
 <h2 class="sgc-1 sigil_not_in_toc">Plan B</h2>

  <h2 class="sgc-2" id="sigil_toc_id_3">Table of Contents</h2>
Green is the Link, Blue is the visible. The rest is mostly formatting
  <blockquote>
    <p><a class="sgc-3" href="../Text/1587870215__p__split_1.html#Chap_1">Liad: Department of Interior Command Headquarters</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_2.html#Chap_2">Standard Year 1393 : Vandar Orbit and Jump</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_3.html#Chap_3">Delgado: Bjornson—Bellevale College of Art and Sciences</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_4.html#Chap_4">Lytaxin: Approaching Erob</a><br />
    <br />
    <a href="../Text/1587870215__p__split_5.html#Chap_5"><b class="sgc-4">Dutiful Passage</b><b>: In Orbit</b></a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_6.html#Chap_6">Lytaxin: Erob's Clanhouse</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_7.html#Chap_7">14th Conquest Corps: Lytaxin</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_8.html#Chap_8">Liad: Department of Interior : Command Headquarters</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_9.html#Chap_9">Shaltren: Juntavas Headquarters</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_10.html#Chap_10">Lufkit: 358 Epling Street</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_11.html#Chap_11">Lufkit: Lufkit Spaceport</a><br />
    <br />
    <a href="../Text/1587870215__p__split_12.html#Chap_12"><b class="sgc-4">Dutiful Passage</b><b>: Jump</b></a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_13.html#Chap_13">Lytaxin: Erob's Combat Practice Grounds</a><br />
    <br />
    <a href="../Text/1587870215__p__split_14.html#Chap_14"><b class="sgc-4">Nimbledrake</b><b>: Between Planets</b></a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_15.html#Chap_15">Erob's Hold: Freeze-Dry Prison</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_16.html#Chap_16">Lufkit: Epling Street</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_17.html#Chap_17">Erob's Hold : Practice Grounds</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_18.html#Chap_18">Liad: Department of Interior Command Headquarters</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_19.html#Chap_19">Liad: Jelaza Kazone</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_20.html#Chap_20">Erob's Hold: Practice Grounds</a><br />
    <br />
    <a href="../Text/1587870215__p__split_21.html#Chap_21"><b class="sgc-4">Dutiful Passage</b><b>: In Jump</b></a><br />
    <br />
    <a href="../Text/1587870215__p__split_22.html#Chap_22"><b class="sgc-4">Nimbledrake</b><b>: Ending Jump</b></a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_23.html#Chap_23">Lufkit: Merc Hall</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_24.html#Chap_24">Lytaxin War Zone: Altitude: 12 kilometers</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_25.html#Chap_25">Erob's Hold: Practice Grounds</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_26.html#Chap_26">Fendor: Mercenary Headquarters</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_27.html#Chap_27">Erob's Boundary : Quarry War Zone</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_28.html#Chap_28">Bordering Erob's Hold: Behind Enemy Lines</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_29.html#Chap_29">Liad: Jelaza Kazone</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_30.html#Chap_30">Erob's Boundary: War Zone</a><br />
    <br />
    <a href="../Text/1587870215__p__split_31.html#Chap_31"><b class="sgc-4">Dutiful Passage</b><b>: Lytaxin Orbit</b></a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_32.html#Chap_32">Lytaxin: War Zone</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_33.html#Chap_33">War Zone</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_34.html#Chap_34">Liad: Department of Interior Command Headquarters</a><br />
    <br />
    <a class="sgc-3" href="../Text/1587870215__p__split_35.html#Chap_35">Lytaxin: Erob's Clan House</a><br />
    <br />
    <a class="sgc-3" href="../Text/excuse.html#Chap_36">Authorial Denial</a><br />
    <br /></p>
  </blockquote>
theducks is offline   Reply With Quote
Old 11-24-2013, 11:22 PM   #5
reddog1983
Junior Member
reddog1983 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2013
Device: Amazon Kindle Paperwhite
Your above method worked, but with one problem: now I have duplicate chapters showing on the Go To page.

How do I attach the links to the chapters within the book?
reddog1983 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table of contents also shows up at the end of the book BasicGreatGuy Sigil 3 01-10-2013 10:02 AM
Odyssey How to use table of contents to start reading from chapter not sub section? therobyouknow Bookeen 7 10-07-2012 10:10 AM
Chapter Detection/Table of Contents Tutorial ldolse Conversion 0 04-13-2011 06:07 AM
Repeated Chapter Headings in Kobo Table of Contents capsolo Sigil 5 06-20-2010 03:09 AM
First chapter of table of contents not working Amalthia Calibre 3 09-11-2008 02:46 PM


All times are GMT -4. The time now is 09:37 PM.


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