I neglected to mention, but should have, that I removed all trace of indexing from this sample, b/c it wasn't implicated in the most salient "broken refs" errors that showed up.
You wrote: > you need to use the special make4ht commands for the index I was not sure what you meant by this. Perhaps you meant that the build.lua and index.4ht needed to be present when tex4ebook is invoked? If not, could you explain how I should be using make4ht ? Thanks, --chet-- On Tue, Feb 25, 2025 at 12:58 PM Chet Murthy <murthy.c...@gmail.com> wrote: > 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} >