Package: tex4ht Version: 20051223-1 Severity: normal Tags: patch *** Please type your report below this line ***
A test file named test.tex: \documentclass[a4paper]{article} \begin{document} \begin{equation} \label{eq:1} 2 + 2 = 5 \end{equation} \end{document} Test cases: 1) Testing gif format: Command line: htlatex test.tex "html,gif" Error reported on terminal: System call: dvipng -T tight -x 1400 -D 72 -bg Transparent -pp -gif 1:1 test.idv -o test0x.gif This is dvipng 1.5 Copyright 2002-2005 Jan-?ke Larsson dvipng: Fatal error, bad page list specifier (-pp). 2) Testing jpg format: Command line: htlatex test.tex "html,jpg" Error reported on terminal: System call: dvips -Ppdf -mode ibmvga -D 110 -f > zztest.ps This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com) dvips: ! DVI file must not be a pipe. --- Warning --- System return: 256 No image file is created during the above tests. I expect that one is created for the equation. I think the problem is due to incorrect commands in the file tex4ht.env for the (default) dvipng method. For the G.gif method, the -gif option is (badly) put in the place for the argument of -pp. The solution is to move -gif to a proper place. For the general G. method, the input dvi file (and page range) is missing from the command line. I suggest to complete this line as in other lines containing dvips command. Summarizing, I propose the patch: --- /etc/tex4ht/tex4ht.env 2005-12-15 12:48:47.000000000 +0100 +++ tex4ht.env 2006-01-26 12:07:48.000000000 +0100 @@ -178,9 +178,9 @@ G.png Gdvipng -T tight -x 1400 -D 72 -bg Transparent -pp %%2:%%2 %%1 -o %%3 G.gif -Gdvipng -T tight -x 1400 -D 72 -bg Transparent -pp -gif %%2:%%2 %%1 -o %%3 +Gdvipng -T tight -x 1400 -D 72 -bg Transparent -pp %%2:%%2 %%1 -o %%3 -gif G. -Gdvips -Ppdf -mode ibmvga -D 110 -f > zz%%4.ps +Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps Gconvert -crop 0x0 -density 110x110 -transparent '#FFFFFF' zz%%4.ps %%3 Grm zz%%4.ps </dvipng> With this patch, the two tests above do produce images. Best wishes, Gabor Braun -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (650, 'testing'), (600, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.14-2-686 Locale: LANG=hu_HU.iso88592, LC_CTYPE=hu_HU.iso88592 (charmap=ISO-8859-2) (ignored: LC_ALL set to hu_HU.iso88592) Versions of packages tex4ht depends on: ii libc6 2.3.5-8 GNU C Library: Shared libraries an ii libkpathsea3 2.0.2-30sarge4 path search library for teTeX (run ii tetex-bin 3.0-13 The teTeX binary files ii tex4ht-common 20051223-1 LaTeX and TeX for Hypertext (HTML) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]