<div dir="ltr"><div>Hi Chet,</div><div><br></div><div>I am not sure why this happens, but I can confirm it happens. I am sure the Index package used to work last year, so this seems like a regression. Try to put the attached version of index.4ht to the directory with your document. If it works, I will fix also TeX4ht sources, so it get to TeX Live.</div><div><br></div><div>Also, to actually get the index, you will need a make4ht build file that calls makeindex or xindex. See <a href="https://www.kodymirus.cz/tex4ht-doc/Howto.html#indexing">https://www.kodymirus.cz/tex4ht-doc/Howto.html#indexing</a> <br></div><div>The attached build file uses xindex. It seems to work, if I add \printindex to the document,</div><div><br></div><div>Best regards,</div><div>Michal</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Feb 24, 2025 at 11:03 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"><div dir="ltr">It seems I've encountered a problem using tex4ebook with the latest version of Texlive. I installed it this AM, and here is the version information (Googling turned this up, but if this isn't the right version info, please let me know and I'll send better info (and make a note of it)).</div><div dir="ltr"><br></div><div>The first file (mwe.tex) produces a "TeX capacity exceeded, sorry [input stack size=10000]." error.</div><div><br></div><div>If I remove a single line (to yield mwe2.tex), I get lots of syntax errors, none of which are produced by lualatex.</div><div dir="ltr"><br></div><div dir="ltr"><div>====</div><div>Files attached:</div><div><br></div><div>config.cfg: tex4ebook config, obtained from Michal</div><div>mwe.tex: MWE for the problem</div><div>mwe2.tex: MWE for the second problem</div><div>====</div><div>Version info:</div><div><br></div><div>$ htlatex --version<br>This is pdfTeX, Version 3.141592653-2.6-1.40.27 (TeX Live 2025) (preloaded format=latex)<br></div><div><br> tex --version<br>TeX 3.141592653 (TeX Live 2025)<br></div><div>====</div><div>Synopsis: It looks like a bad interaction between htlatex, urls, and indexes.  I'm sorry I was unable to get this MWE any smaller, but literally removing any element that was left made it go thru OK.  Also, the main error happened regardless of whether I ran:</div><div><br></div><div>$ tex4ebook -c config.cfg working.tex</div><div><br></div><div>or</div><div><br></div><div>$ tex4ebook working.tex</div><div><br></div><div>But I got errors from config.cfg (also attached) with the first command.</div><div><br></div><div>====</div><div>Error output:</div><div><br></div><div>tex4ebook -c config.cfg working.tex<br>[STATUS]  tex4ebook: Conversion started<br>[STATUS]  tex4ebook: Input file: working.tex<br>[ERROR]   htlatex: Compilation errors in the htlatex run<br>[ERROR]   htlatex: Filename     Line    Message<br>[ERROR]   htlatex: ./config.cfg         ?        LaTeX Error: Command \printprogram undefined in `config.cfg'.<br>[STATUS]  htlatex:  <- Type  H <return>  for immediate help. ...                                             <br>[ERROR]   htlatex: ./config.cfg         ?        LaTeX Error: Missing \begin{document} in `config.cfg'.<br>[STATUS]  htlatex:  <- Type  H <return>  for immediate help. ...                                             <br>[ERROR]   htlatex: ./config.cfg         ?        Undefined control sequence.<br>[STATUS]  htlatex:  <- "> l.17          {\start:LstLn \HCode{<span class="label">}}% The control sequence at the end of the top line<br>[ERROR]   htlatex: ?    ?        Argument of \idx:extI has an extra }.<br>[STATUS]  htlatex:  <- \par l.16 ...package manager, \texttt{opam}\index{opam} . I've run across a `}' that doesn't seem to match anything.<br>[ERROR]   htlatex: ?    ?        Paragraph ended before \idx:extI was complete.<br>[STATUS]  htlatex:  <- \par l.16 ...package manager, \texttt{opam}\index{opam} . I suspect you've forgotten a `}', causing me to apply this<br>[ERROR]   htlatex: ?    ?        TeX capacity exceeded, sorry [input stack size=10000].<br>[STATUS]  htlatex:  <- {\@par } l.16 ...package manager, \texttt{opam}\index{opam} . If you really absolutely need more capacity,<br>[FATAL]   make4ht-lib: Fatal error. Command htlatex returned exit code 1</div><div><br></div></div></div>
</blockquote></div>