W
Wilfried
Hello all,
I contribute to the latex2rtf converter project by compiling the DOS /
Windows port.
I'd like to get a hint how to debug the following problem (or, even
better, to solve it).
The program is written in C with command line interface and works as
intended under Mac OSX, Linux, cygwin and Windows (MinGW compiler).
I only have problems when a lot of equations are to be converted to
bitmaps.
The process is as follows:
- latex2rt.exe writes a LaTeX snippet to a disk file
- latex2rt.exe issues a SYSTEM call which starts bash
(from http://sourceforge.net/projects/win-bash/ )
- - which runs the shell script latex2png
- - which
- - - runs some shell utilities from
http://sourceforge.net/projects/gnuwin32/
- - - calls LaTeX (MikTeX) to convert .tex to .dvi
- - - calls dvips (MikTeX) to convert .dvi to .eps
- - - calls ImageMagick (Windows version) to convert .eps to .png
- - - calls ImageMagick to crop the .png
- latex2rt.exe reads the .png file and includes it in the rtf output.
The processing stops under XP
- when invoked from a freshly opened command prompt, after converting at
most about 600 equations (sufficient for most documents),
- but when some other commands were run in the command prompt before
invoking latex2rtf, it stops after about 100 equations.
- If the command prompt is opened from the windows GUI (l2rshell.exe),
it also stops after fewer equations.
- If additional debug output is written to stderr (i.e. the command
prompt), it stops after about 8 equations.
Under Vista, the number of successfully converted equations is generally
lower than under XP.
Interestingly, when running in cygwin under Vista, an error message is
issued: "... bash.exe: *** fatal error - couldn't allocate heap ..."
I read
http://wikis.sun.com/display/OpenJdkBuilds/Known+OpenJDK+Build+Problems
(scroll down to "Windows CYGWIN Problems")
and also looked at
http://cygwin.com/faq/faq.using.html#faq.using.bloda
so I tried with (temporarily) uninstalling the virus scanner, but this
didn't help.
The Windows port (including installer) and the source (platform
independent) are on
http://sourceforge.net/projects/latex2rtf/
latex2rtf-win package, version 1.9.20, pre-release
Many thanks for any hint how to debug this.
I contribute to the latex2rtf converter project by compiling the DOS /
Windows port.
I'd like to get a hint how to debug the following problem (or, even
better, to solve it).
The program is written in C with command line interface and works as
intended under Mac OSX, Linux, cygwin and Windows (MinGW compiler).
I only have problems when a lot of equations are to be converted to
bitmaps.
The process is as follows:
- latex2rt.exe writes a LaTeX snippet to a disk file
- latex2rt.exe issues a SYSTEM call which starts bash
(from http://sourceforge.net/projects/win-bash/ )
- - which runs the shell script latex2png
- - which
- - - runs some shell utilities from
http://sourceforge.net/projects/gnuwin32/
- - - calls LaTeX (MikTeX) to convert .tex to .dvi
- - - calls dvips (MikTeX) to convert .dvi to .eps
- - - calls ImageMagick (Windows version) to convert .eps to .png
- - - calls ImageMagick to crop the .png
- latex2rt.exe reads the .png file and includes it in the rtf output.
The processing stops under XP
- when invoked from a freshly opened command prompt, after converting at
most about 600 equations (sufficient for most documents),
- but when some other commands were run in the command prompt before
invoking latex2rtf, it stops after about 100 equations.
- If the command prompt is opened from the windows GUI (l2rshell.exe),
it also stops after fewer equations.
- If additional debug output is written to stderr (i.e. the command
prompt), it stops after about 8 equations.
Under Vista, the number of successfully converted equations is generally
lower than under XP.
Interestingly, when running in cygwin under Vista, an error message is
issued: "... bash.exe: *** fatal error - couldn't allocate heap ..."
I read
http://wikis.sun.com/display/OpenJdkBuilds/Known+OpenJDK+Build+Problems
(scroll down to "Windows CYGWIN Problems")
and also looked at
http://cygwin.com/faq/faq.using.html#faq.using.bloda
so I tried with (temporarily) uninstalling the virus scanner, but this
didn't help.
The Windows port (including installer) and the source (platform
independent) are on
http://sourceforge.net/projects/latex2rtf/
latex2rtf-win package, version 1.9.20, pre-release
Many thanks for any hint how to debug this.