View Single Post
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