<div dir="ltr">Dear Michal<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In the meantime, you can use something like this config file:<br></blockquote><div>and this solves the problem.</div><div><br></div><div>Best regards <br></div><div>Wojtek</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 19 kwi 2022 o 22:43 Michal Hoftich <<a href="mailto:michal.h21@gmail.com">michal.h21@gmail.com</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Wojtek,<br>
<br>
<br>
> I have got the perfect results.<br>
><br>
> But after changing \section{test} into \section{Test test} and using latexmk extension, after one latex run the main content in the HTML file is updated, but the table of contents—is not. This is probably(?) caused by fact that .toc file is not produced by tex4ht<br>
><br>
> And this is strange because the .4tc file is updated, but the .4ct not?<br>
><br>
> On the other hand, making major changes to the source file (adding/removing another section) — rebuilds the document. The minor change — (in section title) leaves the table of contents untouched.<br>
><br>
> It seems that latexmk does not recognize file .4tc as generated during compilation. The hint in latexmk documentation for solving situation, that latexmk won’t notice a dependency on a file, bar.baz say is to add (in the source) \typeout{(bar.baz)}.<br>
<br>
Ah, if latexmk needs the filename of .4tc file in the console, I can<br>
add it to TeX4ht sources. In fact, I just did it now. In the meantime,<br>
you can use something like this config file:<br>
<br>
\Preamble{xhtml}<br>
\typeout{(\jobname.4tc)}<br>
\begin{document}<br>
\EndPreamble<br>
<br>
Best regards,<br>
Michal<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">---(___C'></div>