Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-31-2021, 01:47 PM   #1
Hortensia
Enthusiast
Hortensia began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Jul 2021
Device: Kindle Paperwhite, Kobo Libra 2
Too many table of contents

I am creating an ebook from a HTML file:
Code:
<html>
	<body>
		<h1>Table of Contents</h1>
		<p style="text-indent:0pt">
			<a href="Chapters_files_html\Chapter_001.html">1 - My first chapter</a><br/>
			<a href="Chapters_files_html\Chapter_002.html">2 - My second chapter</a><br/>
		</p>
	</body>
</html>
and using calibre ebook converter in a batch script to generate an epub
Code:
ebook-convert book.html %booktitle%.epub
The resulting epub contains all the files it should and a single TOC nicely formated but at the beginning of the epub.

When adding a book to calibre, my settings automatically convert it to azw3 and this generate a second TOC at the end of my ebook (which I need for ebook which do not have a TOC).

How can I have a single TOC at the end of the book in both format?
Hortensia is offline   Reply With Quote
Old 10-31-2021, 09:15 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,930
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://manual.calibre-ebook.com/faq...-in-mobi-files
kovidgoyal is offline   Reply With Quote
Old 11-06-2021, 01:09 PM   #3
Hortensia
Enthusiast
Hortensia began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Jul 2021
Device: Kindle Paperwhite, Kobo Libra 2
Thanks, I had read this section but not understood that I should apply it as well since I don't have mobi files. removing my own TOC works.
Hortensia is offline   Reply With Quote
Reply

Tags
table of contents


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table of Contents weberr Sigil 3 05-20-2013 09:42 AM
Table of Contents not being identified as Table of Contents openletter Conversion 2 10-19-2012 12:54 AM
Please, help with Table of Contents fe0642 Conversion 3 08-09-2011 12:23 PM
Table of Contents stevej46 Conversion 0 08-06-2011 02:46 PM
How to: table of contents wizzofoz Sigil 1 10-08-2009 08:22 AM


All times are GMT -4. The time now is 04:10 AM.


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