[tex4ht] problem with slow compilation of large latex file with large math content

Reinhard Kotucha reinhard.kotucha at web.de
Sat Mar 26 00:32:06 CET 2016

On 2016-03-25 at 16:53:40 -0500, Nasser M. Abbasi wrote:

 > I have lots of large latex files, with lots of pages in
 > them with large number of equations, generated by
 > computer algebra systems. I also have lots of includegraphics
 > in these files for svg images.
 > I noticed that tex4ht becomes very slow as number of pages
 > increase. This is becoming so bad, that I ended up
 > buying new PC and installing Linux on it just in the hope
 > it will speed things up (I was using Vbox on windows,
 > then I tried cygwin on windows).

On Linux you could run tex4ht within strace(1).

strace is a program which traces system calls and its output can give
you a hint _where_ tex4ht spends so much time.

Please consult the manual page.

>From https://sourceforge.net/projects/strace :

 | strace is a diagnostic, debugging and instructional userspace
 | tracer for Linux. It is used to monitor interactions between
 | userspace processes and the Linux kernel, which include system
 | calls, signal deliveries, and changes of process state. The
 | operation of strace is made possible by the kernel feature known as
 | ptrace.


Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de

More information about the tex4ht mailing list