My book does not have numbered chapters, and it is typeset correctly, but in the ncx table of contents TeX4ebook provides the chapter number 0
before chapters in the main matter only. Here is my MWE:
\documentclass[10pt]{book}
\usepackage{titletoc} %fails if commented out
\usepackage{titlesec}
\usepackage{tex4ebook}
\setcounter{secnumdepth}{-2}% don't number parts or anything else
\begin{document}
\frontmatter
\chapter{Preface}
This is the preface.
\mainmatter
\chapter{One}
A chapter
\chapter{Two}
Another chapter
\backmatter
\chapter{Backmatter}
No chapter number here, either
\end{document}
And here is the .cfg file:
\Preamble{xhtml}
\CutAt{section}
\ConfigureMark{chapter}{} %has no effect either way
\begin{document}
\EndPreamble
"Preface" and "Backmatter" have no zero put in front in the ncx TOC, but "One" and "Two" do.
One thing I note as well is that there is a blank page at the beginning of the ebook, presumably because ebook readers put a page break between files. This is not a problem for me (and maybe not for anyone else) since my book has cover, copyright etc up front, but I just thought I'd mention it. Seems like it might be hard to "fix" and probably not worth it.
Many thanks, as always!