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 07-16-2011, 06:02 PM   #1
JDawg
Junior Member
JDawg began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2011
Device: Kindle
Manual ToC makes duplicate chapters?

Hi all,
For a eBook project I am creating, in addition to the toc.ncx file I have a manually created Table of Contents at the beginning of my book. However, after I made the ToC, my file began displaying the last two chapters (seperate .xhtml documents) in my book twice. When I delete the ToC, this problem goes away. Is there anyway I could keep my Table of Contents and not have repeating documents in my .epub files? Thanks for any help.
JDawg is offline   Reply With Quote
Old 07-17-2011, 05:30 AM   #2
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: 2,749
Karma: 2117329
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
You need to give some more information there. Could you post your toc?
Toxaris is offline   Reply With Quote
 
Enthusiast
Old 07-17-2011, 07:38 AM   #3
JDawg
Junior Member
JDawg began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2011
Device: Kindle
Yep! Here is the table of contents I created for the beginning of the book.
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>toc.xhtml</title>
		<link href="template.css" rel="stylesheet" type="text/css"/>
	</head>
<body>
<div>
<p class="chapter-chaptertitle">Table of Contents</p>
<p class="body-sectionpara"><a href="Preface.xhtml">Preface</a><br />
<a href="Prologue-v2.xhtml">Prologue</a><br />
<a href="Ch1-asym.xhtml">Chapter One: Leadership and Beliefs</a><br />
<a href="Ch2-asym.xhtml">Chapter Two: Leading Without Controlling</a><br />
<a href="Ch3-asym.xhtml">Three: From I to We</a><br />
<a href="Ch4-asym-box.xhtml">Chapter Four: Leading from a False Premise</a><br />
<a href="Ch5-asym.xhtml">Chapter Five: Surrendering to the Leader Within</a><br />
<a href="Ch6-asym-box.xhtml">Chapter Six: Leaders Choose Again</a><br />
<a href="Ch7-asym-box.xhtml">Chapter Seven: Values and Principles Show the Way</a><br />
<a href="Ch8-asym.xhtml">Chapter Eight-The Power of Purpose</a><br />
<a href="Ch9-asym.xhtml">Chapter Nine: Engaging Others</a><br />
<a href="Ch10-asym.xhtml">Chapter Ten: Change Happens</a><br />
<a href="furtherresources.xhtml">Further Resources</a><br />
<a href="about.xhtml">About the Author</a><br />
</p></div>
</body>
JDawg is offline   Reply With Quote
Old 07-17-2011, 10:34 AM   #4
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,181
Karma: 539735
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by JDawg View Post
after I made the ToC, my file began displaying the last two chapters (seperate .xhtml documents) in my book twice. When I delete the ToC, this problem goes away.
The manual ToC looks fine. When you say "displaying the last two chapters (seperate .xhtml documents) in my book twice" do you mean the last two chapters are repeated as you page through the book? Or are they appearing twice in the generated (.ncx) ToC?
charleski is offline   Reply With Quote
Old 07-17-2011, 12:44 PM   #5
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: 2,749
Karma: 2117329
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
could you also place the toc.ncx file?
Toxaris is offline   Reply With Quote
Old 07-17-2011, 02:58 PM   #6
JDawg
Junior Member
JDawg began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2011
Device: Kindle
@charleski: I meant that they appeared twice as I scrolled through. Good clarification.
@Toxaris: The code isn't formatted at all, major props if you can wade through it.
Code:
<?xml version="1.0"?>
<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1"><head><meta name="dtb:uid" content="67eac3c8-a91c-5138-e129-a4c2afd9da8d"/><meta name="dtb:depth" content="1"/><meta name="dtb:totalPageCount" content="0"/><meta name="dtb:maxPageNumber" content="0"/></head><docTitle><text>The Inner-Work of Leadership</text></docTitle><navMap><navPoint id="navpoint-3" playOrder="1"><navLabel><text>Preface</text></navLabel><content src="Preface.xhtml"/></navPoint><navPoint id="navpoint-4" playOrder="2"><navLabel><text>Prologue</text></navLabel><content src="Prologue-v2.xhtml"/></navPoint><navPoint id="navpoint-5" playOrder="3"><navLabel><text>Chapter One: Leadership and Beliefs</text></navLabel><content src="Ch1-asym.xhtml"/></navPoint><navPoint id="navpoint-6" playOrder="4"><navLabel><text>Chapter Two: Leading Without Controlling</text></navLabel><content src="Ch2-asym.xhtml"/></navPoint><navPoint id="navpoint-7" playOrder="5"><navLabel><text>Chapter Three: From I to We</text></navLabel><content src="Ch3-asym.xhtml"/></navPoint><navPoint id="navpoint-8" playOrder="6"><navLabel><text>Chapter Four: Leading from a False Premise</text></navLabel><content src="Ch4-asym-box.xhtml"/></navPoint><navPoint id="navpoint-9" playOrder="7"><navLabel><text>Chapter Five: Surrendering to the Leader Within</text></navLabel><content src="Ch5-asym.xhtml"/></navPoint><navPoint id="navpoint-10" playOrder="8"><navLabel><text>Chapter Six: Leaders Choose Again</text></navLabel><content src="Ch6-asym-box.xhtml"/></navPoint><navPoint id="navpoint-11" playOrder="9"><navLabel><text>Chapter Seven: Values and Principles Show the Way</text></navLabel><content src="Ch7-asym-box.xhtml"/></navPoint><navPoint id="navpoint-12" playOrder="10"><navLabel><text>Chapter Eight-The Power of Purpose</text></navLabel><content src="Ch8-asym.xhtml"/></navPoint><navPoint id="navpoint-13" playOrder="11"><navLabel><text>Chapter Nine: Engaging Others</text></navLabel><content src="Ch9-asym.xhtml"/></navPoint><navPoint id="navpoint-14" playOrder="12"><navLabel><text>Chapter Ten: Change Happens</text></navLabel><content src="Ch10-asym.xhtml"/></navPoint><navPoint id="navpoint-15" playOrder="13"><navLabel><text>Further Resources</text></navLabel><content src="FurtherResources.xhtml"/></navPoint><navPoint id="navpoint-16" playOrder="14"><navLabel><text>About the Author</text></navLabel><content src="About.xhtml"/></navPoint></navMap></ncx>
JDawg is offline   Reply With Quote
Old 07-17-2011, 03:33 PM   #7
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,181
Karma: 539735
Join Date: Sep 2009
Device: PRS-505
Well, I can notice one thing that might be causing problems. In your manual ToC you have "furtherresources.xhtml" and "about.xhtml" whereas the ncx refers to "FurtherResources.xhtml" and "About.xhtml".
charleski is offline   Reply With Quote
Old 07-17-2011, 04:59 PM   #8
JDawg
Junior Member
JDawg began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2011
Device: Kindle

I can't believe I made such a simple, simple error. Thank you charleski. I had no idea that capitalization was so important. You saved me countless hours of pouring over code to no avail. Problem solved!
JDawg is offline   Reply With Quote
Old 07-17-2011, 09:12 PM   #9
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,402
Karma: 4544000
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by JDawg View Post

I can't believe I made such a simple, simple error. Thank you charleski. I had no idea that capitalization was so important. You saved me countless hours of pouring over code to no avail. Problem solved!
In Unix all file names are case sensitive and most eBook readers runs a form of Unix, Linux.
DaleDe is online now   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
.Epub to .Mobi--duplicate chapters generated? JDawg Calibre 0 07-15-2011 08:50 PM
Chapters & TOC jkolnick Conversion 0 05-26-2011 11:53 AM
TOC Chapters taraboom11 Calibre 4 03-03-2011 08:10 PM
azw to mobi: Not detecting chapters/page break at chapters and no TOC RachDvn Calibre 3 01-16-2011 09:53 AM
TOC not identifying all chapters shilpa Calibre 6 08-05-2009 11:29 AM


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


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