testing latex2rtf 1.9.20
Wilfried Hennings <[email protected]> Fri, 20 Nov 2009 23:38:28 +0100
| Newsgroups | gmane.comp.tex.latex.latex2rtf.devel,gmane.comp.tex.latex.latex2rtf.general |
|---|---|
| Message-ID | <[email protected]> |
Hello all,
we are close to publishing latex2rtf release 1.9.20 but I found a bug
which under Windows prevents converting more than a certain number of
equations to bitmaps (latex2rtf option -M12).
The number depends on the operating system (WinXP vs. Vista), the
programs which have already been run in the command prompt before
starting latex2rtf, and whether latex2rtf is manually started from
the command prompt or from the GUI shell.
Numbers typically are between 100 and 400.
We would be glad if you could test this on your systems and tell us
the experience.
The Windows port (including installer) and the source are on
http://sourceforge.net/projects/latex2rtf/
latex2rtf-win package, version 1.9.20, pre-release.
Extract the file ttgfsr7.tex from the "test" folder in the source
code zip file, run it through LaTeX and then through "latex2rt -M12
ttgfsr7". This is the only file in the test suite which has enough
equations to reveal the problem.
The conversion 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 convert (ImageMagick Windows version) to convert .eps to .png
- - - calls convert to crop the .png
- - - calls convert to extract the first column of the bitmap to a
.pbm file to determine the baseline
- latex2rt.exe reads the .png and .pbm files and includes the .png in
the rtf output.
Note that in latex2rtf version 1.9.20 the netpbm routines are no
longer needed (but the bug also occurs with the older script calling
the netpbm routines).
My test results up to now:
a) The problem is independent of whether the unix shell script is run
through bash or an equivalent dos batch file is run through command.com.
b) I wrote a small c program so that only a (constant) input file for
the script is written and the script is called. This runs
successfully for at least 500 equations. So it is neither the script
nor the programs called by the script.
c) Finally I modified latex2rtf so that no system call is issued and
therefore the script is not run. The error still occurs. So it must
be a bug in the latex2rtf code (e.g. failing to close a file) but I
can not find any, and the bug does not occur on Mac OSX.
Wilfried
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july