For the Kindle book I'm producing, I would like to have the .ncx ebook table of contents and an html table of contents as part of the book.
However, TeX4ebook doesn't include the html TOC (in this example, toctestli1.html
) in the epub. Is there a way to get it to do so?
Here is my MWE:
\documentclass[]{book}
\begin{document}
\tableofcontents
\chapter{One}
This is one\par
tra la la\par
\chapter{Two}
This is two\par
boodledy-boodledy\par
\end{document}
Using this config file:
\Preamble{xhtml}
\CutAt{chapter}
\begin{document}
\EndPreamble
(Incidentally, tex4ebook seems to just discard the html toc, because it will include subsections in the .ncx toc, even when they are excluded from the html toc)
Also, I do not have enough reputation to add TeX4ebook as a tag, but perhaps someone else could do so? I think I will have a number of other questions related to it. Thanks!