|04-14-2014, 11:28 PM||#1|
Join Date: Mar 2014
TOC troubles in Kindle Previewer
Each chapter listed in my TOC is appearing on its own separate page. I observed this error in Kindle Previewer as well as the previewer in KDP when going to test prior to publishing to Amazon (in MOBI). (no issue with the ePub for iBook)
When I checked Sigil YouTube movies, my code appears to be correct. So what is getting lost in translation? See code below. Does it want me to only set the h1 tag once with breaks between each chapter? I'm sure I originally had that but did not like the appearance as when text wrapped the spacing was identical regardless of if a hard break or a wrap (which didn't look so good). When I finally re-coded like this, and tested in iBooks, that did the trick.
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
<link href="../Styles/Style0001.css" rel="stylesheet" type="text/css" />
<title>Table of Contents</title>
<h2><i>Table of Contents – Part I</i></h2>
<hr class="hline_gradient" />
<h1><a href="../Text/chapter_1.xhtml">Chapter 1</a></h1>
<h1><a href="../Text/chapter_2.xhtml">Chapter 2</a></h1>
<h1><a href="../Text/chapter_3.xhtml">Chapter 3</a></h1>
<h1><a href="../Text/chapter_4.xhtml">Chapter 4</a></h1>
<h1><a href="../Text/chapter_5.xhtml">Chapter 5</a></h1>
Any advice to make these all appear on the same TOC page in the MOBI format?
|04-16-2014, 09:13 AM||#2|
Join Date: Jan 2011
Device: Kindle 3, PaperWhite 2
The items in your TOC should not be styled as an h1 - that is causing the page breaks. Use a regular paragraph, styled as you need. Something like this:
<p class="toc1"><a href="../Text/preface.xhtml">Preface</a></p>
<p class="toc1"><a href="../Text/chapter_1.xhtml">Chapter 1</a></p>
This will keep the entries on one page.
|04-16-2014, 09:13 AM||#3|
Join Date: Nov 2006
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
Please post in the correct forum. Moved to the Kindle file formats section.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|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|
|Kindle Previewer not seeing TOC||John123||Workshop||5||05-08-2013 05:37 AM|
|toc works in Previewer, but not after publishing||DigitalNomad||Kindle Formats||6||10-15-2012 03:02 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|
|TOC works in Previewer but not in Kindle?||Lazer||Kindle Formats||3||05-01-2011 04:30 PM|