<div dir="ltr">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.<div><br></div><div>You wrote:</div><div><br></div><div>> you need to use the  special make4ht commands for the index</div><div><br></div><div>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 ?</div><div><br></div><div>Thanks,</div><div>--chet--</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Feb 25, 2025 at 12:58 PM Chet Murthy <<a href="mailto:murthy.chet@gmail.com">murthy.chet@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Michal,<div><br></div><div>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.</div><div><br></div><div>(1) When I run epubcheck ( v5.2.1, the latest ) on sample.epub, I get the first attached set of errors.</div><div><br></div><div>(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.</div><div><br></div><div>(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.</div><div><br></div><div>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.</div><div><br></div><div>Your advice as always greatly appreciated.</div><div>--chet--</div><div><br></div><div>====</div><div>ERROR(RSC-005): sample.epub/OEBPS/samplech1.html(12,37): Error while parsing file: Duplicate "one"<br>ERROR(RSC-005): sample.epub/OEBPS/samplech1.html(12,100): Error while parsing file: Duplicate "x2-10001"<br>ERROR(RSC-005): sample.epub/OEBPS/samplech1.html(13,44): Error while parsing file: Duplicate "one"<br>ERROR(RSC-005): sample.epub/OEBPS/samplech1.html(13,61): Error while parsing file: Duplicate "x2-10001"<br>ERROR(RSC-012): sample.epub/OEBPS/sample.html(11,262): Fragment identifier is not defined.<br></div><div><br></div><div>====</div><div>[ERROR]   htlatex: Compilation errors in the htlatex run<br>[ERROR]   htlatex: Filename     Line    Message<br>[ERROR]   htlatex: ./sample.tex       ?        Undefined control sequence.<br>[STATUS]  htlatex:  <- \else \HCode {</span>}\fi l.23 \end{ocaml}<br>[ERROR]   htlatex: Compilation errors in the htlatex run<br>[ERROR]   htlatex: Filename     Line    Message<br>[ERROR]   htlatex: ./sample.tex       ?        Undefined control sequence.<br>[STATUS]  htlatex:  <- \else \HCode {</span>}\fi l.23 \end{ocaml}<br>[ERROR]   htlatex: Compilation errors in the htlatex run<br>[ERROR]   htlatex: Filename     Line    Message<br>[ERROR]   htlatex: ./sample.tex       ?        Undefined control sequence.<br>[STATUS]  htlatex:  <- \else \HCode {</span>}\fi l.23 \end{ocaml}</div></div>
</blockquote></div>