The following MWE shows the error with tex4ebook
named in the question, when running epubcheck
. It gives (in the MWE) 3 identical error messages:
\documentclass[a4paper]{report}
\usepackage[cmintegrals,cmbraces]{newtxmath}
\usepackage{ebgaramond-maths}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[rm,sc,small]{titlesec}
\renewcommand{\thesection}{\arabic{section}}
\titleformat{\section}[display]%
{}%
{\Huge\centering\textbf{\thesection}}%
{0.2\textheight}{}%
[]
\begin{document}
\clearpage
\section{}
Some first little poem.
\clearpage
\section{}
Some second little poem.
\clearpage
\section{}
Some third little poem.
\end{document}
First I thought it has to do with the empty sectioning text, but that is not the problem. The error remains when giving a section-title.