Michal, I have a new MWE (based on your last instructions) that exhibits a number of new errors. I'm attaching the contents of a directory with a Makefile; that directory contains the three scripts you've sent me, and the Makefile runs the build. And of course, a new "sample.tex" that elicits the errors below.
(1) When I run epubcheck ( v5.2.1, the latest ) on sample.epub, I get the first attached set of errors. (2) the htlatex run itself emits errors that seem to imply that it doesn't understand the latex code, even though that same code passes lualatex without errors. (3) Also, since this is supposed to be an MWE, I didn't try to preserve a -bunch- of errors of the form of #2, from all over the source code of my book. So it's possible there are a bunch more. This sample has a number of elements in it, and if I remove any one of them, it appears that at least one of the errors below disappears. But it was small enough that I figured I'd leave them in. Your advice as always greatly appreciated. --chet-- ==== ERROR(RSC-005): sample.epub/OEBPS/samplech1.html(12,37): Error while parsing file: Duplicate "one" ERROR(RSC-005): sample.epub/OEBPS/samplech1.html(12,100): Error while parsing file: Duplicate "x2-10001" ERROR(RSC-005): sample.epub/OEBPS/samplech1.html(13,44): Error while parsing file: Duplicate "one" ERROR(RSC-005): sample.epub/OEBPS/samplech1.html(13,61): Error while parsing file: Duplicate "x2-10001" ERROR(RSC-012): sample.epub/OEBPS/sample.html(11,262): Fragment identifier is not defined. ==== [ERROR] htlatex: Compilation errors in the htlatex run [ERROR] htlatex: Filename Line Message [ERROR] htlatex: ./sample.tex ? Undefined control sequence. [STATUS] htlatex: <- \else \HCode {</span>}\fi l.23 \end{ocaml} [ERROR] htlatex: Compilation errors in the htlatex run [ERROR] htlatex: Filename Line Message [ERROR] htlatex: ./sample.tex ? Undefined control sequence. [STATUS] htlatex: <- \else \HCode {</span>}\fi l.23 \end{ocaml} [ERROR] htlatex: Compilation errors in the htlatex run [ERROR] htlatex: Filename Line Message [ERROR] htlatex: ./sample.tex ? Undefined control sequence. [STATUS] htlatex: <- \else \HCode {</span>}\fi l.23 \end{ocaml}
Make:htlatex {} Make:xindex {} Make:htlatex {}
config.cfg
Description: Binary data
\documentclass[]{book} \usepackage[]{hyperref} \usepackage{listings} \newcounter{program} \renewcommand{\theprogram}{\arabic{program}} \newcommand\printprogram[1]{\theprogram\space #1\par} \newenvironment{program}[1]{\refstepcounter{program}\minipage{\textwidth}\printprogram{#1}}{\endminipage} \lstnewenvironment{ocaml}{\lstset{language=caml,escapechar=^}}{} \begin{document} Program~\ref{fig:label} (see page~\pageref{fig:label}) draws the Mandelbrot set (see figure~\ref{fig:mandelbrot}). \chapter{One} \begin{ocaml} foo \end{ocaml} C\footnote{text} \chapter{Two}\label{chap:debuter} \begin{figure}[h!] \centering foo \caption{Mandelbrot set.} \label{fig:mandelbrot} \end{figure} { \begin{figure}[tp] \begin{program}{Title} \label{fig:label} \lstinputlisting{/home/chet/Hack/Texlive/Install/README}% \end{program} \caption{Caption} %\label{fig:label} \end{figure} } \end{document} %%% Local Variables: %%% mode: latex %%% ispell-local-dictionary: "francais" %%% End:
Makefile
Description: Binary data
index.4ht
Description: Binary data