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?