Hey Michal,

Thank you very much. It looks very promising. But…

There is some new(?) problem. Starting with test file:

\documentclass[]{article}
\begin{document}
\section{test}
test test
\tableofcontents
\end{document}

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)}.

But this is strange—sometimes some minor changes cause rebuilding also a
table of contents.

Regards

Wojtek

wt., 19 kwi 2022 o 21:04 Michal Hoftich <michal....@gmail.com> napisał(a):

> Hi Wojtek,
>
> > The .tmp file is multipurpose.
> >
> > After the latex run the .tmp file contains \def \Jobname{a} but further
> processing by make4ht internal routines changes the content to
> >
> > /* css.sty */
>
> I've changed the latexmk extension to save contents of the .tmp file
> before tex4ht execution. It then restores it's content. It seems to
> solve the latexmk issues.
>
> Best regards,
> Michal
>


-- 
---(___C'>

Reply via email to