[tex4ht] How to control/optimize the number of times make4ht runs dvilualatex?

Nasser M. Abbasi nma at 12000.org
Thu Apr 21 23:01:50 CEST 2022


I have follow up question:

is the number of times one has to compile the latex file using
lualatex related and will be same as number of times one has
to compile it to HTML using tex4ht?

I mean, if I find that on one file, I need to run lualatex 3 times
to get all references and labels sorted out, does this mean
the same number of times would be needed for tex4ht?

Or not necessarily so? and these are not releated and can be different?

Reason I am asking, is that it is easy to count/find the
number of times needed to call lulatex. So I could use that number of
times, to also call tex4ht on same file.

--Nasser

On 4/19/2022 11:07 PM, Wojciech Myszka wrote:
> Dear Michal
>>
>> In the meantime, you can use something like this config file:
>>
> and this solves the problem.
> 
> Best regards
> Wojtek
> 
> wt., 19 kwi 2022 o 22:43 Michal Hoftich <michal.h21 at gmail.com> napisał(a):
> 
>> Hi Wojtek,
>>
>>
>>> I have got the perfect results.
>>>
>>> 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
>>>
>>> And this is strange because the .4tc file is updated, but the .4ct not?
>>>
>>> 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.
>>>
>>> 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)}.
>>
>> Ah, if latexmk needs the filename of .4tc file in the console, I can
>> add it to TeX4ht sources. In fact, I just did it now. In the meantime,
>> you can use something like this config file:
>>
>> \Preamble{xhtml}
>> \typeout{(\jobname.4tc)}
>> \begin{document}
>> \EndPreamble
>>
>> Best regards,
>> Michal
>>
> 
> 



More information about the tex4ht mailing list.