Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#14700 closed defect (fixed)

latex2html (using pnmtopng from netpbm) fails to create png images for math symbols on 10.5.2

Reported by: simon.c.blyth@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: mas@…
Port: netpbm

Description

 latex2html to.tex

This is LaTeX2HTML Version 2002-2-1 (1.71)
by Nikos Drakos, Computer Based Learning Unit, University of Leeds.
...
 *** processing 1 images ***

Generating postscript images using dvips ...
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2008.03.18:1444' -> /tmp/l2h4967/image
(-> /tmp/l2h4967/image001) <tex.pro><alt-rule.pro><texps.pro><special.pro>
<color.pro><cmsy10.pfb>[1] 
Converting image #1
pstoimg: Error: "/opt/local/bin/ppmquant -floyd 256 < /tmp/l2h4967/p4980.pnm | /opt/local/bin/pnmtopng -interlace -trans 'gray85'  > img1.png" failed: Invalid argument

Error while converting image

Doing section links ......
 *** Adding document-specific styles *** 
Done.

Switching on debug for pstoimg reveals the error message to be misleading :

simon:tex blyth$ export DEBUG=1   
simon:tex blyth$ latex2html to.tex
...

 *** processing 1 images ***

...
Running "/opt/local/bin/ppmquant 256 < /tmp/l2h5269/p5282.pnm | /opt/local/bin/pnmtopng -interlace -trans 'gray85'  > img1.png"
pnmcolormap: making histogram...
pnmcolormap: 10 colors found
pnmcolormap: Image already has few enough colors (<=256).  Keeping same colors.
pnmremap: 10 colors found in colormap
pnmtopng: can't open color names dictionary file named /usr/lib/X11/rgb.txt, /usr/openwin/lib/rgb.txt, or /usr/X11R6/lib/X11/rgb.txt and Environment variable RGBDEF not set.  Set RGBDEF to the pathname of your rgb.txt file or don't use color names.
pstoimg: Error: "/opt/local/bin/ppmquant 256 < /tmp/l2h5269/p5282.pnm | /opt/local/bin/pnmtopng -interlace -trans 'gray85'  > img1.png" failed: 

Error while converting image

Doing section links ......
Done.

Searching for rgb.txt

mdfind "kMDItemDisplayName == 'rgb.txt'" | xargs ls -l
-rw-r--r--  2 root   admin  17315 Mar 18 03:15 /opt/local/share/lib/latex2html/styles/rgb.txt
-rw-r--r--  2 root   wheel  19974 Mar 18 00:25 /opt/local/share/netpbm/rgb.txt
-rw-r--r--  1 root   wheel  17371 Sep 24 13:34 /usr/X11/share/X11/rgb.txt

Trying again, following the hint from the debug ... succeeds to create the pngs :

export RGBDEF=/opt/local/share/netpbm/rgb.txt
latex2html to.tex
...

The installation would be improved if it was not necessary to set this in the environment.

Change History (3)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Milestone: Port Bugs

comment:2 Changed 15 years ago by blb@…

Cc: mas@… added
Port: netpbm added
Resolution: fixed
Status: newclosed
Summary: latex2html fails to create png images for math symbols on 10.5.2latex2html (using pnmtopng from netpbm) fails to create png images for math symbols on 10.5.2

This is actually an issue with the netpbm port (which provides pnmtopng); should be fixed in r48690.

comment:3 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.